Step
4.
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.
To set the LLDP operating mode:
Step
1.
Enter system view.
2.
Enter Layer 2 Ethernet
interface view.
3.
Set the LLDP operating
mode.
Setting the LLDP re-initialization delay
When LLDP operating mode changes on a port, the port initializes the protocol state machines after a
certain delay. By adjusting the LLDP re-initialization delay, you can avoid frequent initializations caused
by frequent changes to the LLDP operating mode on a port.
To set the LLDP re-initialization delay for ports:
Step
1.
Enter system view.
2.
Set the LLDP re-initialization
delay.
Enabling LLDP polling
With LLDP polling enabled, a device periodically searches for local configuration changes. On detecting
a configuration change, the device sends LLDPDUs to inform neighboring devices of the change.
To enable LLDP polling:
Step
1.
Enter system view.
Command
lldp enable
Command
system-view
interface interface-type interface-number
lldp admin-status { disable | rx | tx | txrx }
Command
system-view
lldp timer reinit-delay delay
Command
system-view
200
Remarks
Optional.
By default, LLDP is enabled on
a port.
Remarks
N/A
N/A
Optional.
TxRx by default.
Remarks
N/A
Optional.
2 seconds by default.
Remarks
N/A