Task
Performing basic LLDP
configuration
Configuring CDP compatibility
Configuring LLDP trapping
NOTE:
LLDP-related configurations made in Ethernet interface view takes effect only on the current port, and those
made in port group view takes effect on all ports in the current port group.
Performing basic LLDP configuration
Enabling LLDP
To make LLDP take effect on specific ports, you must enable LLDP both globally and on these ports.
To enable LLDP on the router:
Step
1.
Enter system view.
2.
Enable LLDP globally.
3.
Enter Ethernet interface view
or port group view.
4.
Enable LLDP.
Setting LLDP operating mode
LLDP can operate in one of the following modes:
TxRx mode—A port in this mode sends and receives LLDPDUs.
•
Enabling LLDP
Setting LLDP operating mode
Setting the LLDP re-initialization delay
Enable LLDP polling
Configuring the advertisable TLVs
Configuring the management address and its encoding format
Setting other LLDP parameters
Configuring the encapsulation format for LLDPDUs
Command
system-view
lldp enable
•
Enter Layer 2 or Layer 3
Ethernet interface view:
interface interface-type
interface-number
•
Enter port group view:
port-group manual
port-group-name
lldp enable
138
Remarks
Required
Optional
Optional
Optional
Optional
Optional
Optional
Optional
Optional
Optional
Remarks
N/A
By default, LLDP is enabled on ports,
but disabled globally.
Use either command.
Optional.
By default, LLDP is enabled on a port.