Viewing the content of all ACLs on the switch

This command lists the configuration details for the IPv4 and IPv6 ACLs in the running-config file, regardless of whether any are actually assigned to filter IPv4 traffic on specific VLANs.

Syntax:


show access-list config

List the configured syntax for all IPv4 ACLs currently configured on the switch.

NOTE:

Notice that you can use the output from this command for input to an offline text file in which you can edit, add, or delete ACL commands.

This information also appears in the show running display. If you executed write memory after configuring an ACL, it appears in the show config display.

For example, with two ACLs configured in the switch, you will see results similar to the following:

An ACL configured syntax listing

switch(config)# show access-list config

ip access-list standard "List-43"
   10 deny 10.28.236.77 0.0.0.0
   20 deny 10.29.140.107 0.0.0.0
   30 permit 0.0.0.0 255.255.255.255
   exit
ip access-list extended "111"
   10 permit tcp 10.30.133.27 0.0.0.0 0.0.0.0 255.255.255.255
   20 permit tcp 10.30.155.101 0.0.0.0 0.0.0.0 255.255.255.255
   30 deny ip 10.30.133.1 0.0.0.0 0.0.0.0 255.255.255.255 log
   40 deny ip 10.30.155.1 0.0.0.255 0.0.0.0 255.255.255.255
   exit