Verifying the configuration – H3C Technologies H3C S12500 Series Switches User Manual
Page 243

230
<SwitchA> system-view
[SwitchA] lldp enable
# Enable LLDP on GigabitEthernet 4/0/1. By default, LLDP is enabled on ports.
[SwitchA] interface gigabitethernet 4/0/1
[SwitchA-GigabitEthernet4/0/1] lldp enable
# Set the LLDP operating mode to Rx on GigabitEthernet 4/0/1.
[SwitchA-GigabitEthernet4/0/1] lldp admin-status rx
[SwitchA-GigabitEthernet4/0/1] quit
# Enable LLDP on GigabitEthernet 4/0/2. By default, LLDP is enabled on ports.
[SwitchA] interface gigabitethernet 4/0/2
[SwitchA-GigabitEthernet4/0/2] lldp enable
# Set the LLDP operating mode to Rx on GigabitEthernet 4/0/2.
[SwitchA-GigabitEthernet4/0/2] lldp admin-status rx
[SwitchA-GigabitEthernet4/0/2] quit
2.
Configure Switch B:
# Enable LLDP globally.
<SwitchB> system-view
[SwitchB] lldp enable
# Enable LLDP on GigabitEthernet 4/0/1. By default, LLDP is enabled on ports.
[SwitchB] interface gigabitethernet 4/0/1
[SwitchB-GigabitEthernet4/0/1] lldp enable
# Set the LLDP operating mode to Tx on GigabitEthernet 4/0/1.
[SwitchB-GigabitEthernet4/0/1] lldp admin-status tx
[SwitchB-GigabitEthernet4/0/1] quit
Verifying the configuration
# Verify the following items:
•
GigabitEthernet 4/0/1 of Switch A connects a MED device.
•
GigabitEthernet 4/0/2 of Switch A connects a non-MED device.
•
Both ports operate in Rx mode, in other words, they only receive 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 [GigabitEthernet4/0/1]:
Port status of LLDP : Enable
Admin status : Rx_Only
Trap flag : No