ACL Configuring
124
18.5 Define Layer 2 ACL
Switch can define at most 100 layer 2 ACL with the number ID (the number is in the range
of 200 to 299), at most 1000 layer 2 ACL with the name ID. It can define 128 sub-rules for an
ACL (this rule can suit both ACL with name ID and number ID). Layer 2 ACL only classifies
data packet according to the source MAC address, source VLAN ID, layer protocol type, layer
packet received and retransmission interface and destination MAC address of layer 2 frame
head of data packet and analyze the matching data packet.
18.5.1 Configuring Layer 2 ACL
Follow these steps to configure an Layer 2 ACL
Table 18-7 Configure Layer 2 ACL based on digital identification
Command
Operation
Remark
Enter global configuration
mode
configure terminal
-
Define sub-item match rule
access-list num match-order { config | auto } optional
by default ,system
is config
Define Layer 2 ACL
access-list num { permit | deny } [ protocol ]
[ cos vlan-pri ] ingress { { [ source-vlan-id ]
[ source-mac-addr source-mac-wildcard ]
[ interface interface-num ] } | any } egress
{ { [ dest-mac-addr dest-mac-wildcard ]
[ interface interface-num | cpu ] } | any }
[ time-range name ]
required
Table 18-8 Configure Layer 2 ACL based on name identification
Command
Operation
Remark
Enter global configuration
mode
configure terminal
-
Define sub-item match rule
access-list link name match-order { config |
auto }
optional
by default ,system
is config
Define Layer 2 ACL and enter
configuration mode
access-list link name
required
Configure ACL rule
{ permit | deny } [ protocol ] [ cos vlan-pri ]
ingress { { [ source-vlan-id ]
[ source-mac-addr source-mac-wildcard ]
[ interface interface- num ] } | any } egress
{ { [ dest-mac-addr dest-mac-wildcard ]
[ interface interface-num | cpu ] } | any }
[ time-range name ]
required