Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show (ospf | ospf3) neighbor

Syntax

Syntax (EX Series Switches and QFX Series)

Description

Display information about OSPF neighbors.

CPU utilization might increase while the device learns its OSPF neighbors. We recommend that you use the show (ospf | ospf3) neighbor command after the device learns and establishes OSPF neighbor adjacencies. Depending on the size of your network, this might take several minutes. If you receive a “timeout communicating with routing daemon” error when using the show (ospf | ospf3) neighbor command, wait several minutes before attempting to use the command again. This is not a critical system error, but you might experience a delay in using the CLI.

Options

none

Display standard information about all OSPF neighbors for all routing instances.

brief | detail | extensive

(Optional) Display the specified level of output.

area area-id

(Optional) Display information about the OSPF neighbors for the specified area.

instance (all |  instance-name)

(Optional) Display all OSPF interfaces for all routing instances or under the named routing instance.

interface interface-name

(Optional) Display information about OSPF neighbors for the specified logical interface.

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

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

neighbor

(Optional) Display information about the specified OSPF neighbor.

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

(OSPFv3 only) (Optional) Display information about the OSPF neighbors for 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

view

Output Fields

Table 1 lists the output fields for the show (ospf | ospf3) neighbor command. Output fields are listed in the approximate order in which they appear.

Table 1: show (ospf | ospf3) neighbor Output Fields

Field Name

Field Description

Level of Output

Address

Address of the neighbor.

All levels

Interface

Interface through which the neighbor is reachable.

All levels

State

State of the neighbor:

  • Attempt—Valid only for neighbors attached to nonbroadcast networks. It indicates that no recent information has been received from the neighbor, but that a more concerted effort must be made to contact the neighbor.

  • Down—Initial state of a neighbor conversation. It indicates that no recent information has been received from the neighbor. Hello packets might continue to be sent to neighbors in the Down state, although at a reduced frequency.

  • Exchange—Routing device is describing its entire link-state database by sending database description packets to the neighbor. Each packet has a sequence number and is explicitly acknowledged.

  • ExStart—First step in creating an adjacency between the two neighboring routing devices. The goal of this step is to determine which routing device is the primary, and to determine the initial sequence number.

  • Full—Neighboring routing devices are fully adjacent. These adjacencies appear in router link and network link advertisements.

  • Init—A hello packet has recently been sent by the neighbor. However, bidirectional communication has not yet been established with the neighbor. This state may occur, for example, because the routing device itself did not appear in the neighbor's hello packet.

  • Loading—Link-state request packets are sent to the neighbor to acquire more recent advertisements that have been discovered (but not yet received) in the Exchange state.

  • 2Way—Communication between the two routing devices is bidirectional. This state has been ensured by the operation of the Hello Protocol. This is the most advanced state short of beginning adjacency establishment. The (backup) designated router is selected from the set of neighbors in state 2Way or greater.

All levels

ID

Router ID of the neighbor.

All levels

Pri

Priority of the neighbor to become the designated router.

All levels

Dead

Number of seconds until the neighbor becomes unreachable.

All levels

Link state acknowledgment list

Number of link-state acknowledgments received.

extensive

Link state retransmission list

Total number of link-state advertisements retransmitted. For extensive output only, the following information is also displayed:

  • Type—Type of link advertisement: ASBR, Sum, Extern, Network, NSSA, OpaqArea, Router, or Summary.

  • LSA ID—LSA identifier included in the advertisement. An asterisk preceding the identifier marks database entries that originated from the local routing device.

  • Adv rtr—Address of the routing device that sent the advertisement.

  • Seq—Link sequence number of the advertisement.

detail extensive

Neighbor-address

(OSPFv3 only) If the neighbor uses virtual links, the Neighbor-address is the site-local, local, or global address. If the neighbor uses a physical interface, the Neighbor-address is an IPv6 link-local address.

detail extensive

area

Area that the neighbor is in.

detail extensive

OSPF3-Intf-Index

(OSPFv3 only) Displays the OSPFv3 interface index.

detail extensive

opt

Option bits received in the hello packets from the neighbor.

detail extensive

DR or DR-ID

Address of the designated router.

detail extensive

BDR or BDR-ID

Address of the backup designated router.

detail extensive

Up

Length of time since the neighbor came up.

detail extensive

adjacent

Length of time since the adjacency with the neighbor was established.

detail extensive

SPRING Adjacency Labels

Segment routing in networking adjacency labels.

Note:

Displayed only when segment routing is enabled

detail extensive

Label

Segment routing label.

detail extensive

Flags

Segment routing flags. Flags VL indicate value and local.

detail extensive

Sample Output

show ospf neighbor brief

show ospf neighbor detail

show ospf neighbor extensive

Release Information

Command introduced before Junos OS Release 7.4.

instance all option introduced in Junos OS Release 9.1.

instance all option introduced in Junos OS Release 9.1 for EX Series switches.

area, interface, and realm options introduced in Junos OS Release 9.2.

area and interface options introduced in Junos OS Release 9.2 for EX Series switches.