show ip ospf routes

Displays OSPF calculated routes.

Syntax

show ip ospf routes [ A.B.C.D ]

Parameters

A.B.C.D
Specifies a destination IP address in dotted decimal format.

Modes

User EXEC mode

Command Output

The show ip ospf routes command displays the following information:

Output field

Description

Destination

The IP address of the route's destination.

Mask

The network mask for the route.

Path_Cost

The cost of this route path. (A route can have multiple paths. Each path represents a different exit port for the device.)

Type2_Cost

The type 2 cost of this path.

Path_Type

The type of path, which can be one of the following:

    • Inter - The path to the destination passes into another area.
    • Intra - The path to the destination is entirely within the local area.
    • External1 - The path to the destination is a type 1 external route.
    • External2 - The path to the destination is a type 2 external route.

Adv_Router

The OSPF router that advertised the route to this device.

Link-State

The link state from which the route was calculated.

Dest_Type

The destination type, which can be one of the following:

    • ABR - Area Border Router
    • ASBR - Autonomous System Boundary Router
    • Network - the network

State

The route state, which can be one of the following:

    • Changed
    • Invalid
    • Valid

This information is used by Ruckus technical support.

Tag

The external route tag.

Flags

State information for the route entry. This information is used by Ruckus technical support.

Paths

The number of paths to the destination.

Out_Port

The router port through which the device reaches the next hop for this route path.

Next_Hop

The IP address of the next-hop router for this path.

Type

The route type, which can be one of the following:

    • OSPF
    • Static Replaced by OSPF

State

State information for the path. This information is used by Ruckus technical support.

Examples

The following example displays all OSPF-calculated routes.

device> show ip ospf route

OSPF Area 0x00000000 ASBR Routes 1:
      Destination     Mask            Path_Cost Type2_Cost Path_Type
      10.65.12.1      255.255.255.255 1         0          Intra
      Adv_Router      Link_State      Dest_Type State      Tag       Flags
      10.65.12.1      10.65.12.1      Asbr      Valid      0          6000
      Paths Out_Port  Next_Hop        Type      State
      1     v49       10.1.49.2       OSPF      21 01
      2     v12       10.1.12.2       OSPF      21 01
      3     v11       10.1.11.2       OSPF      21 01
      4     v10       10.1.10.2       OSPF      00 00
OSPF Area 0x00000041 ASBR Routes 1:
      Destination     Mask            Path_Cost Type2_Cost Path_Type
      10.65.12.1      255.255.255.255 1         0          Intra
      Adv_Router      Link_State      Dest_Type State      Tag       Flags
      10.65.12.1      10.65.12.1      Asbr      Valid      0          6000
      Paths Out_Port  Next_Hop        Type      State
      1     v204      10.65.5.251     OSPF      21 01
      2     v201      10.65.2.251     OSPF      20 d1
      3     v202      10.65.3.251     OSPF      20 cd
      4     v205      10.65.6.251     OSPF      00 00
OSPF Area Summary Routes 1:
      Destination     Mask            Path_Cost Type2_Cost Path_	Type
      10.65.0.0       255.255.0.0     0         0          Inter
      Adv_Router      Link_State      Dest_Type State      Tag       Flags
      10.1.10.1       0.0.0.0         Network   Valid      0          0000
      Paths Out_Port  Next_Hop        Type      State
      1     1/1       0.0.0.0         DIRECT    00 00
OSPF Regular Routes 208:
      Destination     Mask            Path_Cost Type2_Cost Path_Type
      10.1.10.0       255.255.255.252 1         0          Intra
      Adv_Router      Link_State      Dest_Type State      Tag       Flags
      10.1.10.1       10.1.10.2       Network   Valid      0          0000
      Paths Out_Port  Next_Hop        Type      State
      1     v10       0.0.0.0         OSPF      00 00
      Destination     Mask            Path_Cost Type2_Cost Path_Type
      10.1.11.0       255.255.255.252 1         0          Intra
      Adv_Router      Link_State      Dest_Type State      Tag       Flags
      10.1.10.1       10.1.11.2       Network   Valid      0          0000
      Paths Out_Port  Next_Hop        Type      State
      1     v11       0.0.0.0         OSPF      00 00

History