189
<SwitchB> system-view
[SwitchB] lldp enable
# Enable LLDP on Ethernet1/0/1. By default, LLDP is enabled on ports.
[SwitchB] interface ethernet 1/0/1
[SwitchB-Ethernet1/0/1] lldp enable
# Set the LLDP operating mode to Tx.
[SwitchB-Ethernet1/0/1] lldp admin-status tx
[SwitchB-Ethernet1/0/1] quit
Verifying the configuration:
# Verify the following items:
•
Ethernet 1/0/1 of Switch A connects to an MED device.
•
Ethernet 1/0/2 of Switch A connects to a non-MED device.
•
Both ports operate in Rx mode, and they can receive LLDP frames but cannot send LLDP
frames.
[SwitchA] display lldp status
Global status of LLDP: Enable
The current number of LLDP neighbors: 2
The current number of CDP neighbors: 0
LLDP neighbor information last changed time: 0 days,0 hours,4 minutes,40 seconds
Transmit interval : 30s
Hold multiplier : 4
Reinit delay : 2s
Transmit delay : 2s
Trap interval : 5s
Fast start times : 3
Port 1 [Ethernet1/0/1]:
Port status of LLDP : Enable
Admin status : Rx_Only
Trap flag : No
Polling interval : 0s
Number of neighbors: 1
Number of MED neighbors : 1
Number of CDP neighbors : 0
Number of sent optional TLV : 0
Number of received unknown TLV : 0
Port 2 [Ethernet1/0/2]:
Port status of LLDP : Enable
Admin status : Rx_Only
Trap flag : No
Polling interval : 0s
Number of neighbors: 1
Number of MED neighbors : 0
Number of CDP neighbors : 0