Я не вірю, що є щось простіше, ніж show interfaces | <some regex>
на жаль.
Редагувати:
З коментарів нижче, @ Santino вказав на більш стислий RegEx:
show ip interface | include line protocol|access list
Наразі моє тестування свідчить, що це дає ті ж результати, що і мої довгі RegEx нижче.
Зазвичай я використовую таке, щоб знайти, де застосовуються ACL:
show ip interface | include is up|is administratively|is down|Outgoing|Inbound
Це дає вам кожен інтерфейс, незалежно від стану, то, що таке вихідні та вхідні ACL. Наприклад:
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
І так далі для кожного інтерфейсу.
Ця команда працює як на комутаторах Cisco, так і на маршрутизаторах. Дивіться зразок виводу з маршрутизатора 7200 нижче:
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
NX-OS,show ip access-list summary