When LLDP is enabled on a device, the device sends LLDP packets carrying its status information to its LLDP-capable neighbors and obtains their status information by receiving LLDP packets from them.
The system view is displayed.
LLDP is enabled globally.
The interface view is displayed.
The LLDP working mode is configured for the interface.
The VLAN mode is enabled on the interface.
A sub-interface is created.
The sub-interface is associated with a VLAN.
LLDP is enabled on the sub-interface.
To enable LLDP on some interfaces and disable LLDP on other interfaces on a device, enable LLDP globally on the device and run the undo lldp enable command on the interfaces that do not need LLDP.
For Eth-Trunk interfaces, LLDP can be configured only on Eth-Trunk member interfaces. Enabling or disabling LLDP on an Eth-Trunk member interface does not affect other member interfaces.
Interfaces that support LLDP must be physical interfaces. Logical interfaces such as VLANIF and Eth-Trunk interfaces do not support LLDP.
Interfaces do not support LLDP packets carrying the VLAN tag. If LLDP is used and the peer device is a non-Huawei router, configure the peer device not to carry the VLAN tag in sent LLDP packets.
The configuration is committed.