Configuring LLDP neighbor aging
LLDP neighbor aging occurs when an interface fails to receive an LLDP frame from the neighbor within the neighbor aging time. The LLDP neighbor aging time is determined by the Time to Live TLV carried in the LLDP frame sent by the neighbor.
LLDP takes either of the following actions when neighbor aging occurs on an interface:
block—Blocks the interface. The block action places the data link layer protocol of the interface in DOWN state. In this state, the interface cannot transfer data packets. The data transfer capability is automatically recovered when the interface receives an LLDP frame.
shutdown—Shuts down the interface. The shutdown action places the interface in LLDP DOWN state. In this state, the interface can neither transfer data packets nor LLDP packets. You must manually execute the undo lldp neighbor-protection aging or undo shutdown command to bring up the interface.
To configure LLDP neighbor aging on an interface:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter Layer 2 or Layer 3 Ethernet interface view. | interface interface-type interface-number | N/A |
3. Enable LLDP neighbor aging on the interface. | lldp neighbor-protection aging { block | shutdown } | By default, LLDP neighbor aging is disabled on an interface. |