Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    show lldp

    Syntax

    show lldp<detail>

    Release Information

    Command introduced in Junos OS Release 9.0 for EX Series switches.

    Command introduced in Junos OS Release 11.1 for the QFX Series.

    Description

    Display information about Link Layer Discovery Protocol (LLDP) and Link Level Discovery Protocol–Media Endpoint Discovery (LLDP-MED) configuration and capabilities on the switch. LLDP and LLDP-MED are used to learn about and to distribute device information on network links.

    Note: LLDP-MED is not available on the QFX Series.

    Options

    none

    Display LLDP information for all interfaces.

    detail

    (Optional) Display detailed LLDP information for all interfaces.

    Note: fast-start is not available on the QFX Series.

    Required Privilege Level

    view

    List of Sample Output

    show lldp
    show lldp detail

    Output Fields

    Table 1 lists the output fields for the show lldp command. Output fields are listed in the approximate order in which they appear.

    Table 1: show lldp Output Fields

    Field Name

    Field Description

    Level of Output

    LLDP

    LLDP operating state. The state can be enabled or disabled.

    Note: If a VLAN that has been configured for untagged packets on an interface also has Layer 2 protocol tunneling (L2PT) enabled for LLDP, the LLDP operating state for that interface is displayed as disabled.

    All levels

    Advertisement interval

    Frequency, in seconds, at which LLDP advertisements are sent.

    This value is set by the advertisement-interval configuration statement.

    All levels

    Transmit delay

    Seconds of delay before advertisements are sent to neighbors following a change to a TLV (type, length, or value) element in the LLDP protocol or to the state of the local system, such as a change in hostname or management address. You can set this value to reduce the delay in notifying neighbors of a change in the local system.

    This value is set by the transmit-delay configuration statement.

    All levels

    Hold timer

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

    This value is set by the hold-multiplier configuration statement.

    All levels

    Notification interval

    How often LLDP trap notifications are generated as a result of LLDP database changes. If the interval value is 0, LLDP trap notifications of database changes are disabled.

    This value is set by the lldp-configuration-notification-interval configuration statement.

    All levels

    Config Trap Interval

    How often LLDP trap notifications are generated as a result of changes in topology—for example, when an endpoint connects or disconnects. If the interval value is 0, LLDP trap notifications of topology changes are disabled.

    This value is set by the ptopo-configuration-trap-interval configuration statement.

    All levels

    Connection Hold timer

    Amount of time the system maintains dynamic topology entries.

    This value is set by the ptopo-configuration-maximum-hold-time configuration statement.

    All levels

    LLDP-MED

    LLDP-MED operating state. The state can be enabled or disabled.

    All levels

    MED fast start count

    Number of advertisements sent from a switch to a device, such as a VoIP telephone, when the device is first detected by the switch. These increased advertisements are temporary. After a device and a switch exchange information and can communicate, advertisements are reduced to one per second.

    This value is set by the fast-start configuration statement.

    All levels

    Interface

    Name of the interface for which LLDP configuration information is being reported.

    All levels

    Parent Interface

    Name of the aggregated Ethernet interface, if any, to which the interface belongs.

    All levels

    LLDP

    LLDP operating state. The state can be enabled or disabled.

    All levels

    Power Negotiation

    LLDP power negotiation operating state. The state can be Enabled or Disabled.

    All levels

    Neighbor count

    Total number of new LLDP neighbors detected since the last switch reboot.

    detail

    Interface

    Name of the interface that is advertising VLAN information.

    All levels

    Vlan-id

    VLAN tag associated with the interface sending LLDP frames. If the interface is not a member of a VLAN, the VLAN ID is advertised as 0.

    detail

    Vlan-name

    VLAN name associated with the VLAN ID.

    detail

    LLDP basic TLVs supported

    Basic TLVs supported on the switch:

    • Chassis identifier—TLV that advertises the MAC address associated with the local system.
    • Port identifier—TLV that advertises the port identification for the specified port in the local system.
    • Port description—Interface name for the port.
    • System name—TLV that advertises the user-configured name of the local system.
    • System description—TLV that advertises the system description containing information about the software and current image running on the system. This information is taken from the software and is not configurable.
    • System capabilities—TLV that advertises the primary functions performed by the system—for example, bridge or router.
    • Management address—TLV that advertises the IP management address of the local system.

    detail

    Supported LLDP 802 TLVs

    802.3 TLVs supported on the switch:

    • MAC/PHY configuration status—TLV that advertises information about the physical interface, such as autonegotiation status and support and MAU type. The information is based on the physical interface structure and is not configurable.
    • Power via MDI—TLV that advertises MDI power support, PSE power pair, and power class information.
    • Link aggregation—TLV that advertises if the interface is aggregated and its aggregated interface ID.
    • Maximum frame size—TLV that advertises the maximum transmission unit (MTU) of the interface sending LLDP frames.
    • Port VLAN tag—TLV that advertises the VLAN tag configured on the interface.
    • Port VLAN name—TLV that advertises the VLAN name configured on the interface.

    detail

    Supported LLDP MED TLVs

    LLDP-MED TLVs supported on the switch:

    • LLDP MED capabilities—TLV that advertises the primary function of the port. The capabilities values range from 0 through 15:
      • 0—Capabilities
      • 1—Network Policy
      • 2—Location Identification
      • 3—Extended Power via MDI-PSE
      • 4—Inventory
      • 5–15—Reserved
    • Network policy—TLV that advertises the port VLAN configuration and associated Layer 2 and Layer 3 attributes. Attributes include the policy identifier, application types—such as voice or streaming video—802.1Q VLAN tagging, and 802.1p priority bits and DiffServ code points.
    • Endpoint location—TLV that advertises the physical location of the endpoint.
    • Extended power Via MDI—TLV that advertises the power type, power source, power priority, and power value of the port. It is the responsibility of the PSE device (network connectivity device) to advertise the power priority on a port.

    detail

    Sample Output

    show lldp

    user@switch> show lldp
    LLDP                   : Enabled
    Advertisement interval : 30 seconds
    Transmit delay         : 2 seconds
    Hold timer             : 4 seconds
    Notification interval  : 0 Second(s)
    Config Trap Interval   : 0 seconds
    Connection Hold timer  : 300 seconds
    
    LLDP MED               : Disabled
    MED fast start count   : 3 Packets
    
    
    Interface      Parent Interface    LLDP        LLDP-MED     Power Negotiation
    all            -                   Enabled     Enabled      Enabled
    

    show lldp detail

    user@switch> show lldp detail
    LLDP                   : Enabled
    Advertisement interval : 30 seconds
    Transmit delay         : 2 seconds
    Hold timer             : 4 seconds
    Notification interval  : 0 Second(s)
    Config Trap Interval   : 0 seconds
    Connection Hold timer  : 300 seconds
    
    LLDP MED               : Disabled
    MED fast start count   : 3 Packets
    
    
    Interface      Parent Interface    LLDP        LLDP-MED     Power Negotiation     Neighbor count
    all            -                   Enabled     Enabled      Enabled               8
    
    Interface      Parent Interface    Vlan-id     Vlan-name
    xe-3/0/0.0     ae31.0              100         v100
    xe-3/0/0.0     ae31.0              101         v101
    xe-3/0/0.0     ae31.0              4000        v4000
    xe-3/0/1.0     ae31.0              100         v100
    xe-3/0/1.0     ae31.0              101         v101
    xe-3/0/1.0     ae31.0              4000        v4000
    xe-3/0/2.0     ae31.0              100         v100
    xe-3/0/2.0     ae31.0              101         v101
    xe-3/0/2.0     ae31.0              4000        v4000
     
    LLDP basic TLVs supported:
    Chassis identifier, Port identifier, Port description, System name, System
    description, System capabilities, Management address.
    
    Supported LLDP 802 TLVs:
    MAC/PHY configuration/status, Power via MDI, Link aggregation, Maximum frame
    size, Port VLAN tag, Port VLAN name.
    
    Supported LLDP MED TLVs:
    LLDP MED capabilities, Network policy, Endpoint location, Extended power
    Via MDI.

    Published: 2013-01-23