Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 437
  • Last Modified:

Cisco Switch or Router "Show IP access-list| inc [IP]" for finding the number or name of a access-list

Is there a command to view an ip being blocked on a access-list that will also show the number or name of the access list?

I know about the command “sh access-list | inc” and this will show if it’s being applied on an access list, but not the name of the access list.
1 Solution
Nope.  If you have a lot of access lists, your best bet is to copy the configuration file to your computer and look at the file in some file editor.

Dup of:
If you just want to see the name of the access-list as well as a line number, use multiple strings in the show statement:

BW_RTR_01#show access-list | inc Standard|Extended|
Standard IP access list 1
Standard IP access list 20
Standard IP access list 23
    110 permit, wildcard bits
Extended IP access list 100
Extended IP access list 101
Extended IP access list 142
Extended IP access list 152
Extended IP access list WAAS61
    20 deny ip any (26099487 matches)
Extended IP access list WAAS62
Extended IP access list testsrst

You will get additional lines, but any access-list match will always fall directly under the name of the ACL so it's not too hard to see where things are located.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now