+
CDP LLDP
+
Layer 2 discovery protocols
Layer 2 discovery protocol such as CDP and LLDP share information with and discover information
about neighboring (connected) device.
The shared information includes host name, IP address, device type, etc…
CDP is a Cisco proprietary protocol.
LLDP is an industry standard protocol (IEEE 802.1AB).
Because they share information about the devices in the network, they can be considered a security
risk and are often not used. It is up to the network engineer/admin to decide if they want to use them
in the network or not.
+
Cisco discovery protocol
CDP is a Cisco proprietary protocol.
It is enabled on a Cisco devices (routers, switches, firewalls, IP phones, etc…) by default.
CDP messages are periodically sent to multicast MAC address [Link].
When a device receives a CDP message, it processes and discards the message. It does not
forward it to other devices. Only the directly connected receive it.
By default, CDP messages are sent once every 60 seconds.
By default, the CDP holdtime is 180 seconds. If a message isn’t received from a neighbor for 180
seconds, the neighbor is removed from the CDP neighbor table.
CDPv2 messages are sent by default. Version 1 is very old you’re probably used it.
+
+
+
+
+
CDP configuration commands
CDP is globally enabled by default. To enable CDP globally : # CDP run
CDP is also enabled on each interface by default. To enable CDP on interface :
#CDP enable.
Configure the CDP timer : # CDP timer seconds.
Configure the CDP holdtime: # CDP holdtime seconds
Enable CDPv2: # CDP advertise-v2
+
Link Local Discovery Protocol (LLDP)
LLDP is an industry standard protocol (IEEE 802.1AB).
It is usually disabled on Cisco devices by default, so it must be manually enabled.
A device can run CDP and LLDP at the same time.
LLDP messages are periodically sent to multicast MAC address 0180.c200.000e.
When a device receives an LLDP message, it processes and discards the message. It does not forward
it to other devices.
By default, LLDP messages are sent once every 30 seconds.
By default, the LLDP holdtime is 120 seconds.
+
LLDP configuration
LLDP is usually globally disables by default. To enable # lldp run
LLDP is also disabled on each interface by default.
To enable LLDP on specific interfaces (tx): # lldp transmit
To enable LLDP on specific interfaces (rx): # lldp receive
Configure the LLDP timer: # lldp timer seconds
Configure the LLDP holdtime : # lldp holdtime seconds
+
MERCI