3.6 Cisco Discovery Protocol Flashcards
What is CDP?
Cisco Discovery Protocol (CDP) is a layer 2 (Data Link) protocol that runs on all Cisco devices. CDP broadcasts periodic advertisements.
When should you disable CDP?
On routers on the edge of the network and user facing interfaces
Router(config)#show cdp
Checks the status of CDP
Router(config)#no cdp run
Disables CDP for all interfaces on a device
Router(config)#cdp run
Enables CDP for all interfaces on a device
Router(config)#no cdp enable
Disables CDP on that interface, but keeps CDP enabled for the device.
Router(config)#cdp enable
Enables CDP on that interface.
Router#show cdp neighbors
Checks for the status of CDP and shows a list of neighboring devices.
What details does the command show cdp neighbors show
Device identifier – provides the host name of the neighboring device
Port identifiers – provides the name of the local and remote port
Capabilities list – indicates whether the device is a switch or a router
Platform – indicates the hardware platform of the device
Router#show cdp neighbors detail
Provides the same information as show cdp neighbors as well as additional information such as IP address and IOS version.
Router#show cdp interface
Provides the full CDP configuration for the interface.
Router#show ip interface brief
Provides the abbreviated CDP configuration for the interface.
Router(config)#lldp run
Enables LLDP globally on the router.
Router(config)#no lldp run
Disables LLDP on a router and prevents the router from exchanging LLDP packets.
Router(config-if)#lldp transmit
Enables the interface to send LLDP information.