LLDP Commands
  • 02 Apr 2024
  • 34 Minutes to read
  • Contributors
  • Dark
    Light
  • PDF

LLDP Commands

  • Dark
    Light
  • PDF

Article Summary

LLDP (Link Layer Discovery Protocol) supports a set of attributes that it uses to discover neighbor devices. These attributes contain type, length, and value descriptions and are referred to as TLVs. LLDP-supported devices can use TLVs to receive and send information to their neighbors.

The switch supports these mandatory basic management TLVs.

  • Port description TLV
  • System name TLV
  • System description
  • System capabilities TLV
  • Management address TLV
  • Port VLAN ID TLV ((IEEE 802.1 organizationally specific TLVs)
  • MAC/PHY configuration/status TLV(IEEE 802.3 organizationally specific TLVs)

LLDP CLI commands are categorized as follows:

Enable and Disable Commands

This section includes LLDP enable and disable commands.

shutdown lldp

Command Objective:
This command shuts down all the ports in the LLDP and releases all the allocated memory.

The no form of the command enables all the ports by allocating the required resources in the LLDP.

Syntax:
shutdown lldp

no shutdown lldp

Mode:
Global Configuration Mode

Default:
LLDP is not shutdown in the system


Note: LLDP cannot be started in the switch if the base bridge Mode is configured as transparent bridging.

Example:

Your Product(config)# shutdown lldp

set lldp

Command Objective:
This command transmits or receives LLDP frames from the switch to its neighbor device.

Syntax:
set lldp {enable | disable}

Parameter Description:

  • enable - Transmits/receives the LLDP packets between the neighbor device and the switch.
  • disable - Does not transmit/receive the LLDP packets between the neighbor device and the switch.

Mode:
Global Configuration Mode

Default:
Disable

Example:

Your Product(config)# set lldp enable

Configuration Commands

This section includes LLDP configuration commands.

lldp transmit-interval

Command Objective:
This command sets the transmission interval in which the switch sends the LLDP frames to the neighbor device. This value ranges from 5 to 32768 seconds.

The no form of the command sets the transmission interval to the default value.

Syntax:
lldp transmit-interval <seconds(5-32768)>

no lldp transmit-interval

Mode:
Global Configuration Mode

Default:
30 seconds


Note: This command executes only if LLDP is started.

Example:

Your Product(config)# lldp transmit-interval 50

lldp holdtime-multiplier

Command Objective:
This command sets the holdtime-multiplier value, which is the amount of time the switch should hold the LLDP. This value ranges from 2 to 10.

The no form of the command sets the multiplier to the default value.


Note: TTL (Time to Live) is a value that tells the receiving agent how long the information contained in the TLV Value field is valid.

TTL = message transmission interval * hold time multiplier.

For Example, if the value of the LLDP transmission interval is 30, and the value of the LLDP hold multiplier is 4, then the value 120 is encoded in the TTL field in the LLDP header.


Syntax:
lldp holdtime-multiplier <value(2-10)>

no lldp holdtime-multiplier

Mode:
Global Configuration Mode

Default:
4


Note: This command executes only if LLDP is started.

Example:

Your Product(config)# lldp holdtime-multiplier 5

lldp reinitialization-delay

Command Objective:
This command sets the reinitialization delay time which is the minimum time an LLDP port will wait before reinitializing LLDP transmission. This value ranges from 1 to 10 seconds.

The no form of the command sets the reinitialization delay time to the default value.

Syntax:
lldp reinitialization-delay <seconds(1-10)>

no lldp reinitialization-delay

Mode:
Global Configuration Mode

Default:
2 seconds


Note: This command executes only if LLDP is started.

Example:

Your Product(config)# lldp reinitialization-delay 4

lldp tx-delay

Command Objective:
This command sets the transmit delay which is the minimum amount of delay between successive LLDP frame transmissions in response to a request from a neighbor. This value ranges from 1 to 8192 seconds.

The no form of the command sets the transmit delay to the default value.


Note: TxDelay should be less than or equal to (0.25 * Message Tx Interval).

Syntax:
lldp tx-delay <seconds(1-8192)>

no lldp tx-delay

Mode:
Global Configuration Mode

Default:
2 seconds


Note: This command executes only if LLDP is started.

Example:

Your Product(config)# lldp tx-delay 120

lldp notification-interval

Command Objective:
This command sets the time interval in which the local system generates a notification-event. In the specific interval, generating more than one notification-event is not possible. This value ranges from 5 to 3600 seconds.

The no form of the command sets the notification interval to the default value.

Syntax:
lldp notification-interval <seconds(5-3600)>

no lldp notification-interval

Mode:
Global Configuration Mode

Default:
5 seconds


Note: This command executes only if LLDP is started.

Example:

Your Product(config)# lldp notification-interval 150

lldp chassis-id-subtype

Command Objective:
This command configures an ID for LLDP chassis subtype which is a unique address of any neighbor device.


Note: Chassis ID value can only be set for the chassis-component and local system subtypes. For all other subtypes, it takes the value from the system automatically.

Syntax:
lldp chassis-id-subtype { chassis-comp <string(255)> | if-alias | port-comp <string(255)> | mac-addr | nw-addr | if-name | local <string(255)> }

Parameter Description:

  • chassis-comp <string(255)> - Represents a chassis identifier based on the value of entPhysicalAlias object for a chassis component
  • if-alias - Represents a chassis identifier based on the value of ifAlias for an interface on the containing chassis.
  • port-comp <string(255)> - Represents a chassis identifier based on the value of entPhysicalAlias object for a port or backplane within the chassis.
  • mac-addr - Represents a chassis identifier based on the value of a unicast source address of a port on the chassis.
  • nw-addr - Represents a chassis identifier based on a network address, associated with a particular chassis. The encoded address is actually composed of two fields. The first field is a single octet, representing the IANA AddressFamilyNumbers value for the specific address type, and the second field is the network address value.
  • if-name - Represents a chassis identifier based on the value of ifName object for an interface on the containing chassis.
  • local <string(255)> - Represents a chassis identifier based on a locally defined value."

Mode:
Global Configuration Mode

Default:
chassis-comp


Note: This command executes only if LLDP is started.

Example:

Your Product(config)# lldp chassis-id-subtype if-alias

set lldp version

Command Objective:
This command enables the LLDP version that will be used on the system.

Syntax:
set lldp version {v1 | v2}

Parameter Description:

  • v1 - Enables LLDP 2005 version 1 on the port
  • v2 - Enables LLDP 2009 version 2 on the port

Mode:
Global Configuration Mode

Default:
v1


Note: This command executes only if LLDP is started.

Example:

Your Product(config)# set lldp version v2

lldp txCreditMax

Command Objective:
This command configures the maximum number of consecutive LLDPDUs that can be transmitted at any time. This value ranges from 1 to 10.

Syntax:
lldp txCreditMax <value (1-10)>

Mode:
Global Configuration Mode

Default:
5


Note: This command executes only if LLDP is started.

Example:

Your Product(config)# lldp txCreditMax 3

lldp MessageFastTx

Command Objective:
This command configures the interval at which LLDP frames are transmitted on behalf of this LLDP agent during a fast transmission period. This value ranges from 1 to 3600 seconds.

Syntax:
lldp MessageFastTx <seconds(1-3600)>

Mode:
Global Configuration Mode

Default:
1


Note: This command executes only if LLDP is started.

Example:

Your Product(config)# lldp MessageFastTx 3500

lldp txFastInit

Command Objective:
This command configures the value used to initialize the txFast variable which determines the number of transmissions that are made in fast transmission mode. This value ranges from 1 to 8.

Syntax:
lldp txFastInit <value (1-8)>

Mode:
Global Configuration Mode

Default:
4


Note: This command executes only if LLDP is started.

Example:

Your Product(config)# lldp txFastInit 3

set lldp tag status

Command Objective:
This command sets the LLD-PDU transmit status to be tagged or untagged.

Syntax:
set lldp tag status { enable | disable }

Parameter Description:

  • enable – Enables the LLD-PDU transmit status to be tagged. When the LLDP tag is enabled, the Tagged LLDP packets are transmitted on the Edge Virtual Bridge (EVB) - Uplink Access Ports (UAP) and Untagged LLDP packets will be transmitted on the other ports. The configured management IP address is carried in the management address TLV of the LLDP packet.
  • disable - Disables the LLD-PDU transmit status to be untagged.

Mode:
Global Configuration Mode

Default:
disabled

Example:

Your Product (config)# set lldp tag status enable

set lldp management-address

Command Objective:
This command sets the IPv4/IPV6 management IP address that is carried in the Management Address TLV.

Syntax:
set lldp management-address {ipv4 <ucast_addr> | ipv6 <ip6_addr>}

Parameter Description:

  • ipv4 <ucast_addr> – Sets the management IP address as IPv4
  • ipv6 <ip6_addr> - Sets the management IP address as IPv6

Mode:
Global Configuration Mode

Default:
disabled

Example:

Your Product (config)# set lldp management-address ipv4 12.0.0.1

lldp transmit / receive

Command Objective:
This command enables the transmission or reception of LLDP frames on one of the switch ports.

The no form of the command resets LLDP admin status on an interface.

Syntax:
lldp {transmit | receive} [mac-address <mac_addr>]

no lldp {transmit | receive} [mac-address <mac_addr>]

Parameter Description:

  • transmit - Enables transmission of LLDPDU from one of the switch ports to the neighbor device.
  • receive - Enables reception of LLDPDU from one of the switch ports to the neighbor device.
  • mac-address <mac_addr> - Configures the MAC address to be used as the destination MAC address by the LLDP agent on the specified port.

Mode:
Interface Configuration Mode

Default:
Transmission and Reception are enabled


Note: This command executes only if LLDP is started.

Example:

Your Product(config-if)# lldp transmit

lldp notification

Command Objective:
This command controls the transmission of LLDP notifications.

The no form of the command disables LLDP trap notification on an interface.

Syntax:
lldp notification ([remote-table-chg][mis-configuration]) [mac-address <mac_addr>]

no lldp notification [mac-address <mac_addr>]

Parameter Description:

  • remote-table-chg - Sends trap notification to NMS whenever remote table change occurs.
  • mis-configuration - Sends trap notification to NMS whenever misconfiguration is identified.
  • mac-address <mac_addr> - Configures the MAC address to be used as the destination MAC address by the LLDP agent on the specified port.

Mode:
Interface Configuration Mode

Default:
mis-configuration


Note: This command executes only if LLDP is started.

Example:

Your Product(config-if)# lldp notification remote-table-chg

lldp tlv-select basic-tlv

Command Objective:
This command enables the basic settings while transmitting the LLDP frames on a given port.

The no form of the command disables the basic TLV transmission on a given port.

Syntax:
lldp tlv-select basic-tlv { port-descr | sys-name | sys-descr | sys-capab | mgmt-addr {all | ipv4 <ucast_addr> | ipv6 <ipv6_addr>}} [mac-address ]

no lldp tlv-select basic-tlv { port-descr | sys-name | sys-descr | sys-capab | mgmt-addr {all | ipv4 <ucast_addr> | ipv6 <ipv6_addr>}} [mac-address <mac_addr>]

Parameter Description:

  • port-descr - Enables the basic TLV transmission for the administratively assigned description for the port
  • sys-name - Enables the basic TLV transmission for the administratively assigned system name
  • sys-descr - Enables the basic TLV transmission for administratively assigned system description . The system description includes system’s hardware name and type, and system’s operating software and its version.
  • sys-capab - Enables the system capabilities of the basic TLV transmission
  • mgmt-addr – Enables the basic TLV transmission to maintain the management addresses through which a management neighbor device can manage the system and allow the transmission on the current interface.
    • all – Enables the transmission of all the available management addresses on the current interface. If no management address is present/ configured in the system, a switch mac-address will be taken for transmission.
    • ipv4 < ucast addr > – Enables the transmission of a particular ipv4 address on the current interface.
    • ipv6 < ip6 addr > – Enables the transmission of a particular ipv6 address on the current interface.
  • mac-address <mac_addr> - Enables the basic TLV transmission to use the MAC address as the destination MAC address by the LLDP agent on the specified port.

    Note: MAC Address can be configured only if LLDP version is set as v2.

  • Mode:
    Interface Configuration Mode (Physical Interfaces)


    Note: This command executes only if LLDP is started.

    Example:

    Your Product(config-if)# lldp tlv-select basic-tlv port-descr
    

    lldp port-id-subtype

    Command Objective:
    This command configures an ID for LLDP port subtype.

    Syntax:
    lldp port-id-subtype { if-alias | port-comp <string(255)> | mac-addr | if-name | local <string(255)> }

    Parameter Description:

    • if-alias - Represents a chassis identifier based on the value of ifAlias for an interface on the containing chassis.
    • port-comp <string(255)> - Represents a chassis identifier based on the value of entPhysicalAlias object for a port or backplane within the chassis.
    • mac-addr - Represents a chassis identifier based on the value of a unicast source address, of a port on the containing chassis.
    • if-name - Represents a chassis identifier based on the value of ifName object for an interface on the containing chassis.
    • local <string(255)> - Represents a chassis identifier based on a locally defined value.

    Mode:
    Interface Configuration Mode

    Default:
    if-alias


    Note: This command executes only if LLDP is started.

    Example:

    Your Product(config-if)# lldp port-id-subtype mac-addr
    
    Your Product(config-if)# lldp port-id-subtype local slot0/1
    

    lldp tlv-select dot1tlv

    Command Objective:
    This command performs dot1 TLV configuration while transmitting the LLDP frames to the particular port, apart from the basic settings.

    The no form of the command disables the transmission of dot1 TLV types on a port.

    Syntax:
    lldp tlv-select dot1tlv {port-vlan-id | protocol-vlan-id {all |< vlan-id >} | vlan-name {all | < vlan-id >} | vid-usage-digest | mgmt-vid | link-aggregation} [mac-address < mac_addr >]

    no lldp tlv-select dot1tlv {port-vlan-id | protocol-vlan-id {all |< vlan-id >} | vlan-name {all | < vlan-id >} | vid-usage-digest | mgmt-vid | link-aggregation} [mac-address < mac_addr >]

    Parameter Description:

    • port-vlan-id - Specifies the VLAN ID of the port that uniquely identifies a specific VLAN. This VLAN ID is associated with a specific group of protocols for the specific port.
    • protocol-vlan-id – Specifies the protocol ID that represents a specific group of protocols that are associated together when assigning a VID to a frame. This group ID is associated with the specific port.
      • all – Sets the protocol ID as all.
      • < vlan-id > – Sets the protocol ID as the mentioned VLAN ID. This value ranges from 1 to 4094.
    • vlan-name – Specifies the administratively assigned string, which is used to identify the VLAN.
      • all – Sets the protocol ID as all.
      • < vlan-id > – Sets the protocol ID as the mentioned VLAN ID. This value ranges from 1 to 4094.
    • vid-usage-digest - Performs dot1 TLV configuration while transmitting the LLDP frames to the VID usage digest TLV.
      Note: This parameter can be set only when LLDP version is set as v2.
    • mgmt-vid - Performs dot1 TLV configuration while transmitting the LLDP frames to the managemet VID TLV.
      Note: This parameter can be set only when LLDP version is set as v2.
    • link-aggregation - Performs dot1 TLV configuration while transmitting the LLDP frames to the link-aggregation TLV.
      Note: This parameter can be set only when LLDP version is set as v2.
    • mac-address <mac_addr> - Specifies the destination mac of the LLDP agent.
      Note: This parameter can be set only when the LLDP version is set as v2.

    Mode:
    Interface Configuration Mode


    Note: This command executes only if LLDP is started.

    Example:

    Your Product(config-if)# lldp tlv-select dot1tlv port-vlan-id mac-address 00:11:22:33:44:55
    

    lldp tlv-select dot3tlv

    Command Objective:
    This command performs dot3 TLV configuration while transmitting the LLDP frames to the particular port, apart from the basic settings.

    The no form of the command disables the transmission of dot3 TLV types on a port.

    Syntax:
    lldp tlv-select dot3tlv {macphy-config | link-aggregation | max-framesize}

    no lldp tlv-select dot3TLV {macphy-config | link-aggregation | max-framesize}

    Parameter Description:

    • macphy-config - Configures the physical MAC address of the TLV.
    • link-aggregation - Configures the link aggregation protocol statistics for each port on the device.
    • max-framesize - Configures the maximum frame size of the TLV.

    Mode:
    Interface Configuration Mode


    Note: This command executes only if LLDP is started.

    Example:

    Your Product(config-if)# lldp tlv-select dot3tlv macphy-config
    

    lldp dest-mac

    Command Objective:
    This command configures the destination mac-address to be used by the LLDP agent for transmission on this port.

    The no form of the command resets the destination mac-address to LLDP multicast address.

    Syntax:
    lldp dest-mac <mac_addr>

    no lldp dest-mac <mac_addr>

    Mode:
    Interface Configuration Mode (Physical Interfaces)

    Default:
    The default value would be the LLDP multicast MAC address


    Note: This command executes only if LLDP is started.

    Example:

    Your Product(config-if)# lldp dest-mac 00:11:22:33:44:55
    

    dot1x reauth-max

    Command Objective:
    This command sets the maximum number of EAP retries to the client; the value ranges from 1 to 10.

    This variable can be tuned to make the port unauthorized if the supplicant is not available when reauthentication reaches the maximum retry. If the value is lowered, the port is made as unauthorized sooner.

    The no form of the command resets the maximum number of EAP retries to the client to its default value.

    Syntax:
    dot1x reauth-max <count(1-10)>

    no dot1x reauth-max

    Mode:
    Interface Configuration Mode

    Default:
    count - 2

    Example:

    Your Product(config-if)# dot1x reauth-max 5
    

    lldp med-tlv-select

    Command Objective:
    This command enables the LLDP-MED TLV transmission on a given switch port.

    The no form of this command disables the LLDP-MED TLV transmission on a given switch port.

    Syntax:
    lldp med-tlv-select { med-capability | network-policy | inventory-management | location-id | ex-power-via-mdi } [ mac-address <mac_addr> ]

    no lldp med-tlv-select { med-capability | network-policy | inventory-management | location-id | ex-power-via-mdi } [ mac-address <mac_addr>

    Parameter Description:

    • med-capability - Configures the Med Capability TLV transmission for the neighbor device.
    • network-policy - Configures the Network-policy TLV related transmission for the neighbor device.
    • inventory-management - Configures the Inventory-management TLV related transmission for the neighbor device.
    • location-id - Configures the Location identification TLV related transmission for the neighbor device.
    • ex-power-via-mdi - Configures the Extended power via MDI TLV related transmission for the neighbor device.
    • mac-address <mac_addr> - Configures the basic TLV transmission to use the MAC address as destination MAC address by the LLDP agent on the specified switch port.

    Mode:
    Interface Configuration Mode


    Note: Mac-address can be configured only if:

    • LLDP version v2 is enabled

    • LLDP dest-mac is configured


    Example:

    Your Product(config-if)# lldp med-tlv-select inventory-management
    
    Your Product(config-if)# lldp med-tlv-select location-id mac-address 00:01:03:04:06:07
    

    lldp med-location elin-location

    Command Objective:
    This command configures the Emergency Location Information Number (ELIN) location subtype information advertised by the endpoint.

    Syntax:
    lldp med-location elin-location location-id <string(10-25)>

    Parameter Description:

    • location-id <string(10-25)> - Configures the location identification

    Mode:
    Interface Configuration Mode

    Example:

    Your Product (config-if)# lldp med-location elin-location location-id 12345678912345
    

    set lldp-med

    Command Objective:
    This command enables or disables the LLDP-MED on the port.

    Syntax:
    set lldp-med {enable | disable}

    Parameter Description:

    • enable – Enables LLDP-MED
    • disable - Disables LLDP-MED

    Mode:
    Interface Configuration Mode

    Example:

    Your Product (config-if)# set lldp-med enable
    

    lldp medFastStartRepeatCount

    Command Objective:
    This command configures the med fast repeat count value, where the value is the number of successive LLDP frame Tx for one complete Fast Start interval. This value ranges from 1 to 10.

    Syntax:
    lldp medFastStartRepeatCount <value (1-10)>

    Mode:
    Global Configuration Mode

    Default:
    3

    Example:

    Your Product (config)# lldp medFastStartRepeatCount 2
    

    Display Commands

    This section includes LLDP display commands.

    show lldp

    Command Objective:
    This command displays LLDP global configuration details to initialize on an interface.

    Syntax:
    show lldp

    Mode:
    Privileged EXEC Mode


    Note: This command executes only if LLDP is started.

    Example:

    Your Product# show lldp
    
    LLDP is disabled
    LLDP Version             : v1
    Transmit Interval                   : 30
    Holdtime Multiplier                 : 4
    Reinitialization Delay              : 2
    Tx Delay                            : 2
    Notification Interval               : 5
    Chassis Id SubType       : Chassis Component
    Chassis Id               : C418-0818
    LLDP Tag Status                     : enabled
    Configured Management Ipv4 Address  : 12.0.0.1
    Configured Management Ipv6 Address  : fe80::203:2ff:fe03:401
    

    show lldp interface

    Command Objective:
    This command displays the information about interfaces where LLDP is enabled.

    Syntax:
    show lldp interface [< interface-type > < interface-id >] [mac-address < mac_addr >]

    Parameter Description:

    • < interface-type > – Displays the information about the specified type of interface. The interface can be:
      • fastethernet – Officially referred to as 100BASE-T standard. This is a version of LAN standard architecture that supports data transfer up to 100 Megabits per second.
      • gigabitethernet – A version of LAN standard architecture that supports data transfer up to 1 Gigabit per second.
      • extreme-ethernet – A version of Ethernet that supports data transfer up to 10 Gigabits per second. This Ethernet supports only full duplex links.
      • i-lan / internal-lan – Internal LAN created on a bridge per IEEE 802.1ap.
      • port-channel – Logical interface that represents an aggregator which contains several ports aggregated together.
    • < interface-id > – Displays the information about the specified interface identifier. This is a unique value that represents the specific interface. This value is a combination of slot number and port number separated by a slash, for interface types other than i-lan and port-channel. For Example: 0/1 represents that the slot number is 0 and the port number is 1. Only i-lan or port-channel ID is provided, for interface types i-lan and port-channel. For Example: 1 represents i-lan and port-channel ID.
    • mac-address < mac_addr > - Displays information about neighbors for the specified destination MAC address of the LLDP agent.

    Mode:
    Privileged EXEC Mode


    Note: This command executes only if LLDP is started.

    Example:

    Your Product# show lldp interface gigabitethernet 0/1
    Gi0/1:
    Tx State : Enabled
    Rx State : Enabled
    Tx SEM State : INITIALIZE
    Rx SEM State : INITIALIZE
    Notification Status : Disabled
    Notification Type : Mis-configuration
    DestinationMacAddr : 01:80:c2:00:00:0e
    

    show lldp neighbors

    Command Objective:
    This command displays information about neighbors on an interface or all interfaces.

    Syntax:
    show lldp neighbors [chassis-id < string(255) > port-id < string(255) >] [< interface-type > < interface-id >][detail]

    Parameter Description:

    • chassis-id <string(255)> – DisplaysLLDP Neighbor information for the specified chassis identifier value. This is a string value with a maximum size of 255.
    • port-id <string(255)> - DisplaysLLDP Neighbor information for the specified port number that represents the concerned aggregation port. This is a string value with a maximum size of 255.
    • < interface-type > – Displays information about neighbors for the specified type of interface. The interface can be:
      • fastethernet – Officially referred to as 100BASE-T standard. This is a version of LAN standard architecture that supports data transfer up to 100 Megabits per second.
      • gigabitethernet – A version of LAN standard architecture that supports data transfer up to 1 Gigabit per second.
      • extreme-ethernet – A version of Ethernet that supports data transfer up to 10 Gigabits per second. This Ethernet supports only full duplex links.
      • i-lan – Internal LAN created on a bridge per IEEE 802.1ap.
    • < interface-id > – Displays information about neighbors for the specified interface identifier. This is a unique value that represents the specific interface. This value is a combination of slot number and port number separated by a slash, for interface types other than i-lan and port-channel. For Example: 0/1 represents that the slot number is 0 and port number is 1. Only i-lan ID is provided, for interface types i-lan. For Example: 1 represents i-lan ID.
    • detail< mac_addr > - Displays the information obtained from all the received TLVs.

    Mode:
    Privileged EXEC Mode


    Note: This command executes only if LLDP is started.

    Example:

    Your Product# show lldp neighbors
    Capability Codes :
    (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device,
    (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
    Chassis ID Local Intf Hold-time Capability Port Id
    ---------- ---------- --------- ---------- -------
    00:01:02:03:04:01 Gi0/1 120 B,R Slot0/1
    00:02:02:03:04:01 Gi0/2 120 Slot0/3
    00:02:02:03:04:01 Gi0/3 120 Slot0/2
    00:01:02:03:04:01 Gi0/2 120 Slot0/2
    00:01:02:03:04:01 Gi0/3 120 Slot0/2
    Total Entries Displayed : 5
    
    Your Product# show lldp neighbors chassis-id 00:01:02:03:04:01 port-id Slot0/2
    Capability Codes :
    (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device,
    (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
    Chassis ID Local Intf Hold-time Capability Port Id
    ---------- ---------- --------- ---------- -----
    00:01:02:03:04:01 Gi0/2 120 Slot0/2
    00:01:02:03:04:01 Gi0/3 120 Slot0/2
    Total Entries Displayed : 2
    
    Your Product# show lldp neighbors chassis-id 00:01:02:03:04:01 port-id Slot0/2 gigabitethernet 0/2
    Capability Codes :
    (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device,
    (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
    Chassis ID Local Intf Hold-time Capability Port Id
    ---------- ---------- --------- ---------- -----
    00:01:02:03:04:01 Gi0/2 120 Slot0/2
    Total Entries Displayed : 1
    
    Your Product# show lldp neighbors chassis-id 00:01:02:03:04:01 port-id Slot0/2 detail
    Capability Codes :
    (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device,
    (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
    Chassis Id SubType : Mac Address
    Chassis Id : 00:01:02:03:04:01
    Port Id SubType : Interface Alias
    Port Id : Slot0/2
    Port Description : Not Advertised
    System Name : Not Advertised
    System Desc : Not Advertised
    Local Intf : Gi0/2
    Time Remaining : 92 Seconds
    System Capabilities Tlv : Not Advertised
    Management Addresses : Not Advertised
    Extended 802.3 TLV Info
    -MAC PHY Configuration & Status
    Auto Negotiation Tlv : Not Advertised
    -Link Aggregation
    Link Aggregation Tlv : Not Advertised
    -Maximum Frame Size Tlv : Not Advertised
    Extended 802.1 TLV Info
    -Port VLAN Id : 0
    -Port & Protocol VLAN Id
    Protocol Vlan Tlv : Not Advertised
    -Vlan Name
    Vlan Id Vlan Name
    ------- ---------
    ------------------------------------------------------------
    Chassis Id SubType : Mac Address
    Chassis Id : 00:01:02:03:04:01
    Port Id SubType : Interface Alias
    Port Id : Slot0/2
    Port Description : Not Advertised
    System Name : Not Advertised
    System Desc : Not Advertised
    Local Intf : Gi0/3
    Time Remaining : 92 Seconds
    System Capabilities Tlv : Not Advertised
    Management Addresses : Not Advertised
    Extended 802.3 TLV Info
    -MAC PHY Configuration & Status
    Auto Negotiation Tlv : Not Advertised
    -Link Aggregation
    Link Aggregation Tlv : Not Advertised
    -Maximum Frame Size Tlv : Not Advertised
    Extended 802.1 TLV Info
    -Port VLAN Id : 0
    -Port & Protocol VLAN Id
    Protocol Vlan Tlv : Not Advertised
    -Vlan Name
    Vlan Id Vlan Name
    ------- ---------
    ------------------------------------------------------------
    Total Entries Displayed : 2
    
    Your Product# show lldp neighbors gigabitethernet 0/1 detail
    Capability Codes :
    (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device,
    (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
    Chassis Id SubType : Mac Address
    Chassis Id : 00:01:02:03:04:01
    Port Id SubType : Interface Alias
    Port Id : Slot0/1
    Port Description : Ethernet Interface
    System Name : Capgemini Linux Router Ver 1.0
    System Desc : SNMPV2
    Local Intf : Gi0/1
    Time Remaining : 95 Seconds
    System Capabilities Supported : B,R
    System Capabilities Enabled : B,R
    Management Addresses :
    IfId SubType Address OID
    ---- ------- ------- ---
    33 IPv4 12.0.0.1 1 3 6 1 2 1 2 2 1 1
    Extended 802.3 TLV Info
    -MAC PHY Configuration & Status
    Auto-Neg Support & Status : Supported, Disabled
    Advertised Capability Bits : 8000
    Other
    -Link Aggregation
    Capability & Status : Not Capable, Not In Aggregation
    Aggregated Port Id : 1
    -Maximum Frame Size : 1500
    Extended 802.1 TLV Info
    -Port VLAN Id : 1
    -Port & Protocol VLAN Id
    Protocol Vlan Id Support Status
    ---------------- ------- ------
    1 Supported Enabled
    2 Supported Enabled
    30 Supported Enabled
    -Vlan Name
    Vlan Id Vlan Name
    ------- ---------
    1 vlan1
    2 vlan2
    30 vlan30
    ------------------------------------------------------------
    Total Entries Displayed : 1
    

    show lldp traffic

    Command Objective:
    This command displays LLDP counters on all interfaces or on a specific interface. This includes the following:

    • Total Frames Out
    • Total Entries Aged
    • Total Frames In
    • Total Frames Received In Error
    • Total Frames Discarded
    • Total TLVS Unrecognized
    • Total TLVs Discarded

    Syntax:
    show lldp traffic [< iftype > < ifnum >[mac-address < mac_addr >]]

    Parameter Description:

    • < iftype > – Displays the LLDP counters for specified type of interface. The interface can be:
      • fastethernet – Officially referred to as 100BASE-T standard. This is a version of LAN standard architecture that supports data transfer up to 100 Megabits per second.
      • gigabitethernet – A version of LAN standard architecture that supports data transfer up to 1 Gigabit per second.
      • extreme-ethernet – A version of Ethernet that supports data transfer up to 10 Gigabits per second. This Ethernet supports only full duplex links.
      • internal-lan – Internal LAN created on a bridge per IEEE 802.1ap.
    • < ifnum > – Displays the LLDP counters for specified interface identifier. This is a unique value that represents the specific interface. This value is a combination of slot number and port number separated by a slash, for interface types other than i-lan. For Example: 0/1 represents that the slot number is 0 and port number is 1. Only i-lan or port-channel ID is provided, for interface types i-lan and port-channel. For Example: 1 represents i-lan and port-channel ID.
    • mac-address < mac_addr > - Displays information about neighbors for the specified destination MAC address of the LLDP agent.

    Mode:
    Privileged EXEC Mode


    Note: This command executes only if LLDP is started.

    Example:

    Your Product# show lldp traffic
    Total Frames Out : 62
    Total Entries Aged : 0
    Total Frames In : 0
    Total Frames Received In Error : 0
    Total Frames Discarded : 0
    Total TLVS Unrecognized : 0
    Total TLVs Discarded : 0
    Total PDU length error Drops : 0
    Total LLDP-MED Frames Out : 0
    Total LLDP-MED Frams In : 0
    Total LLDP-MED Frames Discarded : 0
    Total LLDP-MED TLVs Discarded : 0
    Total Media Capability TLVs Discarded : 0
    Total Network Policy TLVs Discarded : 0
    Total Inventory TLVs Discarded : 0
    
    Your Product# show lldp traffic gigabitethernet 0/1
    Total Frames Out : 64
    Total Entries Aged : 0
    Total Frames In : 0
    Total Frames Received In Error : 0
    Total Frames Discarded : 0
    Total TLVS Unrecognized : 0
    Total TLVs Discarded : 0
    Total PDU length error Drops : 0
    Total LLDP-MED Frames Out : 0
    Total LLDP-MED Frams In : 0
    Total LLDP-MED Frames Discarded : 0
    Total LLDP-MED TLVs Discarded : 0
    Total Media Capability TLVs Discarded : 0
    Total Network Policy TLVs Discarded : 0
    Total Inventory TLVs Discarded : 0
    

    show lldp local

    Command Objective:
    This command displays the current switch information that will be used to populate outbound LLDP advertisements for a specific interface or all interfaces.

    Syntax:
    show lldp local {[< interface-type > < interface-id > [mac-address < mac_addr >]] | [mgmt-addr]}

    Parameter Description:

    • < interface-type > – Displays the current switch information for the specified type of interface. The interface can be:
      • fastethernet – Officially referred to as 100BASE-T standard. This is a version of LAN standard architecture that supports data transfer up to 100 Megabits per second.
      • gigabitethernet – A version of LAN standard architecture that supports data transfer up to 1 Gigabit per second.
      • extreme-ethernet – A version of Ethernet that supports data transfer up to 10 Gigabits per second. This Ethernet supports only full duplex links.
      • i-lan / internal-lan – Internal LAN created on a bridge per IEEE 802.1ap.
      • port-channel – Logical interface that represents an aggregator which contains several ports aggregated together.
    • < interface-id > - Displays the current switch information for the specified interface identifier. This is a unique value that represents the specific interface. This value is a combination of slot number and port number separated by a slash, for interface type other than i-lan and port-channel. For Example: 0/1 represents that the slot number is 0 and port number is 1. Only i-lan or port-channel ID is provided, for interface types i-lan and port-channel. For Example: 1 represents i-lan and port-channel ID.
    • mac-address <mac_addr> - Displays information about neighbors for the specified destination MAC address of the LLDP agent.
    • mgmt-addr - All the management addresses configured in the system and Tx-enabled ports.

    Mode:
    Privileged EXEC Mode


    Note: This command executes only if LLDP is started.

    Example:

    Your Product# show lldp local
    Capability Codes :
    (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device,
    (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
    Chassis Id SubType : Interface Alias
    Chassis Id : vlan1
    System Name : Capgemini Linux Router Ver 1.0
    System Description : SNMPV2
    System Capabilities Supported : B,R
    System Capabilities Enabled : B,R
    -LLDP-MED Info
    Device Class : Network Connectivity
    LLDP-MED Inventory Info
    Hardware Revision : 5.9.1
    Firmware Revision : 6.7.2
    Software Revision : 6.2.0
    Serial Number :
    Manufacturer Name : Capgemini
    Model Name :
    Asset Id : DummyId
    Gi0/1 :
    Port Id SubType : Local
    Port Id : slot0/1
    Port Description : Ethernet Interface Port 01
    Enabled Tx Tlvs :
    Extended 802.3 TLV Info
    -MAC PHY Configuration & Status
    Auto-Neg Support & Status : ,
    Advertised Capability Bits : 763d
    10base-T(HD)
    10base-T(FD)
    100base-T4
    100base-TX(FD)
    100base-T2(HD)
    Symm PAUSE(FD)
    Asym and Symm PAUSE(FD)
    1000base-X, -LX, -SX, -CX(HD)
    1000base-X, -LX, -SX, -CX(FD)
    1000base-T(FD)
    Operational MAU Type : 0
    -Link Aggregation
    Capability & Status : Not Capable, Not In Aggregation
    Aggregated Port Id : 0
    -Maximum Frame Size : 1500
    Extended 802.1 TLV Info
    -Port VLAN Id : 1
    -Port & Protocol VLAN Id
    Protocol VLAN Id Support Protocol VLAN Status TxStatus
    ---------------- ------- -------------------- --------
    0 Supported Enabled Disabled
    -Vlan Name
    Vlan Id Vlan Name TxStatus
    ------- --------- --------
    1 Disabled
    -VID TLV:
    VID TxStatus
    ------- ---------
    0 Disabled
    -Management Vid TLV:
    Vlan Id TxStatus
    ------- ---------
    1 Disabled
    -LLDP-MED Capability TLV
    LLDP-MED Tx Supported : MedCapability, NetworkPolicy, Inventory
    LLDP-MED Tx Enabled :
    -LLDP-MED Network Policy TLV
    Application Type : Not Defined
    Unknown Policy Flag : 0
    VlanType : 0
    VlanID : 0
    Priority : 0
    Dscp : 0
    ------------------------------------------------------------
    
    Your Product# show lldp local gigabitethernet 0/1
    Port Id SubType : Local
    Port Id : slot0/1
    Port Description : Ethernet Interface Port 01
    Enabled Tx Tlvs :
    Extended 802.3 TLV Info
    -MAC PHY Configuration & Status
    Auto-Neg Support & Status : ,
    Advertised Capability Bits : 0900
    100base-TX(HD)
    100base-T2(FD)
    Operational MAU Type : 0
    -Link Aggregation
    Capability & Status : Not Capable, Not In Aggregation
    Aggregated Port Id : 0
    -Maximum Frame Size : 1500
    Extended 802.1 TLV Info
    -Port VLAN Id : 1
    -Port & Protocol VLAN Id
    Protocol VLAN Id Support Protocol VLAN Status TxStatus
    ---------------- ------- -------------------- --------
    0 Supported Enabled Disabled
    -Vlan Name
    Vlan Id Vlan Name TxStatus
    ------- --------- --------
    1 Disabled
    -VID TLV:
    VID TxStatus
    ------- ---------
    0 Disabled
    -Management Vid TLV:
    Vlan Id TxStatus
    ------- ---------
    1 Disabled
    -LLDP-MED Capability TLV
    LLDP-MED Tx Supported : MedCapability, NetworkPolicy, Inventory
    LLDP-MED Tx Enabled :
    -LLDP-MED Network Policy TLV
    Application Type : Not Defined
    Unknown Policy Flag : 0
    VlanType : 0
    VlanID : 0
    Priority : 0
    Dscp : 0
    ------------------------------------------------------------
    
    Your Product# show lldp local mgmt-addr
    Management Address TxEnabledPorts
    ------------------ --------------
    13.0.0.1 Gi0/1
    15.0.0.1 Gi0/1
    

    show lldp errors

    Command Objective:
    This command displays the information about the errors such as memory allocation failures, queue overflows and table overflow.

    Syntax:
    show lldp errors

    Mode:
    Privileged EXEC Mode


    Note: This command executes only if LLDP is started.

    Example:

    Your Product# show lldp errors
    Total Memory Allocation Failures : 0
    Total Input Queue Overflows : 0
    Total Table Overflows : 0
    

    show lldp statistics

    Command Objective:
    This command displays the LLDP remote table statistics information.

    Syntax:
    show lldp statistics

    Mode:
    Privileged EXEC Mode


    Note: This command executes only if LLDP is started.

    Example:

    Your Product# show lldp statistics
    Remote Table Last Change Time : 100300
    Remote Table Inserts : 5
    Remote Table Deletes : 0
    Remote Table Drops : 0
    Remote Table Ageouts : 0
    Remote Table Updates : 4
    

    show lldp peer

    Command Objective:
    This command displays information about the peers on an interface or all interfaces.

    Syntax:
    show lldp peers [chassis-id < string(255) > port-id < string(255) >] < interface-type > < interface-id >[[mac-address < mac_addr >] [detail]]

    Parameter Description:

    • chassis-id <string(255)> - Displays the LLDP peer information for the specified chassis identifier. This value is a string of maximum size 255.
    • port-id <string(255)> - Displays the port number that represents the concerned aggregation port This value is a string of maximum size 255.
    • < interface-type > – Displays the current switch information for the specified type of interface. The interface can be:
      • fastethernet – Officially referred to as 100BASE-T standard. This is a version of LAN standard architecture that supports data transfer up to 100 Megabits per second.
      • gigabitethernet – A version of LAN standard architecture that supports data transfer up to 1 Gigabit per second.
      • extreme-ethernet – A version of Ethernet that supports data transfer up to 10 Gigabits per second. This Ethernet supports only full duplex links.
      • i-lan / internal-lan – Internal LAN created on a bridge per IEEE 802.1ap.
    • < interface-id > - Displays information about peers for the specified interface identifier. This is a unique value that represents the specific interface. This value is a combination of slot number and port number separated by a slash, for interface type other than i-lan. For Example: 0/1 represents that the slot number is 0 and the port number is 1. Only i-lan ID is provided, for interface types i-lan. For Example: 1 represents i-lan ID.
    • mac-address <mac_addr> - Displays information about peers for the specified destination MAC address of the LLDP agent.
    • detail - Displays the information obtained from all the received TLVs.

    Mode:
    Privileged EXEC Mode


    Note: This command executes only if LLDP is started.

    Example:

    Your Product # show lldp peers gigabitethernet 0/1
    Capability Codes :
    (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device,
    (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
    Chassis ID Local Intf Hold-time Capability Port Id
    ---------- ---------- --------- ---------- -------
    00:01:02:03:04:01 Gi0/1 120 B,R Slot0/1
    

    Debug and Clear Commands

    This section includes LLDP debug and clear commands.

    debug lldp

    Command Objective:
    This command specifies debug level for neighbor device.

    The no form of the command disables debug option for neighbor device.

    Syntax:
    debug lldp { init-shut | mgmt | data-path | ctrl | pkt-dump | resource | all-fail | buf | critical | redundancy | tlv { mandatory-tlv | port-descr | sys-name | sys-descr | sys-capab | mgmt-addr | port-vlan | ppvlan | vlan-name | proto-id | mac-phy | pwr-mdi | lagg | max-frame | vid-digest | mgmt-vid | med-capability | network-policy | inventory-management | location-id | ex-power-mdi | all} | all}

    no debug lldp { all | init-shut | mgmt | data-path | ctrl | pkt-dump | resource | all-fail | buf | critical | redundancy | tlv { all | mandatory-tlv | port-descr | sys-name | sys-descr | sys-capab | mgmt-addr | port-vlan | ppvlan | vlan-name | proto-id | mac-phy | pwr-mdi | lagg | max-frame | vid-digest | mgmt-vid | med-capability | network-policy | inventory-management | location-id | ex-power-mdi}}

    Parameter Description:

    • init-shut - Generates debug statements for init and shutdown traces. This trace is generated on failed initialization and shutting down of LLDP-related entries.
    • mgmt - Generates debug statements for management traces. This trace is generated during failure in configuration of any of the LLDP features.
    • data-path - Generates debug statements for data path traces. This trace is generated during failure in packet processing.
    • ctrl - Generates debug statements for control path traces. This trace is generated during failure in modification or retrieving of LLDP entries.
    • pkt-dump - Generates debug statements for packet dump traces. This trace is currently not used in neighbor device.
    • resource - Generates debug statements for OS resource related traces. This trace is generated during failure in message queues.
    • all-fail - Generates debug statements for all failure traces of the above-mentioned traces.
    • buf - Generates debug statements for LLDP buffer related traces. This trace is currently not used in a neighbor device.
    • critical - Generates debug statements for critical SEM.
    • redundancy - Generates the debug statements for the LLDP redundancy neighbor device.
    • tlv – Generates debug statements for the following traces:
      • all – Generates debug statements for all TLV traces.
      • mandatory-tlv – Generates debug statements for the mandatory TLV traces
      • port-descr – Generates debug statements for the port description TLV traces
      • sys-name – Generates debug statements for the system name TLV traces
      • sys-descr – Generates debug statements for system description TLV traces
      • sys-capab – Generates debug statements for system capabilities TLV traces
      • mgmt-addr – Generates debug statements for management address TLV traces
      • port-vlan – Generates debug statements for port-vlan TLV traces
      • ppvlan – Generates debug statements for port-protocol-vlan TLV traces
      • vlan-name – Generates debug statements for vlan-name TLV traces
      • proto-id – Generates debug statements for protocol-id TLV traces
      • mac-phy – Generates debug statements for MAC or PHY TLV traces
      • pwr-mdi – Generates debug statements for power-through-MDI TLV traces
      • lagg – Generates debug statements for link aggregation TLV traces
      • max-frame – Generates debug statements for maximum frame size TLV traces
      • vid digest – Generates debug statements for vid digest TLV traces
      • mgmt-vid – Generates debug statements for management VID TLV traces
      • med-capability – Generates debug statements for med-capability TLV traces
      • network-policy – Generates debug statements for network-policy TLV traces. This parameter is only supported in LLDPv2
      • inventory-management – Generates debug statements for inventory-management TLV traces. This parameter is only supported in LLDPv2
      • location-id – Generates debug statements for location-identification TLV traces
      • ex-power-mdi – Generates debug statements for extended-power-MDI TLV traces
    • all - Generates debug statements for all traces

    Mode:
    Privileged EXEC Mode


    Note: This command executes only if LLDP is started.

    Example:

    Your Product# debug lldp init-shut
    
    Your Product# debug lldp tlv sys-descr
    
    Your Product# debug lldp
    

    clear lldp counters

    Command Objective:
    This command clears the inbuilt counter which has the total count of LLDP frames that are transmitted and received.


    Note: This command does not clear the global statistics.

    Syntax:
    clear lldp counters

    Mode:
    Global Configuration Mode


    Note: This command executes only if LLDP is started.

    Example:

    Your Product(config)# clear lldp counters
    

    clear lldp table

    Command Objective:
    This command clears all the LLDP information about the neighbors.

    Syntax:
    clear lldp table

    Mode:
    Global Configuration Mode


    Note: This command executes only if LLDP is started.

    Example:

    Your Product(config)# clear lldp table
    

    © 2024 Accedian Networks Inc. All rights reserved. Accedian®, Accedian Networks®,  the Accedian logo™, Skylight™, Skylight Interceptor™ and per-packet intel™, are trademarks or registered trademarks of Accedian Networks Inc. To view a list of Accedian trademarks visit: http://accedian.com/legal/trademarks/. 


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.