The lldp clear neighbor command clears LLDP neighbors in the system or on an interface of the device.
Parameter |
Description |
Value |
---|---|---|
interface interface-type interface-number |
Indicates the type and number of the interface whose LLDP
neighbors to be cleared. In the command:
If no interface is specified, this command clears LLDP neighbors on all interfaces. |
- |
Usage Scenario
If you want to obtain the latest LLDP neighbor information of interfaces, use the lldp clear neighbor command to clear existing LLDP neighbors. When an interface receives new LLDP packets, new LLDP neighbors are generated.
Prerequisites
LLDP has been enabled globally using the lldp enable (system view) command.