Je ne pense pas qu'il y ait quelque chose de plus simple que show interfaces | <some regex>
malheureusement.
Éditer:
D'après les commentaires ci-dessous, @ Santino a souligné un RegEx plus concis:
show ip interface | include line protocol|access list
Mes tests jusqu'à présent indiquent que cela donne les mêmes résultats que mon RegEx plus long ci-dessous.
J'utilise généralement les éléments suivants pour trouver où les listes de contrôle d'accès sont appliquées:
show ip interface | include is up|is administratively|is down|Outgoing|Inbound
Cela vous donne toutes les interfaces, quel que soit l'état, puis ce que sont les ACL sortants et entrants. Par exemple:
LAB-4510-A#show ip interface | include is up|is administratively|is down|Outgoing|Inbound
Vlan1 is administratively down, line protocol is down
Vlan110 is up, line protocol is up
Outgoing access list is not set
Inbound access list is VENDOR->INTERNET
Vlan140 is administratively down, line protocol is down
Outgoing access list is not set
Inbound access list is not set
Vlan150 is down, line protocol is down
Outgoing access list is not set
Inbound access list is VENDOR->INTERNET
Vlan210 is up, line protocol is up
Outgoing access list is not set
Inbound access list is not set
FastEthernet1 is administratively down, line protocol is down
Outgoing access list is not set
Inbound access list is not set
GigabitEthernet1/1 is up, line protocol is up
Outgoing access list is not set
Inbound access list is not set
GigabitEthernet1/2 is down, line protocol is down
Inbound access list is not set
Outgoing access list is not set
Et ainsi de suite pour chaque interface.
Cette commande fonctionne à la fois sur les commutateurs et les routeurs Cisco. Voir l'exemple de sortie d'un routeur 7200 ci-dessous:
LAB-7204-A#show ip interface | include is up|is administratively|is down|Outgoing|Inbound
GigabitEthernet0/1 is up, line protocol is up
Outgoing access list is not set
Inbound access list is not set
FastEthernet0/2 is administratively down, line protocol is down
GigabitEthernet0/2 is up, line protocol is up
Outgoing access list is not set
Inbound access list is not set
GigabitEthernet0/3 is administratively down, line protocol is down
SSLVPN-VIF0 is up, line protocol is up
Outgoing access list is not set
Inbound access list is not set
Loopback0 is up, line protocol is up
Outgoing access list is not set
Inbound access list is not set
Loopback1 is up, line protocol is up
Outgoing access list is not set
Inbound access list is not set
show ip interface | include line protocol|access list
For NX-OS,show ip access-list summary