Step
1.
Enter system view.
2.
Enable LLDP globally.
3.
Enter Ethernet interface
view or port group view.
4.
Enable LLDP.
Setting the LLDP operating mode
LLDP can operate in one of the following modes:
TxRx mode—A port in this mode can send and receive LLDPDUs.
•
•
Tx mode—A port in this mode can only send LLDPDUs.
Rx mode—A port in this mode can only receive LLDPDUs.
•
Disable mode—A port in this mode cannot send or receive LLDPDUs.
•
To set the LLDP operating mode:
Step
1.
Enter system view.
2.
Enter Ethernet interface
view or port group 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.
Command
system-view
lldp enable
•
Enter Layer 2/Layer 3 Ethernet interface
view:
interface interface-type interface-number
•
Enter port group view:
port-group manual port-group-name
lldp enable
Command
system-view
•
Enter Layer 2/Layer 3 Ethernet interface
view:
interface interface-type interface-number
•
Enter port group view:
port-group manual port-group-name
lldp admin-status { disable | rx | tx | txrx }
Command
system-view
212
Remarks
N/A
LLDP is globally disabled.
Use either command.
Optional.
By default, LLDP is enabled
on a port.
Remarks
N/A
Use either command.
Optional.
The default LLDP operating
mode is TxRx.
Remarks
N/A