CLI Reference Guide ACL Configuration Commands
Use the show access-lists command to display the ACL configurations.
Create an extended MAC ACL:
Ruijie(config)# mac access-list extended mac-acl
Ruijie(config-mac-nacl)# show access-lists mac access-list extended mac-acl
Create an extended ACL:
Ruijie(config)# mac access-list extended 704
Ruijie(config-mac-nacl)# show access-lists mac access-list extended 704
The mac ACL is not supported by routers.
Use this command to enable the packet matching counter for all ACEs under the extended MAC ACL.
Use the no form of this command to disable the function.
mac access-list counter { id | name }
no mac access-list counter { id | name }
It indicates the number of the MAC ACL, which ranges from 700 to
799.
It indicates the name of the MAC ACL.
No MAC ACL is configured.
Global configuration mode
Use the show access-lists command to view the configuration of this command.
Example 1 enables the ACE packet matching counter of the extended MAC ACL:
Ruijie(config)# mac access-list extended mac-acl
Ruijie(config-mac-nacl)# show access-lists
mac access-list extended mac-acl
10 permit host 0023.56ac.8965 any (170 matches)
20 deny any any etype-any cos 6 (239 matches)
Example 2 disables the ACE packet matching counter of the extended MAC ACL: