Cisco Discovery Protocol

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Erklärung

  • Es wurde von der Firma Cisco entwickelt
  • Mithilfe des "Cisco Discovery Protocol" kurz "CDP", wird vollautomatisch eine Liste direkt angeschlossener Geräte erstellt
  • Voraussetzung sie unterstützen ebenfalls CDP
  • Hauptsächlich von Cisco-Geräten verwendet

Umgang

Show cdp

  • show cdp
  • Zeigt die Globale CDP Konfiguration
Switch#show cdp
Global CDP information: 
	Sending CDP packets every 60 seconds
	Sending a holdtime value of 180 seconds
	Sending CDPv2 advertisements is enabled
  • show cdp interface
  • Zeigt eine Liste der Interfaces mitsamt der CDP Konfiguration
sw-cis-01#show cdp interface
GigabitEthernet1/0/1 is up, line protocol is up
  Encapsulation ARPA
  Sending CDP packets every 60 seconds
  Holdtime is 180 seconds
  • Show cdp neighbors
  • Zeigt alle angeschlossene Geräte die auch CDP verwenden
sw-cis-01#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone, 
                  D - Remote, C - CVTA, M - Two-port Mac Relay 
Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
MikroTik         Gig 1/0/11        62                R    MikroTik  bridge/ether2
SIPECE1A9CA5D5F  Gig 1/0/10        130              H P   IP Phone  Port 1

cdp run

  • cdp run aktiviert das Protokoll
  • no cdp run beendet das Protokoll

cdp enable

  • Mit CDP enable kann das Protokoll an einzelnen Schnittstellen aktiviert und deaktiviert werden
Switch# config terminal
Switch(config)# interface TenGigabitEthernet4/1
Switch(config-if)# no cdp enable