The cdp clear neighbor command clears CDP 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 CDP
neighbors are to be cleared. In the command:
If no interface is specified, this command clears CDP neighbors on all interfaces. |
- |
Usage Scenario
If you want to obtain the latest CDP neighbor information of interfaces, use the cdp clear neighbor command to clear existing CDP neighbors. When an interface receives new CDP packets, new CDP neighbors are generated.
Prerequisites
The LLDP function has been enabled globally and on interfaces, and the lldp compliance cdp receive command has been run to enable CDP-compatible LLDP on interfaces.