3Com Switch 4500 Family Manual page 489

4500 series
Hide thumbs Also See for Switch 4500 Family:
Table of Contents

Advertisement

Parameters
type protocol-type
protocol-mask
When layer 2 ACLs are applied to ports or VLANs of the Switch 4500 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:
You can modify any existent rule of the Layer 2 ACL and the unmodified part of the ACL remains.
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.
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
Type
Protocol type of
Ethernet frames
1-21
Function
Specifies the protocol
type of Ethernet
frames for the ACL rule
Description
protocol-type: Protocol
type.
protocol-mask:
Protocol type mask.

Advertisement

Table of Contents
loading

This manual is also suitable for:

4500 26-port4500 50-port4500 pwr 26-port

Table of Contents