show interfaces | <some regex>
Maalesef daha basit bir şey olduğuna inanmıyorum .
Düzenle:
Aşağıdaki yorumlardan @ Santino daha özlü bir RegEx'e dikkat çekti:
show ip interface | include line protocol|access list
Şu ana kadar yaptığım test, bunun aşağıdaki daha uzun RegEx'im ile aynı sonuçları verdiğini gösteriyor.
ACL'lerin nerede uygulandığını bulmak için genellikle aşağıdakileri kullanırım:
show ip interface | include is up|is administratively|is down|Outgoing|Inbound
Bu, durum ne olursa olsun, her arabirimi, sonra Giden ve Gelen ACL'lerin ne olduğunu verir. Örneğin:
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
Ve böylece her arayüz için.
Bu komut hem Cisco anahtarlarında hem de yönlendiricilerde çalışır. Aşağıdaki 7200 Router'dan örnek çıktıya bakın:
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 için kısaltabilirsiniz ,show ip access-list summary