1-21
Parameters
Type
Function
Description
type
protocol-type
protocol-mask
Protocol type of
Ethernet frames
Specifies the protocol
type of Ethernet
frames for the ACL rule
protocol-type
: Protocol
type.
protocol-mask
:
Protocol type mask.
When layer 2 ACLs are applied to ports or VLANs of the Switch 5500-EI series, rules configured with
the
format-type
argument and the
lsap
keyword are invalid.
Description
Use the
rule
command to define an ACL rule.
Use the
undo rule
command to remove an ACL rule.
To remove an ACL rule using the
undo rule
command, you need to provide the ID of the ACL rule. You
can obtain the ID of an ACL rule by using the
display acl
command.
Note that:
z
You can modify any existent rule of the Layer 2 ACL and the unmodified part of the ACL remains.
z
If you do not specify the
rule-id
argument when creating an ACL rule, the rule will be numbered
automatically. If the ACL has no rules, the rule is numbered 0; otherwise, the number of the rule will
be the greatest rule number plus one. If the current greatest rule number is 65534, however, the
system will display an error message and you need to specify a number for the rule.
z
The content of a modified or created rule cannot be identical with the content of any existing rules;
otherwise the rule modification or creation will fail, and the system prompts that the rule already
exists.
Examples
# Create Layer 2 ACL 4000 and define rule 1 to deny packets that are sourced from MAC address
000d-88f5-97ed, destined for MAC address 0011-4301-991e, and using the 802.1p priority of 3.
<Sysname> system-view
[Sysname] acl number 4000
[Sysname-acl-ethernetframe-4000] rule 1 deny cos 3 source 000d-88f5-97ed ffff-ffff-ffff dest
0011-4301-991e ffff-ffff-ffff
[Sysname-acl-ethernetframe-4000] quit
# Create Layer 2 ACL 4001 and define rule 1 to permit packets whose inner VLAN IDs are in the range
2 to 10.
[Sysname] acl number 4001
[Sysname-acl-ethernetframe-4001] rule 1 permit c-tag-vlan 2 to 10
Summary of Contents for 5500-EI PWR
Page 43: ...2 6...
Page 76: ...1 17...
Page 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46...
Page 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast...
Page 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23...
Page 519: ...iii...
Page 597: ...2 2 security policy server 192 168 0 1 user name format without domain...
Page 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static...
Page 663: ...4 3 Sysname resilient arp interface vlan interface 2...
Page 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008...
Page 1111: ...ii xmodem get 3 18...
Page 1314: ...A 44 Z...