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 HundredGigE 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 HundredGigE 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 HundredGigE 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 HundredGigE 0/3/0/3
Neighbor is up for 18:45:27
This table
describes the significant fields shown in the display.
Table 14.
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 HundredGigE 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 HundredGigE 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 15. 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 HundredGigE 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 HundredGigE 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 16. show ospf
neighbor
HundredGigE 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 HundredGigE 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 HundredGigE 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 HundredGigE 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 HundredGigE 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 17. show ospf
neighbor
HundredGigE 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 HundredGigE 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 HundredGigE 0/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 HundredGigE 0/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 18. 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.
|
The following example displays the traffic engineering support, hostname, and graceful restart and helper capabilities of
neighboring connected routers, which are enabled for Segment Routing.
Router#show ospf neighbor capabilities
Mon Apr 29 08:27:07.289 UTC
Capabilities advertised in RI LSA
TE - Traffic Engineering
GR - Graceful Restart
GH - Graceful Restart Helper
NA - Capabilities TLV Not Advertised
Neighbors for OSPF 1
Area 1
Neighbor ID Address Interface SR-Enabled Capabilities
192.168.199.137 209.165.200.225/27 Gi100/0/0/0 Yes TE, GR, GH
HostName: Device_3
192.168.48.1 209.165.200.226/27 Gi100/0/0/4 No NA
192.168.48.200 209.165.200.227/27 Gi10/0/0/0 Yes TE, GR, GH
HostName: Device_0
Total neighbor count: 3
This table describes the significant fields shown in the display.
Table 19. show ospf neighbor capabilties Field Descriptions
Field
|
Description
|
SR-Enabled
|
Indicates whether a neighbor router is enabled for Segment Routing or not. The valid values are Yes and No.
|
Capabilities
|
Includes the capabilities advertised in the RI LSA of a neighbor router. In general, Traffic Engineering (TE), Graceful Restart
(GR), and Graceful Restart Helper (GH) capabilities are advertised. By default, routers advertise the GH capability in the
RI LSA. To enable the TE and GR capabilities on neighboring routers, you require configuration at either the area or OSPF
level.
When Segment Routing is not enabled for a neighbor router, it does not advertise any capabilities in the RI LSA, which is
indicated by NA.
|
Hostname
|
Indicates the hostname of the neighbor router.
If the hostname is not configured, the RI LSA uses the default hostname of the neighbor router.
|
Neighbor ID
|
Router ID of the neighbor router.
|
Address
|
IP address of the neighbor router.
|
Interface
|
Interface IP address of the neighbor router.
|
The following example shows the capabilities of neighbor 192.168.199.130 listed in the summary information:
Router#show ospf neighbor 192.168.199.130
Mon Nov 6 19:13:08.861 IST
* Indicates MADJ interface
# Indicates Neighbor awaiting BFD session up
Neighbors for OSPF 1
Neighbor 192.168.199.130, interface address 172.31.80.37
In the area 0 via interface GigabitEthernet0/2/0/4
Neighbor priority is 1, State is FULL, 6 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:32
Neighbor is up for 00:08:50
Number of DBD retrans during last exchange 0
Index 3/6, retransmission queue length 0, number of retransmission o
First 0(0) /0(0) Next 0(0) /0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is l msec, maximum is 8 msec
LS Ack list: NSR-sync pending 0, high water mark o
Adjacency SIDs:
Label: 24010, Dynamic, Unprotected
Label: 24011, Dynamic, Protected (Has backup)
Neighbor Interface ID: 4
Segment-Routing Enabled
Strict SPF capable
Start SID: 16000 Range Size: 8000
Flex algo Enabled
Capabilities advertised in RI LSA
Graceful Restart capable
Graceful Restart Helper capable
HostName: r5
Total neighbor count: 1