< Home

lldp clear neighbor

Function

The lldp clear neighbor command clears LLDP neighbors in the system or on an interface of the device.

Format

lldp clear neighbor [ interface interface-type interface-number ]

Parameters

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:
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If no interface is specified, this command clears LLDP neighbors on all interfaces.

-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Clear LLDP neighbors of all interfaces.

<HUAWEI> lldp clear neighbor
Warning: This command will clear the neighbor information of all the ports. Continue? [Y/N]:y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >