clear ip ospf neighbors

Syntax

clear ip ospf [] neighbor [] [interface []] [all-vrfs | vrf]

Description

Resets the neighbor and clears the OSPF neighbor information.

Command context

Operator (>) or Manager (#)

Parameters

Specifies the OSPFv2 process ID to clear the statistics for the particular OSPFv2 process. Range: 1 to 63.

Specifies the router ID of a neighbor.

Specifies the OSPFv2 statistics to clear for the specified interface.

all-vrfs

选择clear the OSPFv2 statistics for all VRFs.

vrf

Specifies the name of a VRF.

Authority

Operators or Administrators or local user group members with execution rights for this command. Operators can execute this command from the operator context (>) only.

Example

Clearing the OSPFv2 neighbor information:

switch#clear ipv6 ospfv3 1 neighborswitch#clear ip ospf 1 neighbor 3.3.3.3switch#明确知识产权1/1/1 ospf邻居1接口switch#clear ip ospf neighbor 5.5.5.5 vrf red