Configure LLDP Parameters
Configuration Condition
None
Configure Neighbor Life Time
Specify the life time of the local device information on the neighbor device by configuring the neighbor TTL so that the neighbor device can delete the local device information after the TTL of the local device arrives.
Table 7-13 Configure the neighbor life time
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Configure the life time of the local device on the neighbor device
|
lldp holdtime holdtime- value
|
Optional
By default, the life time of the local device on the neighbor device is 120s.
|
Configure the Delay of Sending Packets
Configuring the delay of sending packets can prevent the frequent change of the local information from causing lots of LLDPDU to be sent.
Table 7-14 Configure the delay of sending packets
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Configure the delay of sending the LLDP packets
|
lldp transmit-delay transmit-delay-value
|
Optional
By default, the delay of sending the LLDP packets is 2s.
|
Configure Packet Sending Period
The local device regularly sends the LLDP packet to the neighbor device by configuring the period of sending the packets so that the information of the local device on the neighbor device is not aged.
Table 7-15 Configure the period of sending packets
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Configure the period of sending the LLDP packets
|
lldp transmit-interval transmit-interval-value
|
Optional
By default, the period of sending the LLDP packets is 30s.
|
Configure Fast Sent Packet Quantity
When some LLDP configuration of the local device (for example, select the released TLV type) changes, or when the polling mechanism finds that the LLDP concerned configuration information in the local device changes after enabling the polling function, to make other devices discover the change of the local device as soon as possible, enable the fast sending mechanism, that is, continuously send the LLDPDUs of the specified quantity (it is 3 by default) at once, and then restore the normal sending period.
Table 7-16 Configure the fast sent packet quantity
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Configure the number of the fast sent packets
|
lldp fast-count fast-count-value
|
Optional
By default, the number of the fast sent packets is 3.
|
Configure Re-initializing Delay
When the port work mode changes, re-initialize the port protocol status machine. To prevent the frequent change of the port work mode from re-initializing the port protocol status machine continuously, we can configure the re-initializing delay of the port.
Table 7-17 Configure the re-initializing delay
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Configure the re-initializing delay
|
lldp reinit reinit-value
|
Optional
By default, the re-initializing delay is 2s.
|
Configure LLDP Configuration Check Period
To inform the neighbor device in time after the LLDP configuration changes, we can configure the period of checking the LLDP configuration.
Table 7-18 Configure the period of checking the LLDP configuration
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 polling function and configure the polling period
|
lldp check-change-interval check-change-interval-value
|
Optional
By default, the polling function is disabled.
|