Command to show what access-list/groups are applied to what interfaces

I’m wanting to know if there is a command I can use to show what access-list are applied to what interfaces on a Cisco switch, something like:

Show run | inc access-group

This shows me the access-list being applied, but not what interfaces they are being applied too?

Thank you,
Dave
dsterlingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DesktopNinjaCommented:
ACLs are applied to interfaces with the "access-group in/out" command, which is applied to the interface it'self.  You can use the following command:
sh run | inc interface

Open in new window

Find the list of interfaces and note their order, then run:
sh run | inc access-group

Open in new window

The order of the access-group entries will coincide with the order of your interfaces.
interface ethernet0 auto
interface ethernet1 auto

Open in new window

access-group 100 in
access-group 101 out

Open in new window


Please let us know if this worked!
0
dsterlingAuthor Commented:
DesktopNinja,  Thanks for the comment, but it does not answer my question. What I'm looking for is a command that will show the access-list and what interfaces they are being applied too. I'm wanting a quick look and not have to search all the interfaces to see what accesss-group is being applied to what interfaces.
0
DesktopNinjaCommented:
Try this regex:
show ip interface | include is up|is administratively|is down|Outgoing|Inbound

Open in new window

Or this one if your on a Cisco ASA or older device.
show interface | include is up|is administratively|is down|Outgoing|Inbound

Open in new window

Let us know if this works for you!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Switches / Hubs

From novice to tech pro — start learning today.