Configure LLDP Basic Functions
Enable the global LLDP function and port LLDP function at the same time so that LLDP can work normally. The local device gets the neighbor device information by interacting LLDPDU with other device.
Configuration Condition
None
Enable Global LLDP Function
Table 7-6 Enable the global LLDP function
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enable the global LLDP function
|
lldp run
|
Mandatory
By default, do not enable the global LLDP function.
|
Enable Port LLDP Function
Table 7-7 Enable the port LLDP function
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the L2 Ethernet interface configuration mode
|
interface interface-name
|
Either
After entering the L2 Ethernet interface configuration mode, the subsequent configuration takes effect only on the current port. After entering the aggregation group configuration mode, the subsequent configuration takes effect only on the aggregation group.
|
Enter the aggregation group configuration mode
|
interface link-aggregation link-aggregation-id
|
Enable the port LLDP function
|
lldp enable
|
Mandatory
By default, do not enable the port LLDP function.
|
Enable the Member Port of Aggregation Group to Support LLDP
Table 7-8 Enable the member port of the aggregation group to support LLDP
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enable the member port of the aggregation group to support LLDP
|
lldp link-agg-member
|
Optional
By default, the member port of the aggregation group does not support the LLDP function.
|