Я не верю, что есть что-то попроще, чем, show interfaces | <some regex>
к сожалению.
Редактировать:
Из комментариев ниже, @ Сантино указал на более лаконичный 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