Layer 2 Discovery Protocols

Layer 2 discovery protocols (CDP and LLDP) enable network devices to share and discover information about their neighboring (directly connected) devices.

This information includes:

Note: These protocols can pose potential security risks if not properly managed.

CDP (Cisco Discovery Protocol)

CDP is Cisco's proprietary discovery protocol that comes enabled by default on Cisco network devices, including:

Key CDP Characteristics:

CDP Commands

# shows basic inoformation about CDP (timer, version)
R1#show cdp

# How many cdp packets, advertisements the device has sent / received
R1#show cdp traffic

# Gives some basic information about each interface
R1#show cdp interface

# View the neighbors
R1#show cdp neighbors

# lists each CDP neighbor with more detailed information
R1#show cdp neighbors detail

# displays the same info as above, but for the specified neighbor only
R1# show cdp entry name