Solved

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

Posted on 2013-12-02
2
399 Views
Last Modified: 2013-12-02
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 192.168.1.12” and this will show if it’s being applied on an access list, but not the name of the access list.
0
Comment
Question by:dsterling
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 57

Expert Comment

by:giltjr
ID: 39690032
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:

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Q_28307451.html
0
 
LVL 20

Accepted Solution

by:
rauenpc earned 500 total points
ID: 39690115
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|10.6.129.0
Standard IP access list 1
Standard IP access list 20
Standard IP access list 23
Standard IP access list REDISTRIBUTE-STATIC-CONNECTED
    110 permit 10.6.129.0, wildcard bits 0.0.0.255
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 10.6.129.0 0.0.0.255 (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.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial will go through the steps required to write a script that will back up the configuration settings of a HP-ProCurve switch. You will need to get the following things to follow this tutorial: Telnet Scripting Tool e.g. TST10.exe …
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Suggested Courses
Course of the Month8 days, 18 hours left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question