Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

lldp

Syntax

Hierarchy Level

Description

Configure Link Layer Discovery Protocol (LLDP). The switch uses LLDP to advertise its identity and capabilities on a LAN, as well as to receive information about other network devices. LLDP is defined in the IEEE standard 802.1AB-2005.

Note:

The transmit-delay and netbios-snooping options are not available on QFabric systems.

Note:

On EX4300 switches, LLDP cannot be configured on the me0 or vme interface. Issuing the command set protocols lldp interface me0 generates the following error message:

Issuing the command set protocols lldp interface vme generates the following error message:

Default

LLDP is disabled. If you configure LLDP for all interfaces, you can later disable a particular interface.

Note:

The interface-name must be the physical interface and not a logical interface (unit).

Options

advertisement-interval seconds

Specify the frequency at which LLDP advertisements are sent. This value is also used in combination with the hold-multiplier value to determine the length of time LLDP information is held before it is discarded.

The advertisement-interval value must be greater than or equal to four times the transmit-delay value, or an error will be returned when you attempt to commit the configuration.

Note:

The default value of transmit-delay is 2 seconds. If you configure advertisement-interval as less than 8 seconds and you do not configure a value for transmit-delay, the value of transmit-delay is automatically changed to 1 second to satisfy the requirement that the advertisement-interval value be greater than or equal to four times the transmit-delay value.

  • Default: 30 seconds

  • Range: 5 through 32768 seconds

disable | enable

Disable or enable LLDP on the device.

  • Default: If you do not configure LLDP, it is disabled on the device.

hold-multiplier number

Specify the multiplier used in combination with the advertisement-interval value to determine the length of time LLDP information is held before it is discarded.

  • Range: 2 through 10

  • Default: 4 (or 120 seconds with the default of 30 seconds for advertisement-interval)

lldp-configuration-notification-interval seconds

Specify how often SNMP trap notifications are generated as a result of LLDP database changes.

  • Range: 5 through 3600 seconds

  • Default: Disabled

management-address ip-management-address;

Specify the management address to be used in LLDP Management Address type, length, and value (TLV) messages. The Management Address TLV typically contains the IPv4 or IPv6 management addresses of the local system. Only out-of-band management addresses can be used for the management-address. Other remote managers can use this address to obtain information related to the local device.

  • Default: The LLDP Management Address TLV uses the IP address of the switch's management Ethernet interface (me0), or the IP address of the virtual management Ethernet (VME) interface if the switch is a Virtual Chassis member.

mau-type

(EX4300, EX9200, and EX9250 switches only) Configure the switch to advertise information about the medium attachment unit (MAU) type. The MAU is a transceiver that interconnects the attachment unit interface (AUI) port on an attached host computer to an Ethernet cable. MAU types are defined in the IEEE 802.3 standard.

The MAU type is included in the MAC/PHY Configuration Status type, length, and value (TLV) message. TLVs are used by LLDP-capable devices to transmit information to neighbor devices. The MAC/PHY Configuration Status TLV is an organizationally defined TLV that advertises information about the physical interface. In addition to the MAU type, the MAC/PHY Configuration Status TLV also includes information such as autonegotiation status, support, and advertised capabilities.

The MAU type cannot be changed by configuration; however, you must configure the mau-type statement to include the MAU type value in the MAC/PHY Configuration Status TLV.

  • Default: If the mau-type statement is not configured, the MAU type field of the MAC/PHY Configuration Status TLV contains the value Unknown.

netbios-snooping

(EX2200, EX3200, EX3300, EX4200, EX4500, EX4550, EX6210, EX8208, and EX8216 switches only) Enable NetBIOS snooping to learn information about NetBIOS hosts that are connected to the switch.

no-tagging

(EX2200, EX3200, EX3300, EX4200, EX4500, EX4550, EX6210, EX8208, and EX8216 switches only) Configure the switch to send LLDPDUs without including VLAN tags on the interfaces on which VLAN tagging is enabled (tagged interfaces).

  • Default: Interfaces for which VLAN tagging is enabled include a VLAN tag (tag 0) in LLDPDUs if the no-tagging option is not configured.

neighbour-port-info-display (port-description | port-id)

Configure the type of LLDP neighbor port information that the device displays in the Port info field in the output of the show lldp neighbors CLI command.

Devices in a network use LLDP to learn about and identify neighbor devices. LLDP-capable devices transmit information in type, length, and value (TLV) messages to neighbor devices.

The Port info field of the show lldp neighbors command displays the port information received from LLDP neighbors. This information is sent from the LLDP neighbor to the device in a type, length, and value (TLV) message. You can use the neighbor-port-info-display statement to configure the device to display the information contained in either the Port Description TLV or the Port Identification TLV.

  • Values: Configure one of the following:

    • port-description—Display the information from the Port Description TLV in the Port info field of the show lldp neighbors CLI command.

      The Port Description TLV contains the textual description of the logical unit or the port. The description for the logical unit is used, if available; otherwise, the description for the physical interface (port) is used. For example, LAG member interfaces do not contain a logical unit; therefore, only the description configured on the physical interface is used.

    • port-id—Display the information from the Port Identification TLV in the Port info field of the show lldp neighbors CLI command.

      The Port Identification TLV contains the identifier for the neighbor port. The SNMP index of the interface is used as the port identifier.

  • Default: port-description—The information contained in the Port Description TLV is displayed in the Port info field.

port-description-type (interface-alias | interface-description)

Configure the value to be used to generate the Port Description TLV that the device advertises to neighbors.

  • Values: Configure one of the following:

    • interface-alias—Use the ifAlias MIB object value to generate the port description TLV. The LLDP MIB variable lldpLocPortDesc then contains the same value as ifAlias, which is the same as the description of the interface.

    • interface-description—Use the ifDescr MIB object value to generate the port description TLV. The LLDP MIB variable lldpLocPortDesc then contains the same value as ifDescr, which is the same as the interface name.

  • Default: interface-alias—The interface-alias value is same as the description of an interface configured with set interface name description description command.

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 9.0.

management-address introduced in Junos OS Release 9.5.

netbios-snooping introduced in Junos OS Release 11.1 for EX2200, EX3200, EX3300, EX4200, EX4500, EX4550, EX6210, EX8208, and EX8216 switches.

port-description-type introduced in Junos OS Release 13.3R5, 14.2R2, 14.1R4, and 12.3R9.

no-tagging introduced in Junos OS Release 14.1X53-D10 for EX2200, EX3200, EX3300, EX4200, EX4500, EX4550, EX6210, EX8208, and EX8216 switches.

neighbour-port-info-display introduced in Junos OS Release 14.1X53-D40 and Release 15.1R5 and Release 16.1R3.

mau-type introduced in Junos OS Release 15.1 for EX4300, EX9200, and EX9250 switches.

chassis-id introduced in Junos OS Evolved, Release 23.3R1.