Open In App

Link Layer Discovery Protocol (LLDP)

LLDP stands for Link Layer Discovery Protocol. It is an open IEEE-standard (802.1AB) Layer 2 protocol. LLDP is the open-source alternative for CDP (Cisco Discovery Protocol) which is also a device discovery protocol that runs over Layer 2 (the data link layer) only on Cisco-manufactured devices (routers, bridges, access servers, and switches).

LLDP runs over the data link layer which allows two different devices to gather hardware and protocol information about neighboring devices that is useful in troubleshooting the network.



It supports a defined set of attributes that it uses to discover neighbor devices and are referred to as TLVs which are as follows:

Devices running LLDP, on one of their interfaces, uses TLVs to receive and send information to their neighbors. These devices store the information of neighboring devices in a local table that can be accessed using SNMP (Simple Network Management Protocol). Information stored by the devices includes:



Features of LLDP : 
LLDP enabled devices can 

Default LLDP configuration :

LLDP Packet Format :
LLDP information is transmitted and/or received by neighbor devices via each of their LLDP enabled interfaces at a fixed interval of time in the form an Ethernet frame. Each Ethernet frame contains an LLDP data unit (LLDPDU). LLDPDU is a sequence of TLV structures. LLDP ethernet frame starts with the following compulsory TLVs :

LLDP Packet Format

Applications of LLDP :

Advantages of LLDP :

Disadvantages of LLDP :

LLDP Configuration :

# enabling LLDP

R1# configure terminal
R1(config)# lldp run
#disabling LLDP

R1# configure terminal
R1(config)# no lldp run
#enabling LLDP on interface

R1# configure terminal
R1(config)# interface GigabitEthernet 1/1
R1(config-if)# lldp transmit
R1(config-if)# lldp receive
#disabling LLDP on interface

R1# configure terminal
R1(config)# interface GigabitEthernet 1/1
R1(config-if)# no lldp transmit
R1(config-if)# no lldp receive
R1(config)# lldp holdtime 120
R1(config)# lldp reinit 5
R1(config)# lldp timer 15

Note: Use the “no” form of each of the above LLDP commands to return to the default setting on the device.

LLDP Router Configuration

Execute the same configuration for the R2 router to make it an LLDP neighbor of the R1 router in the above network.

R1# show lldp 

LLDP command result

R1# show lldp neighbors

LLDP neighbors command result


Article Tags :