Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

clear (ospf | ospf3) neighbor

Syntax

clear (ospf | ospf3) neighbor<area area-id><instance instance-name><interface interface-name><logical-system (all | logical-system-name)><neighbor><realm (ipv4-multicast | ipv4-unicast | ipv6-multicast)>

Syntax (EX Series Switch and QFX Series)

clear (ospf | ospf3) neighbor<area area-id><instance instance-name><interface interface-name><neighbor>

Release Information

Command introduced before Junos OS Release 7.4.

Command introduced in Junos OS Release 9.0 for EX Series switches.

realm option introduced in Junos OS Release 9.2.

Command introduced in Junos OS Release 11.3 for the QFX Series.

Description

Tear down Open Shortest Path First (OSPF) neighbor connections.

Options

none

Tear down OSPF connections with all neighbors for all routing instances.

area area-id

(Optional) Tear down neighbor connections for the specified area only.

instance instance-name

(Optional) Tear down neighbor connections for the specified routing instance only.

interface interface-name

(Optional) Tear down neighbor connections for the specified interface only.

logical-system (all | logical-system-name)

(Optional) Perform this operation on all logical systems or on a particular logical system.

neighbor

(Optional) Clear the state of the specified neighbor only.

realm (ipv4-multicast | ipv4-unicast | ipv6-multicast)

(Optional) (OSPFv3 only) Clear the state of the specified OSPFv3 realm, or address family. Use the realm option to specify an address family for OSPFv3 other than IPv6 unicast, which is the default.

Required Privilege Level

clear

List of Sample Output

clear ospf neighbor

Output Fields

When you enter this command, you are provided feedback on the status of your request.

Sample Output

clear ospf neighbor

user@host> clear ospf neighbor

Published: 2013-04-03