Performing basic lldp configuration, Enabling lldp, Setting the lldp operating mode – H3C Technologies H3C S5120 Series Switches User Manual
Page 131

1-7
LLDP-related configurations made in Layer 2 Ethernet port view take effect only on the current port, and
those made in port group view take effect on all ports in the current port group.
Performing Basic LLDP Configuration
Enabling LLDP
To make LLDP take effect on certain ports, you must enable LLDP both globally and on these ports.
Follow these steps to enable LLDP:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable LLDP globally
lldp enable
Required
Disabled globally by default
Enter Layer 2
Ethernet port
view
interface interface-type
interface-number
Enter
Ethernet port
view or port
group view
Enter port
group view
port-group manual
port-group-name
Required
Use either command
Enable LLDP on a port
lldp enable
Optional
Enabled on a port by default
Setting the LLDP Operating Mode
LLDP can operate in one of the following modes.
z
TxRx mode. A port in this mode sends and receives LLDPDUs.
z
Tx mode. A port in this mode only sends LLDPDUs.
z
Rx mode. A port in this mode only receives LLDPDUs.
z
Disable mode. A port in this mode does not send or receive LLDPDUs.
Follow these steps to set the LLDP operating mode:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Layer 2
Ethernet port
view
interface interface-type
interface-number
Enter
Ethernet port
view or port
group view
Enter port
group view
port-group manual
port-group-name
Required
Use either command
Set the LLDP operating mode
lldp admin-status { disable |
rx | tx | txrx }
Optional
TxRx by default