Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

LLDP is a standard link-layer discovery protocol which can broadcast its capability, IP address, ID, and interface name as TLVs (Type/Length/Value) in LLDP PDUs (Link Layer Discovery Protocol Data Units). 

An LLDP PDU includes 4 basic TLVs and several optional TLVs.

Basic TLVs include the Chassis ID, Port ID, TTL and End TLVs.

In L2/L3, you can select the following optional TLVs:

TLV Name

Description

mac-phy-cfg

MAC address of the system

management-address

Management IP address of the system

port-description

The port description of system

port-vlan

The VLAN ID of the port

system-capabilities

System capability (e.g. switching, routing)

system-description

System description

system-name

System name

Configuring the LLDP Mode

LLDP supports 4 modes: TxRx, Tx_only, Rx_only, and Disabled. In TxRx mode, the system transmits and receives LLDPDUs. In Tx_only, the system only transmits LLDPDUs. In Rx_only, the system only receives LLDPDUs. In Disabled, the system will not transmit or receive any LLDPDUs.
You can configure the system as shown below:

admin@XorPlus# set protocols lldp enable true
admin@XorPlus# set protocols lldp interface te-1/1/1 working-mode tx_rx 
admin@XorPlus# commit 
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# 

Selecting Optional TLVs

admin@XorPlus# set protocols lldp tlv-select mac-phy-cfg true
admin@XorPlus# set protocols lldp tlv-select management-address true
admin@XorPlus# set protocols lldp tlv-select port-description true 
admin@XorPlus# set protocols lldp tlv-select system-capabilities true
admin@XorPlus# commit 
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# 

Displaying LLDP Information

admin@XorPlus# show protocols lldp
Waiting for building configuration.
enable: true
tlv-select {
} 

Configuring Other Parameters

You can configure other parameters, such as advertisement-interval, hold-time-multiplier, reinit-delay, and transmit-delay, in a similar manner.

  • No labels