在网络工程领域,熟练掌握各种命令是网络工程师必备的技能之一。而在思科设备的管理和维护过程中,show命令是排障、配置和监视网络状态的重要工具。本文将深入介绍35个常用的思科设备show命令,涵盖了配置管理、网络状态查看、邻居和协议状态、安全和监控、高可用性和性能优化、以及VLAN和交换机配置等方面。
无论您是刚刚入门的新手还是经验丰富的老手,本文都将为您提供全面而详细的指南,帮助您更好地理解和应用这些命令,从而更高效地管理和维护您的网络设备。
目录:
1. show running-config
2. show startup-configuration
3. show version
4. show ip route
5. show ipv6 route
6. show interfaces
7. show ip interface brief
8. show ipv6 interface brief
9. show cdp neighbors
10. show clock
11. show ntp status
12. show Flash
13. show history
14. show logging
15. show protocols
16. show users
17. show access-lists
18. show ip dhcp binding
19. show ip dhcp pool
20. show ip eigrp neighbors
21. show ip ospf neighbor
22. show ip nat translations
23. show standby
24. show tech-support
25. show processes
26. show mac address-table
27. show spanning tree summary
28. show etherchannel
29. show vlan
30. show vtp status
31. show port-security
32. show monitor session all
33. show interfaces status
34. show interfaces switchport
35. show interfaces trunk
总结
配置管理命令
网络状态查看命令
邻居和协议状态命令
安全和监控命令
高可用性和性能优化命令
VLAN和交换机配置命令
1. show running-config
show running-config
命令用于显示当前设备的运行配置。这个命令可以帮助你了解设备的当前状态和配置。
Router# show running-config
返回示例:
Building configuration...
Current configuration : 2033 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
2. show startup-configuration
show startup-configuration
命令用于显示设备的启动配置。这个命令可以帮助你了解设备启动时的配置。
Router# show startup-configuration
返回示例:
Using 3098 out of 262136 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
3. show version
show version
命令用于显示设备的硬件信息、软件版本、配置寄存器信息以及设备启动时间等信息。
Router# show version
返回示例:
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 15.1(4)M10, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Mon 17-Oct-16 09:46 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Router uptime is 2 weeks, 5 days, 18 hours, 34 minutes
System returned to ROM by power-on
System image file is "flash:c2800nm-advipservicesk9-mz.151-4.M10.bin"
...
4. show ip route
show ip route
命令用于显示设备的IP路由表。这个命令可以帮助你了解设备的路由信息。
Router# show ip route
返回示例:
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is 10.1.1.1 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 10.1.1.1
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.2/32 is directly connected, FastEthernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, FastEthernet0/1
L 192.168.1.1/32 is directly connected, FastEthernet0/1
5. show ipv6 route
show ipv6 route
命令用于显示设备的IPv6路由表。这个命令可以帮助你了解设备的IPv6路由信息。
Router# show ipv6 route
返回示例:
IPv6 Routing Table - default - 7 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
IS - ISIS summary, D - EIGRP, EX - EIGRP external, ND - ND Default
NDp - ND Prefix, DCE - Destination, NDr - Redirect, O - OSPF Intra
OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1
ON2 - OSPF NSSA ext 2
C 2001:DB8:CAFE:1::/64 [0/0]
via Ethernet0/0, directly connected
L 2001:DB8:CAFE:1::1/128 [0/0]
via Ethernet0/0, receive
S ::/0 [1/0]
via 2001:DB8:CAFE:1::2
C 2001:DB8:CAFE:2::/64 [0/0]
via Serial0/0, directly connected
L 2001:DB8:CAFE:2::1/128 [0/0]
via Serial0/0, receive
L FF00::/8 [0/0]
via Null0, receive
6. show interfaces
show interfaces
命令用于显示设备的接口信息。这个命令可以帮助你了解设备的接口状态和配置。
Building configuration...
Current configuration : 2033 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
0
返回示例:
Building configuration...
Current configuration : 2033 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
1
7. show ip interface brief
show ip interface brief
命令用于快速查看设备的接口IP信息。这个命令可以帮助你了解设备的接口IP地址和状态。
Building configuration...
Current configuration : 2033 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
2
返回示例:
Building configuration...
Current configuration : 2033 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
3
8. show ipv6 interface brief
show ipv6 interface brief
命令用于快速查看设备的接口IPv6信息。这个命令可以帮助你了解设备的接口IPv6地址和状态。
Building configuration...
Current configuration : 2033 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
4
返回示例:
Building configuration...
Current configuration : 2033 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
5
9. show cdp neighbors
show cdp neighbors
命令用于显示设备的CDP邻居信息。这个命令可以帮助你了解设备的邻居设备信息。
Building configuration...
Current configuration : 2033 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
6
返回示例:
Building configuration...
Current configuration : 2033 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
7
10. show clock
show clock
命令用于显示设备的当前时间。这个命令可以帮助你了解设备的当前时间。
Building configuration...
Current configuration : 2033 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
8
返回示例:
Building configuration...
Current configuration : 2033 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
9
11. show ntp status
show ntp status
命令用于显示设备的网络时间协议(NTP)状态。这个命令可以帮助你了解设备的时间同步状态。
Router# show startup-configuration
0
返回示例:
Router# show startup-configuration
1
12. show Flash
show Flash
命令用于显示设备的Flash内存信息。这个命令可以帮助你了解设备的Flash内存使用情况。
命令示例:
Router# show startup-configuration
2
返回示例:
Router# show startup-configuration
3
13. show history
show history
命令用于显示设备的命令历史记录。这个命令可以帮助你了解设备的操作历史。
Router# show startup-configuration
4
返回示例:
Router# show startup-configuration
5
14. show logging
show logging
命令用于显示设备的日志信息。这个命令可以帮助你了解设备的运行日志。
Router# show startup-configuration
6
返回示例:
Router# show startup-configuration
7
15. show protocols
show protocols
命令用于显示设备的网络协议信息。这个命令可以帮助你了解设备的网络协议状态。
Router# show startup-configuration
8
返回示例:
Router# show startup-configuration
9
16. show users
show users
命令用于显示当前登录设备的用户信息。这个命令可以帮助你了解哪些用户正在使用设备。
Using 3098 out of 262136 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
0
返回示例:
Using 3098 out of 262136 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
1
17. show access-lists
show access-lists
命令用于显示设备的访问控制列表(ACL)信息。这个命令可以帮助你了解设备的ACL配置。
Using 3098 out of 262136 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
2
返回示例:
Using 3098 out of 262136 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
3
18. show ip dhcp binding
show ip dhcp binding
命令用于显示设备的DHCP绑定信息。这个命令可以帮助你了解设备的DHCP租约信息。
Using 3098 out of 262136 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
4
返回示例:
Using 3098 out of 262136 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
5
19. show ip dhcp pool
show ip dhcp pool
命令用于显示设备的DHCP池信息。这个命令可以帮助你了解设备的DHCP池配置。
Using 3098 out of 262136 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
6
返回示例:
Using 3098 out of 262136 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
7
20. show ip eigrp neighbors
show ip eigrp neighbors
命令用于显示设备的EIGRP邻居信息。这个命令可以帮助你了解设备的EIGRP邻居状态。
Using 3098 out of 262136 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
8
返回示例:
Using 3098 out of 262136 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$pdQG$blOvq4Ey6KjYPHkYoThzl.
!
no aaa new-model
!
resource policy
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool VLAN1
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip domain name yourdomain.com
!
multilink bundle-name authenticated
!
...
9
21. show ip ospf neighbor
show ip ospf neighbor
命令用于显示设备的OSPF邻居信息。这个命令可以帮助你了解设备的OSPF邻居状态。
Router# show version
0
返回示例:
Router# show version
1
22. show ip nat translations
show ip nat translations
命令用于显示设备的NAT转换表。这个命令可以帮助你了解设备的NAT转换情况。
Router# show version
2
返回示例:
Router# show version
3
23. show standby
show standby
命令用于显示设备的Hot Standby Router Protocol(HSRP)状态。这个命令可以帮助你了解设备的HSRP配置和状态。
Router# show version
4
返回示例:
Router# show version
5
24. show tech-support
show tech-support
命令用于显示设备的技术支持信息。这个命令可以帮助你了解设备的详细配置和状态,以便进行故障排查。
Router# show version
6
返回示例:
由于show tech-support
命令的输出非常长,这里只给出部分示例:
Router# show version
7
25. show processes
show processes
命令用于显示设备的进程信息。这个命令可以帮助你了解设备的CPU使用情况和进程状态。
Router# show version
8
返回示例:
Router# show version
9
26. show mac address-table
show mac address-table
命令用于显示设备的MAC地址表。这个命令可以帮助你了解设备的MAC地址表信息。
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 15.1(4)M10, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Mon 17-Oct-16 09:46 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Router uptime is 2 weeks, 5 days, 18 hours, 34 minutes
System returned to ROM by power-on
System image file is "flash:c2800nm-advipservicesk9-mz.151-4.M10.bin"
...
0
返回示例:
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 15.1(4)M10, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Mon 17-Oct-16 09:46 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Router uptime is 2 weeks, 5 days, 18 hours, 34 minutes
System returned to ROM by power-on
System image file is "flash:c2800nm-advipservicesk9-mz.151-4.M10.bin"
...
1
在这个示例中,每一行都表示一个MAC地址条目。每个条目都包含VLAN编号、MAC地址、类型(静态或动态)以及MAC地址所在的端口。这些信息可以帮助你了解网络设备的网络拓扑和流量路径。请注意,实际的MAC地址表可能会根据网络设备的配置和网络流量的变化而变化。此外,不同的设备和操作系统可能会以不同的格式显示MAC地址表。
27. show spanning tree summary
show spanning tree summary
命令用于显示设备的生成树协议(STP)摘要信息。这个命令可以帮助你了解设备的STP状态。
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 15.1(4)M10, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Mon 17-Oct-16 09:46 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Router uptime is 2 weeks, 5 days, 18 hours, 34 minutes
System returned to ROM by power-on
System image file is "flash:c2800nm-advipservicesk9-mz.151-4.M10.bin"
...
2
返回示例:
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 15.1(4)M10, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Mon 17-Oct-16 09:46 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Router uptime is 2 weeks, 5 days, 18 hours, 34 minutes
System returned to ROM by power-on
System image file is "flash:c2800nm-advipservicesk9-mz.151-4.M10.bin"
...
3
28. show etherchannel
show etherchannel
命令用于显示设备的EtherChannel信息。这个命令可以帮助你了解设备的EtherChannel配置和状态。
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 15.1(4)M10, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Mon 17-Oct-16 09:46 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Router uptime is 2 weeks, 5 days, 18 hours, 34 minutes
System returned to ROM by power-on
System image file is "flash:c2800nm-advipservicesk9-mz.151-4.M10.bin"
...
4
返回示例:
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 15.1(4)M10, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Mon 17-Oct-16 09:46 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Router uptime is 2 weeks, 5 days, 18 hours, 34 minutes
System returned to ROM by power-on
System image file is "flash:c2800nm-advipservicesk9-mz.151-4.M10.bin"
...
5
29. show vlan
show vlan
命令用于显示设备的VLAN信息。这个命令可以帮助你了解设备的VLAN配置和状态。
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 15.1(4)M10, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Mon 17-Oct-16 09:46 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Router uptime is 2 weeks, 5 days, 18 hours, 34 minutes
System returned to ROM by power-on
System image file is "flash:c2800nm-advipservicesk9-mz.151-4.M10.bin"
...
6
返回示例:
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 15.1(4)M10, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Mon 17-Oct-16 09:46 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Router uptime is 2 weeks, 5 days, 18 hours, 34 minutes
System returned to ROM by power-on
System image file is "flash:c2800nm-advipservicesk9-mz.151-4.M10.bin"
...
7
30. show vtp status
show vtp status
命令用于显示设备的VLAN Trunking Protocol(VTP)状态。这个命令可以帮助你了解设备的VTP配置和状态。
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 15.1(4)M10, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Mon 17-Oct-16 09:46 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Router uptime is 2 weeks, 5 days, 18 hours, 34 minutes
System returned to ROM by power-on
System image file is "flash:c2800nm-advipservicesk9-mz.151-4.M10.bin"
...
8
返回示例:
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 15.1(4)M10, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Mon 17-Oct-16 09:46 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Router uptime is 2 weeks, 5 days, 18 hours, 34 minutes
System returned to ROM by power-on
System image file is "flash:c2800nm-advipservicesk9-mz.151-4.M10.bin"
...
9
31. show port-security
show port-security
命令用于显示设备的端口安全配置。这个命令可以帮助你了解设备的端口安全状态。
Router# show ip route
0
返回示例:
Router# show ip route
1
32. show monitor session all
show monitor session all
命令用于显示设备的所有SPAN(Switched Port Analyzer)会话。这个命令可以帮助你了解设备的SPAN会话配置和状态。
Router# show ip route
2
返回示例:
Router# show ip route
3
33. show interfaces status
show interfaces status
命令用于显示设备的接口状态信息。这个命令可以帮助你了解设备的接口状态。
Router# show ip route
4
返回示例:
Router# show ip route
5
34. show interfaces switchport
show interfaces switchport
命令用于显示设备的交换机端口信息。这个命令可以帮助你了解设备的交换机端口配置和状态。
Router# show ip route
6
返回示例:
Router# show ip route
7
35. show interfaces trunk
show interfaces trunk
命令用于显示设备的trunk接口信息。这个命令可以帮助你了解设备的trunk接口配置和状态。
Router# show ip route
8
返回示例:
Router# show ip route
9
总结
文章最后,瑞哥给大家分类进行总结,方便大家快速查阅!
配置管理命令
show running-config:显示当前设备的运行配置。 show startup-configuration:显示设备启动时加载的配置。
网络状态查看命令
show version:显示设备的软件版本信息。 show ip route:显示设备的IP路由表。 show ipv6 route:显示设备的IPv6路由表。 show interfaces:显示设备的接口状态和统计信息。 show ip interface brief:显示设备的IP接口摘要信息。 show ipv6 interface brief:显示设备的IPv6接口摘要信息。
邻居和协议状态命令
show cdp neighbors:显示设备邻居的CDP信息。 show clock:显示设备的当前时间。 show ntp status:显示NTP服务的状态。 show protocols:显示设备的路由协议配置。
安全和监控命令
show users:显示当前登录到设备的用户信息。 show access-lists:显示设备的访问控制列表配置。 show ip dhcp binding:显示DHCP绑定表,即IP地址分配情况。 show ip dhcp pool:显示DHCP池的配置和使用情况。 show ip eigrp neighbors:显示EIGRP邻居信息。 show ip ospf neighbor:显示OSPF邻居信息。 show ip nat translations:显示NAT转换表。
高可用性和性能优化命令
show standby:显示设备的HSRP信息。 show tech-support:显示设备的技术支持信息,用于故障排除。 show processes:显示设备的进程信息。 show mac address-table:显示设备的MAC地址表。 show spanning tree summary:显示设备的STP摘要信息。 show etherchannel:显示设备的EtherChannel信息。
VLAN和交换机配置命令
show vlan:显示设备上的VLAN信息。 show vtp status:显示VTP配置信息。 show port-security:显示端口安全配置和统计信息。 show monitor session all:显示监视会话的配置信息。 show interfaces status:显示接口状态信息。 show interfaces switchport:显示交换机接口的配置信息。 show interfaces trunk:显示交换机的Trunk接口信息。
推荐站内搜索:最好用的开发软件、免费开源系统、渗透测试工具云盘下载、最新渗透测试资料、最新黑客工具下载……
还没有评论,来说两句吧...