Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Configuring LLDP on MX Series Routers in Enhanced LAN Mode

Starting with Junos OS Release 14.2, 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 enables 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

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:

  • To configure LLDP on a specific interface:

Note:

On MX Series routers, LLDP cannot be configured on the management Ethernet interface. Issuing the command set protocols lldp interfaceem0 generates the following error message:

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 change the default values.

  • To specify the frequency at which LLDP advertisements are sent (in seconds):

    For example, using the default value:

  • 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):

    For example, using the default value:

  • 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).

    For example:

    Note:

    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):

    For example:

  • To configure the time interval for SNMP trap notifications to wait for topology changes (in seconds):

    For example:

  • To specify the holding time (used in combination with the ptopo-configuration-trap-interval value) to maintain dynamic topology entries (in seconds):

    For example:

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:

Note:

Ensure that the interface with the configured management address has LLDP enabled using the set protocols lldp interface command. If you configure a customized management address for LLDP on an interface that has LLDP disabled, the show lldp local-information command output will not display the correct interface information.

Change History Table

Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.

Release
Description
14.2
Starting with Junos OS Release 14.2, 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.