Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EX] What is LLDP and how do you configure it on EX Series switches?



Article ID: KB11079 KB Last Updated: 10 Jul 2020Version: 5.0

LLDP (Link Layer Discovery Protocol) is defined in IEEE 802.1AB as a layer 2 protocol, which facilitates network and neighbor discovery. Neighbor discovery is made possible through advertisements sent by each network device that is participating in LLDP. Advertisements are sent by LLDP-enabled devices to identify themselves and to announce their capabilities to neighboring devices.

LLDP is somewhat comparable in purpose to Cisco’s CDP. LLDP operates on both Layer 2 and Layer 3 interfaces. Also for operability of the protocol, it doesn't matter whether the port is a trunk port or an access port as the LLDP frames are untagged. This behavior helps the protocol build the network topology regardless of specific configuration parameters assigned to the port.

This article describes the LLDP configuration and monitoring samples.



LLDP agents advertise their identity and capabilities over LLDP TLV (Type Length Value) data units, known as LLDPDUs (LLDP Data Units), which are exchanged with all other neighboring LLDP agents.  LLDP agents store the information learned from neighbors in a local database. LLDP periodically refreshes the local database in order to maintain accurate information for all neighboring LLDP agents.

  • Configuring LLPDU Updates: EX Series switches send periodic LLDP updates to neighboring devices. These updates are advertised every 30 seconds by default. The advertisement-interval range is between 5 and 32768 seconds and is configured at the [edit protocols lldp] hierarchy level. A sample configuration is shown below:

user@switch> show configuration protocols lldp 
advertisement-interval 30;
interface ge-0/0/10.0; 
  • LLDP Statistics: The LLDP receiver agent maintains detailed statistic counters for all LLDP-enabled interfaces. The statistic counters include frames received, frames with errors, and unknown TLVs for a given interface. The example below illustrates the statistic counters for both received and transmitted LLDP traffic for all participating interfaces:

user@switch> show lldp statistics 
Interface     Received   Unknown TLVs  With Errors    Transmitted   Untransmitted
ge-0/0/13.0   2665       0             0              2666          0
ge-0/0/10.0   17106      0             0              17115         0
ge-0/0/2.0    0          0             0              17111         4 


Modification History:

2020-07-10: Article reviewed for accuracy; no changes required; article valid


Related Links

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search