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...
Enter system view
Enable LLDP globally
Enter Ethernet
interface view
or port group
view
Enable LLDP
Setting the LLDP operating mode
LLDP can operate in one of the following modes.
TxRx mode. A port in this mode sends and receives LLDPDUs.
Tx mode. A port in this mode only sends LLDPDUs.
Rx mode. A port in this mode only receives LLDPDUs.
Disable mode. A port in this mode does not send or receive LLDPDUs.
Follow these steps to set the LLDP operating mode:
To do...
Enter system view
Enter Ethernet
interface view
or port group
view
Set the LLDP operating mode
Use the command...
system-view
lldp enable
Enter Layer 2 Ethernet
interface interface-type
interface view
interface-number
port-group manual port-group-
Enter port group view
name
lldp enable
Enter Layer 2 Ethernet
interface view
Enter port group view
Use the command...
system-view
interface interface-type interface-
number
port-group manual port-group-name
lldp admin-status { disable | rx | tx
| txrx }
174
Remarks
—
Required
By default, LLDP is globally
enabled.
Required
Use either command.
Optional
By default, LLDP is enabled on a
port.
Remarks
—
Required
Use either command.
Optional
TxRx by default