CDP Cisco Discovery Protocol 思科發現協議,是思科私有的一種協議,它能夠發現鄰居路由器或交換機的設備名,端口名等等。ide
用CDP發現相鄰的設備測試
CDP運行在使用10.3或更新版Cisco IOS的路由器以及Cisco 交換機和集線器上spa
能獲取的信息包括:orm
設備名ip
對應各協議的地址ci
端口名路由
角色特徵it
平臺 io
使用 CDPform
RouterA#sh cdp ?
entry Information for specific neighbor entry
interface CDP interface status and configuration
neighbors CDP neighbor entries
traffic CDP statistics
<cr>
RouterA(config)#no cdp run
RouterA(config)#interface serial0
RouterA(config-if)#no cdp enable
使用show cdp neighbor 命令
使用ping 和trace 命令
Router##ping 10.1.1.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
Router#trace 10.1.1.10
Type escape sequence to abort.
Tracing the route to 10.1.1.10
1 10.1.1.10 4 msec 4 msec 4 msec
Router#
測試對遠端設備的鏈接性和路徑