Nie wierzę, że jest coś prostszego niż show interfaces | <some regex>
niestety.
Edytować:
Z poniższych komentarzy @ Santino wskazał bardziej zwięzły RegEx:
show ip interface | include line protocol|access list
Moje dotychczasowe testy wskazują, że daje to takie same wyniki jak mój dłuższy RegEx poniżej.
Zazwyczaj używam następujących, aby dowiedzieć się, gdzie są stosowane listy ACL:
show ip interface | include is up|is administratively|is down|Outgoing|Inbound
Daje to każdy interfejs, bez względu na stan, a następnie jakie są listy ACL dla wiadomości Outbound i Inbound. Na przykład:
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
I tak dalej dla każdego interfejsu.
To polecenie działa zarówno na przełącznikach Cisco, jak i routerach. Zobacz przykładowe dane wyjściowe z routera 7200 poniżej:
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