Switch CLI Reference Guide

Link Layer Discovery Protocol Commands

set lldp
Command Objective

This command transmits or receives LLDP frames from the server to the LLDP module.

Syntax

set lldp {enable | disable}

Parameter Description
  • enable - Transmits/receives the LLDP packets between LLDP module and the server.

  • disable - Does not transmit/receive the LLDP packets between LLDP module and the server.

ModeGlobal Configuration Mode
lldp transmit-interval
Command Objective

This command sets the transmission interval in which the server sends the LLDP frames to the LLDP module.The value ranges between 5 and 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

ModeGlobal Configuration Mode
lldp holdtime-multiplier
Command Objective

This command sets the holdtime-multiplier value, which is the amount of time, the server should hold the LLDP. The value ranges between 2 and 10 seconds.

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

TLV (Time to Live) 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 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

ModeGlobal Configuration Mode
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. The value ranges between 1 and 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

ModeGlobal Configuration Mode
lldp tx-delay
Command Objective

This command sets the transmit delay which is the minimum amount of delay between successive LLDP frame transmissions. The value ranges between 1 and 8192 seconds.

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

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

Syntax

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

no lldp tx-delay

ModeGlobal Configuration Mode
show lldp
Command Objective

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

Syntax

show lldp

ModePrivileged EXEC Mode
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:

    • gigabitethernet - A version of LAN standard architecture that supports data transfer upto 1 Gigabit per second.

  • <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 Example: 0/1 represents that the slot number is 0 and port number is 1. Only port-channel ID is provided, for interface type port-channel. For Example: 1 represents port-channel ID.

  • mac-address <mac_addr> - Displays information about neighbors for the specidfied destination MAC address of the LLDP agent.

ModePrivileged EXEC Mode
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)> - Configures the chassis identifier string. This value is a string value with a maximum size of 255.

  • port-id <string(255)> - Configures the port number that represents the concerned aggregation port This value 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:

    • gigabitethernet - A version of LAN standard architecture that supports data transfer upto 1 Gigabit per second.

  • <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 Example: 0/1 represents that the slot number is 0 and port number is 1. Only port-channel ID is provided, for interface type port-channel. For Example: 1 represents port-channel ID.

  • detail - Displays the information obtained from all the received TLVs .

ModePrivileged EXEC Mode

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> [macaddress

<mac_addr>] ] | [mgmt-addr]}

Parameter Description
  • <interface-type> - Displays the current Switch information for the specified type of interface. The interface can be:

    • gigabitethernet - A version of LAN standard architecture that supports data transfer upto 1 Gigabit per second.

  • <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 Example: 0/1 represents that the slot number is 0 and port number is 1. Only port-channel ID is provided, for interface type port-channel. For Example: 1 represents port-channel ID.

  • mac-address <mac_addr> - Displays information about neighbors for the specidfied destination MAC address of the LLDP agent.

  • mgmt-addr - All the management addresses configured in the system and Tx enabled ports.

ModePrivileged EXEC Mode

Was This Article Helpful?

Help us to improve our support portal

Techdocs Article Helpful form

Techdocs Article NOT Helpful form

  • Still can't find what you're looking for? Try our knowledge base or ask our community for more help.