6.12. CDP (Cisco Discovery Protocol)

简介:

6.12.1. clear cdp counters

#clear cdp counters
			

6.12.2. show cdp

3750G#show cdp
Global CDP information:
        Sending CDP packets every 60 seconds
        Sending a holdtime value of 180 seconds
        Sending CDPv2 advertisements is  enabled
			

6.12.3. show cdp entry

#show cdp entry *

-------------------------
Device ID: C2960G-0.246
Entry address(es):
  IP address: 172.16.0.246
Platform: cisco WS-C2960G-48TC-L,  Capabilities: Switch IGMP
Interface: GigabitEthernet2/0/12,  Port ID (outgoing port): GigabitEthernet0/48
Holdtime : 125 sec

Version :
Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(50)SE5, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Tue 28-Sep-10 13:44 by prod_rel_team

advertisement version: 2
Protocol Hello:  OUI=0x00000C, Protocol ID=0x0112; payload len=27, value=00000000FFFFFFFF010221FF000000000000203706668480FF0000
VTP Management Domain: 'example'
Native VLAN: 1
Duplex: full
Management address(es):
  IP address: 172.16.0.246

-------------------------
Device ID: CN282981530095
Entry address(es):
  IP address: 192.168.3.63
Platform: PCM6220,  Capabilities: Router
Interface: GigabitEthernet1/0/1,  Port ID (outgoing port): 1/0/17
Holdtime : 161 sec

Version :
3.1.3.9

advertisement version: 2
Management address(es):

-------------------------
Device ID: A1601-3750G
Entry address(es):
  IP address: 172.16.0.241
Platform: cisco WS-C3750G-24TS-1U,  Capabilities: Router Switch IGMP
Interface: GigabitEthernet1/0/11,  Port ID (outgoing port): GigabitEthernet1/0/1
Holdtime : 177 sec
 --More--
			

6.12.4. show cdp interface

#show cdp interface
GigabitEthernet1/0/1 is up, line protocol is up
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
GigabitEthernet1/0/2 is up, line protocol is up
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
GigabitEthernet1/0/3 is down, line protocol is down
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
GigabitEthernet1/0/4 is down, line protocol is down
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
GigabitEthernet1/0/5 is down, line protocol is down
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
GigabitEthernet1/0/6 is down, line protocol is down
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
GigabitEthernet1/0/7 is up, line protocol is up
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
GigabitEthernet1/0/8 is up, line protocol is up
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
GigabitEthernet1/0/9 is up, line protocol is up
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
GigabitEthernet1/0/10 is down, line protocol is down
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
GigabitEthernet1/0/11 is up, line protocol is up
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
 --More--
			

6.12.5. show cdp neighbors

#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
C2960G-0.246     Gig 2/0/12        172           S I      WS-C2960G Gig 0/48
CN282981530095   Gig 1/0/1         177            R       PCM6220   1/0/17
A1601-3750G      Gig 1/0/11        164          R S I     WS-C3750G Gig 1/0/1
Switch           Gig 2/0/7         152           S I      WS-C3750X Gig 1/0/48
Switch           Gig 2/0/11        175           S I      WS-C2960- Fas 0/48
CN0D162M2829817C0042A04
                 Gig 1/0/2         163            R       PC8024    1/0/10
G2960-0.252      Gig 2/0/15        73            S I      WS-C2960G Gig 0/48
G2960-0.253      Gig 2/0/13        76            S I      WS-C2960G Gig 0/48
G2960-0.250      Gig 2/0/19        179           S I      WS-C2960G Gig 0/48
c2960-0.248      Gig 2/0/21        66            S I      WS-C2960S Gig 1/0/48
c2960-0.251      Gig 2/0/17        146           S I      WS-C2960G Gig 0/48
c2960-0.245      Gig 2/0/23        74            S I      WS-C2960- Gig 0/2
			
#show cdp neighbors detail
-------------------------
Device ID: C2960G-0.246
Entry address(es):
  IP address: 172.16.0.246
Platform: cisco WS-C2960G-48TC-L,  Capabilities: Switch IGMP
Interface: GigabitEthernet2/0/12,  Port ID (outgoing port): GigabitEthernet0/48
Holdtime : 133 sec

Version :
Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(50)SE5, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Tue 28-Sep-10 13:44 by prod_rel_team

advertisement version: 2
Protocol Hello:  OUI=0x00000C, Protocol ID=0x0112; payload len=27, value=00000000FFFFFFFF010221FF000000000000203706668480FF0000
VTP Management Domain: 'example'
Native VLAN: 1
Duplex: full
Management address(es):
  IP address: 172.16.0.246

-------------------------
Device ID: CN282981530095
Entry address(es):
  IP address: 192.168.3.63
Platform: PCM6220,  Capabilities: Router
Interface: GigabitEthernet1/0/1,  Port ID (outgoing port): 1/0/17
Holdtime : 167 sec

Version :
3.1.3.9

advertisement version: 2
Management address(es):

-------------------------
Device ID: A1601-3750G
Entry address(es):
  IP address: 172.16.0.241
Platform: cisco WS-C3750G-24TS-1U,  Capabilities: Router Switch IGMP
Interface: GigabitEthernet1/0/11,  Port ID (outgoing port): GigabitEthernet1/0/1
Holdtime : 125 sec
 --More--

			





原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
6月前
|
网络虚拟化 网络架构
|
网络协议 网络架构
RIP(Routing Information Protocol,路由信息协议)
RIP是由Xerox公司在20世纪七十年代开发的,最初定义的RFC1058中。每个有RIP功能的路由器在默认情况下每隔30秒利用UDP520端口向与它直连的网络邻居广播(RIP v1)或组播(RIP v2)路由更新。因此,路由器不知道网络的全局情况,如果路由更新在网络上传播慢,将会导致网络收敛较慢,造成路由环路。为了避免路由环路,RIP采用水平分割、毒性逆转、定义最大跳数、触发更新和抑制计时器等机制来避免路由环路。
416 0
RIP(Routing Information Protocol,路由信息协议)