Examples
The following is
sample output from the
show ospf
neighbor
command showing two lines of summary information for each
neighbor:
RP/0/RP0/CPU0:router# show ospf neighbor
Neighbors for OSPF
Neighbor ID Pri State Dead Time Address Interface
192.168.199.137 1 FULL/DR 0:00:31 172.31.80.37 GigabitEthernet 0/3/0/2
Neighbor is up for 18:45:22
192.168.48.1 1 FULL/DROTHER 0:00:33 192.168.48.1 GigabitEthernet 0/3/0/3
Neighbor is up for 18:45:30
192.168.48.200 1 FULL/DROTHER 0:00:33 192.168.48.200 GigabitEthernet 0/3/0/3
Neighbor is up for 18:45:25
192.168.199.137 5 FULL/DR 0:00:33 192.168.48.189 GigabitEthernet 0/3/0/3
Neighbor is up for 18:45:27
This table
describes the significant fields shown in the display.
Table 8.
show ospf
neighbor
Field Descriptions
Field
|
Description
|
Neighbor
ID
|
Neighbor
router ID.
|
Pri
|
Designated
router priority.
|
State
|
OSPF
state.
|
Dead time
|
Time (in
hh:mm:ss) that must elapse before OSPF declares the neighbor dead.
|
Address
|
Address of
next hop.
|
Interface
|
Interface
name of next hop.
|
Neighbor
is up
|
Amount of
time (in hh:mm:ss) that the OSPF neighbor has been up.
|
The following is
sample output showing summary information about the neighbor that matches the
neighbor ID:
RP/0/RP0/CPU0:router# show ospf neighbor 192.168.199.137
Neighbor 192.168.199.137, interface address 172.31.80.37
In the area 0.0.0.0 via interface GigabitEthernet 0/3/0/2
Neighbor priority is 1, State is FULL, 6 state changes
DR is 0.0.0.0 BDR is 0.0.0.0
Options is 0x2
Dead timer due in 0:00:32
Neighbor is up for 18:45:30
Number of DBD retrans during last exhange 0
Index 1/1, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum 0 msec
Neighbor 192.168.199.137, interface address 192.168.48.189
In the area 0.0.0.0 via interface GigabitEthernet 0/3/0/3
Neighbor priority is 5, State is FULL, 6 state changes
Options is 0x2
Dead timer due in 0:00:32
Neighbor is up for 18:45:30
Number of DBD retrans during last exhange 0
Index 1/1, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum 0 msec
Total neighbor count: 2
This table
describes the significant fields shown in the display.
Table 9. show ospf
neighbor 192.168.199.137 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 neighbor and neighbor state.
|
State
|
OSPF
state.
|
state
changes
|
Number of
state changes for this neighbor.
|
DR is
|
Neighbor
ID of the designated router.
|
BDR is
|
Neighbor
ID of the backup designated router.
|
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
|
Time (in
hh:mm:ss) to elapse before OSPF declares the neighbor dead.
|
Neighbor
is up
|
Amount of
time (in hh:mm:ss) that the OSPF neighbor has been up.
|
Number of
DBD retrans
|
Number of
re-sent database description packets.
|
Index
|
Index and
the remaining lines of this command give detailed information about flooding
information received from the neighbor.
|
If you specify the
interface along with the neighbor ID, the software displays the neighbors that
match the neighbor ID on the interface, as in the following sample display:
RP/0/RP0/CPU0:router# show ospf neighbor GigabitEthernet 0/3/0/2 192.168.199.137
Neighbor 192.168.199.137, interface address 172.31.80.37
In the area 0.0.0.0 via interface GigabitEthernet 0/3/0/2
Neighbor priority is 1, State is FULL, 6 state changes
DR is 0.0.0.0 BDR is 0.0.0.0
Options is 0x2
Dead timer due in 0:00:32
Neighbor is up for 18:45:30
Number of DBD retrans during last exhange 0
Index 1/1, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum 0 msec
Total neighbor count: 1
This table
describes the significant fields shown in the display.
Table 10. show ospf
neighbor GigabitEthernet 0/3/0/2 192.168.199.137 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.
|
State
|
OSPF
state.
|
state
changes
|
Number of
state changes for this neighbor.
|
DR is
|
Neighbor
ID of the designated router.
|
BDR is
|
Neighbor
ID of the backup designated router.
|
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
|
Time (in
hh:mm:ss) to elapse before OSPF declares the neighbor dead.
|
Neighbor
is up
|
Amount of
time (in hh:mm:ss) that the OSPF neighbor has been up.
|
Number of
DBD retrans
|
Number of
re-sent database description packets.
|
Index
|
Index and
the remaining lines of this command give detailed information about flooding
information received from the neighbor.
|
You can also
specify the interface without the neighbor ID to show all neighbors on the
specified interface, as in the following sample display:
RP/0/RP0/CPU0:router# show ospf neighbor GigabitEthernet POS 0/3/0/3
Neighbors for OSPF ospf1
ID Pri State Dead Time Address Interface
192.168.48.1 1 FULL/DROTHER 0:00:33 192.168.48.1 GigabitEthernet POS 0/3/0/3
Neighbor is up for 18:50:52
192.168.48.200 1 FULL/DROTHER 0:00:32 192.168.48.200 GigabitEthernet POS 0/3/0/3
Neighbor is up for 18:50:52
192.168.199.137 5 FULL/DR 0:00:32 192.168.48.189 GigabitEthernet POS 0/3/0/3
Neighbor is up for 18:50:52
Total neighbor count: 3
This table
describes the significant fields shown in the display.
Table 11. show ospf
neighbor GigabitEthernet 0/3/0/3 Field Descriptions
Field
|
Description
|
ID
|
Neighbor
router ID.
|
Pri
|
Route
priority of the neighbor.
|
State
|
OSPF
state.
|
Dead Time
|
Time (in
hh:mm:ss) to elapse before OSPF declares the neighbor dead.
|
Address
|
Address of
next hop.
|
Interface
|
Interface
name of next hop.
|
Neighbor
is up
|
Time (in
hh:mm:ss) that the OSPF neighbor has been up.
|
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
|
Time (in
hh:mm:ss) to elapse before OSPF declares the neighbor dead.
|
Neighbor
is up
|
Amount of
time (in hh:mm:ss) that the OSPF neighbor has been up.
|
Number of
DBD retrans
|
Number of
re-sent database description packets.
|
Index
|
Index and
the remaining lines of this command give detailed information about flooding
information received from the neighbor.
|
The following
samples are from output from the
show ospf
neighbor
detail
command:
RP/0/RP0/CPU0:router# show ospf neighbor detail
Neighbor 192.168.199.137, interface address 172.31.80.37
In the area 0.0.0.0 via interface GigabitEthernet 0/3/0/2
Neighbor priority is 1, State is FULL, 6 state changes
DR is 0.0.0.0 BDR is 0.0.0.0
Options is 0x2
Dead timer due in 0:00:32
Neighbor is up for 18:45:30
Number of DBD retrans during last exhange 0
Index 1/1, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum 0 msec
Total neighbor count: 1
Neighbor 10.1.1.1, interface address 192.168.13.1
In the area 0 via interface GigabitEthernet0/3/0/1
Neighbor priority is 1, State is FULL, 10 state changes
DR is 0.0.0.0 BDR is 0.0.0.0
Options is 0x52
LLS Options is 0x1 (LR)
Dead timer due in 00:00:36
Neighbor is up for 1w2d
Number of DBD retrans during last exchange 0
Index 3/3, retransmission queue length 0, number of retransmission 5
First 0(0)/0(0) Next 0(0)/0(0)
Last retransmission scan length is 1, maximum is 1
Last retransmission scan time is 0 msec, maximum is 0 msec
Neighbor 10.4.4.4, interface address 192.168.34.4
In the area 0 via interface GigabitEthernet0/3/0/2
Neighbor priority is 1, State is FULL, 48 state changes
DR is 0.0.0.0 BDR is 0.0.0.0
Options is 0x12
LLS Options is 0x1 (LR)
Dead timer due in 00:00:30
Neighbor is up for 00:40:03
Number of DBD retrans during last exchange 0
Index 2/2, retransmission queue length 0, number of retransmission 6
First 0(0)/0(0) Next 0(0)/0(0)
Last retransmission scan length is 0, maximum is 1
Last retransmission scan time is 0 msec, maximum is 0 msec
This table
describes the significant fields shown in the display.
Table 12. show 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 neighbor and neighbor state.
|
State
|
OSPF
state.
|
state
changes
|
Number of
state changes for this neighbor.
|
DR is
|
Neighbor
ID of the designated router.
|
BDR is
|
Neighbor
ID of the backup designated router.
|
Options
|
Hello
packet options field contents. (E-bit only; possible values are 0 and 2; 2
indicates that the area is not a stub; 0 indicates that the area is a stub).)
|
LLS
Options is 0x1 (LR)
|
Neighbor
is NFS Cisco capable.
|
Dead timer
|
Time (in
hh:mm:ss) to elapse before OSPF declares the neighbor dead.
|
Neighbor
is up
|
Amount of
time (in hh:mm:ss) that the OSPF neighbor has been up.
|
Number of
DBD retrans
|
Number of
re-sent database description packets.
|
Index
|
Index and
the remaining lines of this command give detailed information about flooding
information received from the neighbor.
|