1-8Configuration procedureTable 1-4 Define a Layer 2 ACL ruleOperation Command DescriptionEnter system view system-view —Create a Layer 2 ACLand enter Layer 2 ACLviewacl number acl-number RequiredDefine an ACL rule rule [ rule-id ] { permit | deny }rule-stringRequiredFor information about rule-string,refer to ACL Commands.Assign a descriptionstring to the ACL rule rule rule-id comment text OptionalNo description by defaultAssign a descriptionstring to the ACL description text OptionalNo description by defaultNote 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 numberedautomatically. If the ACL has no rules, the rule is numbered 0; otherwise, the number of the rule willbe the greatest rule number plus one. If the current greatest rule number is 65534, however, thesystem 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 that of any existing rule of theACL; otherwise the rule modification or creation will fail, and the system will prompt that the rulealready exists.Configuration example# Configure ACL 4000 to deny packets sourced from the MAC address 000d-88f5-97ed, destined forthe MAC address 0011-4301-991e, and with their 802.1p priority being 3. system-view[Sysname] acl number 4000[Sysname-acl-ethernetframe-4000] rule deny cos 3 source 000d-88f5-97ed ffff-ffff-ffff dest0011-4301-991e ffff-ffff-ffff# Display the configuration information of ACL 4000.[Sysname-acl-ethernetframe-4000] display acl 4000Ethernet frame ACL 4000, 1 ruleAcl's step is 1rule 0 deny cos excellent-effort source 000d-88f5-97ed ffff-ffff-ffff dest 0011-4301-991effff-ffff-ffffConfiguring an IPv6 ACLYou can match IPv6 packets by IPv6 ACLs to process IPv6 data flows as required. S3100 SeriesEthernet switches support matching IPv6 packets by the following fields:z dscp: Matches the traffic class field in IPv6 packets.z ip-protocol: Matches the next header field in IPv6 packets.