Match access-group – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual
Page 1013
QoS Commands
Software Reference for x310 Series Switches
C613-50046-01 REV A
AlliedWare Plus
TM
Operating System - Version 5.4.4C
39.7
match access-group
Use this command to define match criterion for a class-map.
Syntax
match access-group {<hw-IP-ACL>|<hw-MAC-ACL>|<hw-named-ACL>}
no match access-group {<hw-IP-ACL>|<hw-MAC-ACL>|<hw-named-ACL>}
Mode
Class Map Configuration
Usage
First create an access-list that applies the appropriate permit, deny requirements etc. Then
use the match access-group command to apply this access-list for matching to a class-
map. Note that this command will apply the access-list matching only to incoming data
packets.
Examples
To configure a class-map named cmap1 with one match criterion: access-list 3001,
which allows IP traffic from any source to any destination, use the commands:
To configure a class-map named cmap2 with one match criterion: access-list 3001,
which allows MAC traffic from any source to any destination, use the commands:
To configure a class-map named cmap3 with one match criterion: access-list
hw_acl
, which allows IP traffic from any source to any destination, use the commands:
Related Commands
Parameter
Description
<hw-IP-ACL>
Specify a hardware IP ACL number in the range <3000-3699>.
<hw-MAC-ACL>
Specify a hardware MAC ACL number in the range <4000-4699>.
<hw-named-ACL>
Specify the hardware named ACL.
awplus#
configure terminal
awplus(config)#
access-list 3001 permit ip any any
awplus(config)#
class-map cmap1
awplus(config-cmap)#
match access-group 3001
awplus#
configure terminal
awplus(config)#
access-list 4001 permit any any
awplus(config)#
class-map cmap2
awplus(config-cmap)#
match access-group 4001
awplus#
configure terminal
awplus(config)#
access-list hardware hw_acl
awplus(config-ip-hw-acl)#
permit ip any any
awplus(config)#
class-map cmap3
awplus(config-cmap)#
match access-group hw_acl