239
# Enable LLDP on Ethernet1/0/1. (You can skip this step because LLDP is enabled on ports by
default.) Set the LLDP operating mode to Tx.
[SwitchB] interface ethernet 1/0/1
[SwitchB-Ethernet1/0/1] lldp enable
[SwitchB-Ethernet1/0/1] lldp admin-status tx
[SwitchB-Ethernet1/0/1] quit
3.
Verify the configuration:
# Display the global LLDP status and port LLDP status on Switch A.
[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
Number of sent optional TLV : 0
Number of received unknown TLV : 3
As the sample output shows, Ethernet 1/0/1 of Switch A connects to an MED device, and Ethernet
1/0/2 of Switch A connects to a non-MED device. Both ports operate in Rx mode, and they only
receive LLDPDUs.
# Remove the link between Switch A and Switch B and then display the global LLDP status and port
LLDP status on Switch A.