Skip to main content
Viptela is now part of Cisco.
Support
Product Documentation
Viptela Documentation

show ospf routes

show ospf routes—Display the entries that the route table has learned from OSPF (on vEdge routers only).

Command Syntax

show ospf routes [detail] [prefix/length] [vpn vpn-id]
show ospf routes vpn vpn-id [route-type [prefix/length] ]

Options

None
List standard information about the entries the route table has learned from OSPF.
Detailed Information
detail
List detailed information about the entries the route table has learned from OSPF.
Route Prefix
prefix/length
prefix vpn vpn-id
List route information for the specified route prefix learned from OSPF. If you omit the prefix length, you must specify a VPN identifier so that the Viptela software can find the route that best matches the prefix.
Specific OSPF Route Type
route-type [prefix/length]
List the information about entries for specific OSPF route types and optionally learned from the specified IP prefix. For a list of route types, see the Output Fields table below.
VPN-Specific Routes
vpn vpn-id
List only the route table entries for the specified VPN.

Output Fields

The output fields are self-explanatory.

Example Output

vEdge# show ospf routes

     ROUTE                                                    DEST                IF     
VPN  TYPE      PREFIX             ID  AREA  COST  PATH TYPE   TYPE     NEXT HOP   NAME   
-----------------------------------------------------------------------------------------
0    router    172.16.255.13/32   0   51    10    intra-area  router   10.0.5.13  ge0/2  
0    network   10.0.5.0/24        0   51    10    intra-area  network  0.0.0.0    ge0/2  
0    network   10.0.12.0/24       0   51    20    intra-area  network  10.0.5.13  ge0/2  
0    network   10.1.14.0/24       0   51    20    intra-area  network  10.0.5.13  ge0/2  
0    network   10.1.15.0/24       0   51    20    intra-area  network  10.0.5.13  ge0/2  
0    network   10.1.16.0/24       0   51    20    intra-area  network  10.0.5.13  ge0/2  
1    router    172.16.255.12/32   0   0     10    intra-area  router   10.2.2.12  ge0/0  
1    router    172.16.255.21/32   0   0     20    intra-area  router   10.2.2.12  ge0/0  
1    network   10.2.2.0/24        0   0     10    intra-area  network  0.0.0.0    ge0/0  
1    network   10.2.3.0/24        0   0     20    intra-area  network  10.2.2.12  ge0/0  
1    external  172.16.255.112/32  0   -     -     external2   network  10.2.2.12  ge0/0 
vEdge# show ospf routes detail     

     ROUTE                                                           DEST          TYPE2             IF     
VPN  TYPE      PREFIX             ID  AREA  COST  FLAGS  PATH TYPE   TYPE     TAG  COST   NEXT HOP   NAME   
------------------------------------------------------------------------------------------------------------
0    router    172.16.255.13/32   0   51    10    2      intra-area  router   -    -      10.0.5.13  ge0/2  
0    network   10.0.5.0/24        0   51    10    0      intra-area  network  -    -      0.0.0.0    ge0/2  
0    network   10.0.12.0/24       0   51    20    0      intra-area  network  -    -      10.0.5.13  ge0/2  
0    network   10.1.14.0/24       0   51    20    0      intra-area  network  -    -      10.0.5.13  ge0/2  
0    network   10.1.15.0/24       0   51    20    0      intra-area  network  -    -      10.0.5.13  ge0/2  
0    network   10.1.16.0/24       0   51    20    0      intra-area  network  -    -      10.0.5.13  ge0/2  
1    router    172.16.255.12/32   0   0     10    2      intra-area  router   -    -      10.2.2.12  ge0/0  
1    router    172.16.255.21/32   0   0     20    2      intra-area  router   -    -      10.2.2.12  ge0/0  
1    network   10.2.2.0/24        0   0     10    0      intra-area  network  -    -      0.0.0.0    ge0/0  
1    network   10.2.3.0/24        0   0     20    0      intra-area  network  -    -      10.2.2.12  ge0/0  
1    external  172.16.255.112/32  0   -     -     83     external2   network  0    20     10.2.2.12  ge0/0 

Release Information

Command introduced in Viptela Software Release 14.1.

  • Was this article helpful?