Supported Platforms
Configuring LLDP (CLI Procedure)
Devices use Link Layer Discovery Protocol (LLDP) and Link Layer Discovery Protocol–Media Endpoint Discovery (LLDP-MED) to learn and distribute device information on network links. The information allows the device to quickly identify a variety of other devices, resulting in a LAN that interoperates smoothly and efficiently.
This topic describes:
- Enabling LLDP on Interfaces
- Adjusting LLDP Advertisement Settings
- Adjusting SNMP Notification Settings of LLDP Changes
- Specifying a Management Address for the LLDP Management TLV
- Configuring LLDP Power Negotiation
Enabling LLDP on Interfaces
LLDP is enabled on all interfaces by default. If it is disabled, you can enable LLDP by configuring it on all interfaces or on specific interfaces.
- To configure LLDP on all interfaces:
[edit protocols lldp]
user@switch# set interface all - To configure LLDP on a specific interface:
[edit protocols lldp]
user@switch# set interface interface-name
Adjusting LLDP Advertisement Settings
You can adjust the following settings for LLDP advertisements for troubleshooting or verification purposes. The default values are applied when LLDP is enabled. For normal operations, we recommend that you do not adjust these settings from the default values.
- To specify the frequency at which LLDP advertisements
are sent (in seconds):
[edit protocols lldp]
user@switch# set advertisement-interval secondsFor example, using the default value:
[edit protocols lldp]
user@switch# set advertisement-interval 45 - To specify the number of seconds that LLDP information
is held before it is discarded (the multiplier value is used in combination
with the advertisement-interval value):
[edit protocols lldp]
user@switch# set hold-multiplier secondsFor example, using the default value:
[edit protocols lldp]
user@switch# set hold-multiplier 5 - To specify the number of seconds the device delays before
sending advertisements to neighbors after a change is made in a TLV
(type, length, or value) element in LLDP or in the state of the local
system, such as a change in hostname or management address, set the
transmit delay. The transmit delay is enabled by default on switches
to reduce the delay in notifying neighbors of a change in the local
system. The default value is 2 seconds (if the advertisement-interval value is set to 8 seconds or more) or 1 second (if the advertisement-interval value is set to less than 8 seconds).
[edit protocols lldp]
user@switch# set transmit-delay secondsFor example:
[edit protocols lldp]
user@switch# set transmit-delay 2Note: The advertisement-interval value must be greater than or equal to four times the transmit-delay value; otherwise, an error is returned when you attempt to commit the configuration.
Adjusting SNMP Notification Settings of LLDP Changes
You can adjust the following settings for SNMP notifications of LLDP changes. If the values are not specified or if the interval values are set to 0, the notifications are disabled.
- To specify the frequency at which LLDP database changes
are sent (in seconds):
[edit protocols lldp]
user@switch# set lldp-configuration-notification-interval secondsFor example:
[edit protocols lldp]
user@switch# set lldp-configuration-notification-interval 600 - To configure the time interval for SNMP trap notifications
to wait for topology changes (in seconds):
[edit protocols lldp]
user@switch# set ptopo-configuration-trap-interval secondsFor example:
[edit protocols lldp]
user@switch# set ptopo-configuration-trap-interval 600 - To specify the holding time (used in combination with
the ptopo-configuration-trap-interval value) to maintain
dynamic topology entries (in seconds):
[edit protocols lldp]
user@switch# set ptopo-configuration-maximum-hold-time secondsFor example:
[edit protocols lldp]
user@switch# set ptopo-configuration-maximum-hold-time 2147483647
Specifying a Management Address for the LLDP Management TLV
You can configure an IPv4 or IPv6 management address to be used in the LLDP Management Address type, length, and value (TLV) messages. Only out-of-band management addresses must be used as the value for the management-address statement.
To configure the management address:
[edit protocols lldp]
user@switch# set management-address 192.168.0.1
Configuring LLDP Power Negotiation
LLDP power negotiation enables the switch’s Power over Ethernet (PoE) controller to dynamically allocate PoE power to PoE interfaces, based on the needs of the powered device, by negotiating with LLDP-enabled powered devices.
![]() | Note: LLDP power negotiation is not supported on EX3200 and EX4200 (except EX4200 PX models) switches. |
LLDP power negotiation is supported on switches running PoE controller software version 4.04 or later. For information about upgrading the PoE controller software, see Upgrading the PoE Controller Software.
LLDP power negotiation is automatically enabled when the PoE management mode is set to class.
- To disable LLDP power negotiation on switch interfaces:
[edit protocols lldp interface all power-negotiation]
user@switch# disable - To disable LLDP power negotiation on a specific switch
interface:
[edit protocols lldp interface interface-name power-negotiation]
user@switch# disable