Tip

This is the documentation for the 20.02 version. Looking for the documentation of the latest version? Have a look here.

OSPF Status

TNSR supports several commands to display information about the OSPF daemon configuration and its status.

See also

For more general dynamic routing status information, see Dynamic Routing Manager Status

Configuration Information

To view the OSPF configuration:

tnsr(config)# show route dynamic ospf config
interface GigabitEthernet3/0/0
    ip ospf area 0.0.0.0
exit
interface TenGigabitEthernet6/0/0
    ip ospf area 0.0.0.0
    ip ospf cost 10
exit
router ospf
    ospf router-id 10.2.0.1
    passive-interface GigabitEthernet3/0/0

Status Information

To view the OSPF database:

tnsr(config)# show route dynamic ospf database

       OSPF Router with ID (10.2.0.1)

                Router Link States (Area 0.0.0.0)

Link ID         ADV Router      Age  Seq#       CkSum  Link count
10.2.0.1        10.2.0.1         129 0x80000005 0x6808 2
10.25.0.1       10.25.0.1        157 0x80000005 0x45ce 2

                Net Link States (Area 0.0.0.0)

Link ID         ADV Router      Age  Seq#       CkSum
203.0.113.25    10.25.0.1        158 0x80000001 0x2e80

Additional more specific information is available by adding a keyword onto the end of the command show route dynamic ospf database <name> where <name> is one of the following choices:

asbr-summary:

Autonomous System Boundary Router (ASBR) database summary.

external:

External link state information.

max-age:

Link State Advertisement (LSA) entries in MaxAge list.

network:

Network link states.

nssa-external:

Not-so-stubby-area external link states.

opaque-area:

Link area Opaque-LSA.

opaque-as:

Link AS Opaque-LSA.

opaque-link:

Link local Opaque-LSA.

router:

Router link states.

self-originate:

Link states originated from this router.

summary:

Network summary link states.

To view information about interfaces participating in OSPF:

tnsr(config)# show route dynamic ospf interface
GigabitEthernet3/0/0 is up
  ifindex 22, MTU 1500 bytes, BW 0 Mbit <UP,RUNNING>
  Internet Address 10.2.0.1/24, Broadcast 10.2.0.255, Area 0.0.0.0
  MTU mismatch detection: enabled
  Router ID 10.2.0.1, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State DR, Priority 1
  No backup designated router on this network
  Multicast group memberships: <None>
  Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
    No Hellos (Passive interface)
  Neighbor Count is 0, Adjacent neighbor count is 0
TenGigabitEthernet6/0/0 is up
  ifindex 23, MTU 1500 bytes, BW 0 Mbit <UP,RUNNING>
  Internet Address 203.0.113.2/24, Broadcast 203.0.113.255, Area 0.0.0.0
  MTU mismatch detection: enabled
  Router ID 10.2.0.1, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State Backup, Priority 1
  Backup Designated Router (ID) 10.2.0.1, Interface Address 203.0.113.2
  Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
  Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
    Hello due in 8.281s
  Neighbor Count is 1, Adjacent neighbor count is 1

To view information about current OSPF neighbors and adjacencies:

tnsr(config)# show route dynamic ospf neighbor

Neighbor ID     Pri State           Dead Time Address         Interface                               RXmtL RqstL DBsmL
10.25.0.1         1 Full/DR           39.774s 203.0.113.25    TenGigabitEthernet6/0/0:203.0.113.2     0     0     0

For more detailed neighbor information, use show route dynamic ospf neighbor detail.

To view information about current OSPF routes:

tnsr(config)# show route dynamic ospf route
============ OSPF network routing table ============
N    10.2.0.0/24           [10] area: 0.0.0.0
                           directly attached to GigabitEthernet3/0/0
N    10.25.0.0/24          [20] area: 0.0.0.0
                           via 203.0.113.25, TenGigabitEthernet6/0/0
N    203.0.113.0/24        [10] area: 0.0.0.0
                           directly attached to TenGigabitEthernet6/0/0

============ OSPF router routing table =============

============ OSPF external routing table ===========

To view information about this OSPF router:

tnsr(config)# show route dynamic ospf router-info
--- Router Information parameters ---
  Router Capabilities: 0x10000000

To view information about all OSPF Area Border Routers (ABR) and Autonomous System Boundary Routers (ASBR):

tnsr(config)# show route dynamic ospf border-routers
============ OSPF router routing table =============
R    10.25.0.1             [10] area: 0.0.0.0, ABR
                           via 203.0.113.25, TenGigabitEthernet6/0/0