Displaying OSPF route information

Syntax:


show ip ospf

To display OSPF route and other OSPF configuration information, enter show ip ospf at any CLI level.

Output for show IP OSPF

switch# show ip ospf

OSPF Configuration Information

  OSPF protocol : enabled
  Router ID     : 10.0.8.35

Currently defined areas:

                        Stub         Stub          Stub
 Area ID        Type   Default Cost Summary LSA   Metric Type  SPF Runs
 -------------- ------ ------------ ------------ ------------- --------
 backbone       normal 1             don't send    ospf metric  1
 10.3.16.0      normal 1             don't send    ospf metric  1
 10.3.32.0      normal 1             don't send    ospf metric  1

Currently defined address ranges:

 Area ID        LSA Type  IP Network    Network Mask   Advertise Cost
 -------------- --------- ------------- -------------- --------- ----
 10.3.16.0      Summary   10.3.16.0     255.255.255.0  yes       1

OSPF interface configuration:
                                 Admin          Authen
 IP Address      Area ID         Status   Type  Type   Cost  Pri
 --------------- --------------- -------- ----- ------ ----- ---
 10.3.2.35       backbone        enabled  BCAST none   1     1
 10.3.3.35       backbone        enabled  BCAST none   1     1
 10.3.16.35      10.3.16.0       enabled  BCAST none   1     1
 10.3.32.35      10.3.32.0       enabled  BCAST none   1     1

OSPF configured interface timers:

                Transit Retransmit Hello     Dead
 IP Address     Delay   Interval   Interval  Interval
 -------------- ------- ---------- --------- ----------
 10.3.2.35      1       5          10        40
 10.3.3.35      1       5          10        40
 10.3.16.35     1       5          10        40
 10.3.32.35     1       5          10        40

OSPF configured virtual interfaces:

                                 Authen Xmit   Rxmt   Hello  Dead
 Area ID         Router ID       Type   Delay  Intvl  Intvl  Interval
 --------------- --------------- ------ ------ ------ ------ ----------
 10.3.16.0       10.0.8.33       none   1      5      10     40
 10.3.16.0       10.0.8.36       none   1      5      10     40
Table 29: CLI display of OSPF route and status information

Field

Description

OSPF protocol

enabled

or

disabled

— indicates if OSPF is currently enabled.

Router ID

The router ID that this routing switch is currently using to identify itself.

Currently defined areas:

Area ID

The identifier for this area.

Type

The type of OSPF area (normal or stub.)

Stub Default Cost

The metric for any default route we injected into a stub area if the routing switch is an ABR for the area. This value applies only to stub areas.

Stub Summary LSA

send

or

don't send

— indicates the state of the

no-summary

option for the stub area. The value indicates if the area is "totally stubby" (no summaries sent from other areas) or just "stub" (summaries sent.) Applies only to stub areas and takes effect only if the routing switch is the ABR for the area.

Stub Metric Type

This value is always ospf metric.

Currently defined address ranges:

Area ID

The area where the address range is configured.

LSA Type

This value is always Summary.

IP Network

The address part of the address range specification.

Network Mask

The mask part of the address range specification.

Advertise

Whether advertising (yes) or suppressing (no) this address range.

Cost

The cost of the interface connection between one switch and another, which is determined by the bandwidth in mega bits per second. The OSPF protocol determines the interface connection cost of each neighbor and uses these costs to determine the best path to reach a destination. The cost can range from a minimum of 1 to a maximum of 10. The faster the connection, the lower the cost. For example, a fast Ethernet interface cost is 1 and a Ethernet interface cost is 10.

NOTE:

The remaining interface and virtual link information is the same as for the previously described OSPF show commands.