Command:

show ip ospf neighbor


Mode:

Router>


Syntax:

show ip ospf neighbor [ interface-type interface-number] [ neighbor-id] [detail]

Syntax Description:

interface-type

(Optional) Interface type.

interface-number

(Optional) Interface number.

neighbor-id

(Optional) Neighbor ID.

detail

(Optional) Displays all neighbors given in detail (list all neighbors).

 

Command Description:

 

To display OSPF-neighbor information on a per-interface basis, use the show ip ospf neighborcommand in EXEC mode.


Example:

The following is sample output from the show ip ospf neighborcommand showing a single line of summary information for each neighbor:

Router# show ip ospf neighbor

ID Pri State Dead Time Address Interface

10.199.199.137  1 FULL/DR 0:00:31 192.168.80.37 Ethernet0

172.16.48.1 1 FULL/DROTHER 0:00:33 172.16.48.1  Fddi0

172.16.48.200 1 FULL/DROTHER 0:00:33 172.16.48.200  Fddi0

10.199.199.137  5 FULL/DR 0:00:33 172.16.48.189  Fddi0

The following is sample output showing summary information about the neighbor that matches the neighbor ID:

Router# show ip ospf neighbor 10.199.199.137

Neighbor 10.199.199.137, interface address 192.168.80.37

In the area 0.0.0.0 via interface Ethernet0

Neighbor priority is 1, State is FULL

Options 2

Dead timer due in 0:00:32

Link State retransmission due in 0:00:04

Neighbor 10.199.199.137, interface address 172.16.48.189

In the area 0.0.0.0 via interface Fddi0

Neighbor priority is 5, State is FULL

Options 2

Dead timer due in 0:00:32

Link State retransmission due in 0:00:03

If you specify the interface along with the neighbor ID, the Cisco IOS software displays the neighbors that match the neighbor ID on the interface, as in the following sample display:

Router# show ip ospf neighbor ethernet 0 10.199.199.137

Neighbor 10.199.199.137, interface address 192.168.80.37

In the area 0.0.0.0 via interface Ethernet0

Neighbor priority is 1, State is FULL

Options 2

Dead timer due in 0:00:37

Link State retransmission due in 0:00:04

You can also specify the interface without the neighbor ID to show all neighbors on the specified interface, as in the following sample display:

Router# show ip ospf neighbor fddi 0

ID Pri State Dead Time Address Interface

172.16.48.1 1 FULL/DROTHER 0:00:33 172.16.48.1 Fddi0

172.16.48.200 1 FULL/DROTHER 0:00:32 172.16.48.200 Fddi0

5 FULL/DR 0:00:32 172.16.48.189 Fddi0

The following is sample output from the show ip ospf neighbor detailcommand:

Router# show ip ospf neighbor detail

Neighbor 192.168.5.2, interface address 10.225.200.28

In the area 0 via interface Ethernet1

Neighbor priority is 1, State is FULL, 6 state changes

DR is 10.225.200.28 BDR is 10.225.200.30

Options is 0x42

Dead timer due in 00:00:36

Neighbor is up for 00:09:46

Index 1/1, retransmission queue length 0, number of retransmission 1

First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)

Last retransmission scan length is 1, maximum is 1

Last retransmission scan time is 0 msec, maximum is 0 msec

 Table 17 describes the significant fields shown in the displays.

Table 17   show ip ospf neighbor detail Field Descriptions

Field

Description

Neighbor

Neighbor router ID.

interface address

IP address of the interface.

In the area

Area and interface through which the OSPF neighbor is known.

Neighbor priority

Router priority of the neighbor, neighbor state.

State

OSPF state.

state changes

Number of state changes since the neighbor was created.This value can be reset using the clear ip ospf counters neighborcommand.

DR is

Router ID of the designated router for the interface.

BDR is

Router ID of the backup designated router for the interface.

Options

Hello packet options field contents. (E-bit only. Possible values are 0 and 2; 2 indicates area is not a stub; 0 indicates area is a stub.)

Dead timer

Expected time before Cisco IOS software will declare the neighbor dead.

Neighbor is up for

Number of hours:minutes:seconds since the neighbor went into 2-way state.

Index

Neighbor location in the area-wide and autonomous system-wide retransmission queue.

retransmission queue length

Number of elements in retransmission queue.

number of retransmission

Number of times update packets have been retransmitted during flooding.

First

Memory location of the flooding details.

Next

Memory location of the flooding details.

Last retransmission scan length

Number of LSAs in the last retransmission packet.

maximum

Maximum number of LSAs sent in any retransmission packet.

Last retransmission scan time

Time taken to build last retransmission packet.

maximum

Maximum time taken to build any retransmission packet.


Misconceptions:

            None.


Related Commands:

            None.  


© Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education






Converted from CHM to HTML with chm2web Pro 2.85 (unicode)