LLDP
LLDP View
Table 1 LLDP View
Command | Purpose |
|---|---|
show lldp neighbor {summary|interface interface_name} | Display LLDP neighbors. |
showlldp local {summary|interface interface_name} | Display LLDP configuration. |
show lldp neighbor {summary|interface interface_name}
[Command] show lldp neighbor {summary|interface interface_name}
[Purpose] Display LLDP neighbors.
[Parameters]
Parameter | Description |
|---|---|
interface_name | Interface name (eg.0/1) |
[View] Privileged User View
[Use Cases]
sonic# show lldp neighbor summary
Capability codes: (R) Router, (B) Bridge, (O) Other
LocalPort RemoteDevice RemotePortID Capability RemotePortDescr
----------- -------------- -------------- ------------ -----------------
0/48 spine-228 C1 BR Ethernet0
0/60 sonic C6 BR Ethernet68
0/72 sonic-102 C7 BR 0/72
--------------------------------------------------
Total entries displayed: 3
sonic# show lldp neighbor interface 0/48
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface: 0/48 , via: LLDP, RID: 1, Time: 1 day, 08:51:31
Chassis:
ChassisID: mac 18:17:25:37:65:40
SysName: spine-228
SysDescr: Debian GNU/Linux 9 (stretch) Linux 4.9.0-14-2-amd64 #1 SMP Debian 4.9.246-2 (2020-12-17) x86_64
MgmtIP: 10.250.0.228
MgmtIface: 2
Capability: Bridge, on
Capability: Router, on
Capability: Wlan, off
Capability: Station, off
Port:
PortID: local C1
PortDescr: 0/0
TTL: 120
-------------------------------------------------------------------------------show lldp local {summary|interface interface_name}
[Command] show lldp local {summary|interface interface_name}
[Purpose] Display LLDP configuration.
[Parameters]
Parameter | Description |
|---|---|
interface_name | Interface name (eg.0/1) |
[View] Privileged User View
[Use Cases]
sonic# show lldp local summary
-------------------------------------------------------------------------------
Global configuration:
-------------------------------------------------------------------------------
Configuration:
Transmit delay: 30
Transmit delay in milliseconds: 30000
Transmit hold: 4
Maximum number of neighbors: 32
Receive mode: no
Pattern for management addresses: 10.250.0.171
Interface pattern: Ethernet*,eth0
Permanent interface pattern: (none)
Interface pattern for chassis ID: eth0
Override chassis ID with: (none)
Override description with: SONiC Software Version: SONiC.V3.1R0406P01T08 - HwSku: CX532P-N - Distribution: Debian 11.10 - Kernel: 5.10.0-8-2-amd64
Override platform with: Linux
Override system name with: sonic
Advertise version: yes
Update interface descriptions: no
Promiscuous mode on managed interfaces: no
Disable LLDP-MED inventory: yes
LLDP-MED fast start mechanism: yes
LLDP-MED fast start interval: 1
Source MAC for LLDP frames on bond slaves: local
Port ID TLV subtype for LLDP frames: unknown
Agent type: unknown
-------------------------------------------------------------------------------
sonic# show lldp local interface 0/4
-------------------------------------------------------------------------------
LLDP interfaces:
-------------------------------------------------------------------------------
Interface: Ethernet4, via: LLDP, Time: 0 day, 09:11:32
Chassis:
ChassisID: mac 74:fe:48:7b:23:1a
SysName: sonic
SysDescr: SONiC Software Version: SONiC.V3.1R0406P01T08 - HwSku: CX532P-N - Distribution: Debian 11.10 - Kernel: 5.10.0-8-2-amd64
MgmtIP: 10.250.0.171
MgmtIface: 2
Capability: Bridge, on
Capability: Router, on
Capability: Wlan, off
Capability: Station, off
Port:
PortID: local C2
PortDescr: Ethernet4
TTL: 120
-------------------------------------------------------------------------------LLDP Config
Table 2 LLDP Config
Command | Purpose |
|---|---|
lldp {enable|disable} | Enable or disable LLDP globally. |
lldp message-transmission interval interval-time | Set the LLDP message sending interval. |
lldp message-transmission hold hold-multiplier | Set the multiplier for LLDP messages hold time in neighboring devices. |
lldp port-id-subtype {local|mac-addreess|ifname} | Set the subtype in LLDP messages. |
lldp management-address-advertisements enable | Advertise the management IP address in LLDP messages. |
lldp capabilities-advertisements enable | Advertise the features supported and enabled by the device in the LLDP message |
lldp admin-status {tx|rx|txrx|disable} | Set the operating mode of LLDP for the interface as send-only/receive-only/send and receive/ not send and receive. |
lldp {enable|disable}
[Command] lldp {enable|disable}
[Purpose] Enable or disable LLDP globally.
[View] Global Configuration View
[Use Cases]
sonic(config)# lldp enablelldp message-transmission interval interval-time
[Command] lldp message-transmission interval interval-time
[Function]Set the LLDP message sending interval.
[Parameters]
Parameter | Description |
|---|---|
interval-time | Interval time, range 1-3600 |
[View] Global Configuration View
[Use Cases]
sonic# configure terminal
sonic(config)# lldp message-transmission interval 10lldp message-transmission hold hold-multiplier
[Command] lldp message-transmission hold hold-multiplier
[Function]Set the multiplier for LLDP messages hold time in neighboring devices.
[Parameters]
Parameter | Description |
|---|---|
hold-multiplier | Multiplier of hold time, range 1-100 |
[View] Global Configuration View
[Notes] Calculation formula for multiplier of LLDP message hold time: TTL = Min (65535, (interval × hold))
[Use Cases]
sonic# configure terminal
sonic(config)# lldp message-transmission hold 10lldp port-id-subtype {local|mac-addreess|ifname}
[Command] lldp port-id-subtype {local|mac-addreess|ifname}
[Function]Set the subtype in LLDP messages.
[View] Global Configuration View
[Use Cases]
sonic# configure terminal
sonic(config)# lldp port-id-subtype locallldp management-address-advertisements enable
[Command] lldp management-address-advertisements enable
[Function]Advertise the management IP address in LLDP messages.
[View] Global Configuration View
[Notes] The default configuration is to enable management IP address advertisement. Run commandno lldp management-address-advertisements enable command to disable the advertisement of management IP address in LLDP messages.
[Use Cases]
sonic# configure terminal
sonic(config)# lldp management-address-advertisements enablelldp capabilities-advertisements enable
[Command] lldp capabilities-advertisements enable
[Function]Advertise the features supported and enabled by the device in the LLDP message
[View] Global Configuration View
[Notes] The default configuration is to enable LLDP capabilities-advertisements Run command no lldp capabilities-advertisements enable to disable LLDP capabilities-advertisements.
[Use Cases]
sonic# configure terminal
sonic(config)# lldp capabilities-advertisements enablelldp admin-status {tx|rx|txrx|disable}
[Command] lldp admin-status {tx|rx|txrx|disable}
[Purpose] Set the operating mode of LLDP for the interface as send-only/receive-only/send and receive/not send and receive.
[View] Physical Interface Configuration View
[Notes] The default mode is txrx.
[Use Cases]
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# lldp admin-status rx