Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

clear (ospf | ospf3) neighbor

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
clear (ospf | ospf3) neighbor
<all>
<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)

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

Description

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

Options

all

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

Output Fields

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

Sample Output

clear ospf neighbor all

content_copy zoom_out_map
user@host> clear ospf neighbor all

Release Information

Command introduced before Junos OS Release 7.4.

realm option introduced in Junos OS Release 9.2.

footer-navigation