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

show ip routes

show ip routes—Display the IPv4 entries in the local route table. On vSmart controllers, the route table incorporates forwarding information.

Command Syntax

show ip routes [ipv4-address] [ipv4prefix/length] [bgp​] [connected] [gre] [nat] [natpool-inside] [natpool-outside] [omp] [ospf] [static] [summary [protocol protocol] ] [detail]
show ip routes vpnvpn-id [ipv4-address] [ipv4prefix/length] [bgp​] [connected] [gre] [nat] [natpool-inside] [natpool-outside] [omp] [ospf] [static] [detail]

Options

None
List standard information about the entries in the local IPv4 route table.
Detailed Information
detail
List detailed information about the entries in the local IPv4 route table.
IP Address or Route Prefix
ipv4-address
ipv4prefix
/length
ipv4prefix vpn vpn-id
List route information for the specified route prefix. 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.
NAT Routes
nat
List routes learned from static routes that are advertised to a different VPN (configured using the ip route vpn command).
NAT Pool Routes
natpool-inside
natpool-outside
List routes learned from NAT pools that are advertised by OMP (natpool-inside) and routes learned from the service side (natpool-outside) for vEdge routers acting as NATs.
Routes Learned from a Protocol or Connected Networks
protocol
List routes learned from one or more specific protocols—bgp, connected, gre, omp, ospf, and static. The protocol static includes both routes that are statically configured on the local device as well as routes learned from a DHCP server if one or more interfaces in VPN 0 are configured to learn their IP addresses via DHCP.
Summary of Routes
summary [summary protocol]
List summary information about the IP routes in the route table or about routes learned from the specified protocol. protocol can be bgp, connected, omp, ospf, or static.
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 ip routes
Codes Proto-sub-type:
  IA -> ospf-inter-area,
  E1 -> ospf-external1, E2 -> ospf-external2,
  N1 -> ospf-nssa-external1, N2 -> ospf-nssa-external2,
  e -> bgp-external, i -> bgp-internal
Codes Status flags:
  F -> fib, S -> selected, I -> inactive,
  B -> blackhole, R -> recursive
                                    PROTOCOL  NEXTHOP  NEXTHOP          NEXTHOP                                                   
VPN  PREFIX              PROTOCOL   SUB TYPE  IF NAME  ADDR             VPN      TLOC IP          COLOR            ENCAP  STATUS  
----------------------------------------------------------------------------------------------------------------------------------
0    0.0.0.0/0           static     -         ge0/0    10.1.15.13       -        -                -                -      F,S     
0    10.0.20.0/24        connected  -         ge0/3    -                -        -                -                -      F,S     
0    10.0.100.0/24       connected  -         ge0/7    -                -        -                -                -      F,S     
0    10.1.15.0/24        connected  -         ge0/0    -                -        -                -                -      F,S     
0    10.1.17.0/24        connected  -         ge0/1    -                -        -                -                -      F,S     
0    57.0.1.0/24         connected  -         ge0/6    -                -        -                -                -      F,S     
0    172.16.255.15/32    connected  -         system   -                -        -                -                -      F,S     
1    10.1.17.15/32       nat        -         ge0/1    -                0        -                -                -      F,S     
1    10.20.24.0/24       ospf       -         ge0/4    -                -        -                -                -      -       
1    10.20.24.0/24       connected  -         ge0/4    -                -        -                -                -      F,S     
1    10.20.25.0/24       omp        -         -        -                -        172.16.255.16    lte              ipsec  F,S     
1    56.0.1.0/24         connected  -         ge0/5    -                -        -                -                -      F,S     
1    60.0.1.0/24         omp        -         -        -                -        172.16.255.16    lte              ipsec  F,S     
1    61.0.1.0/24         omp        -         -        -                -        172.16.255.16    lte              ipsec  F,S     
512  10.0.1.0/24         connected  -         eth0     -                -        -                -                -      F,S     
vEdge# show ip routes summary 

     ADDRESS                                  
VPN  FAMILY   PROTOCOL   RECEIVED  INSTALLED  
----------------------------------------------
0    ipv4     connected  6         6          
0    ipv4     static     0         0          
0    ipv4     ospf       5         4          
0    ipv4     bgp        0         0          
0    ipv4     omp        0         0          
1    ipv4     connected  3         3          
1    ipv4     static     0         0          
1    ipv4     ospf       0         0          
1    ipv4     bgp        1         1          
1    ipv4     omp        4         4          
512  ipv4     connected  1         1          
512  ipv4     static     0         0         
vEdge# show ip routes 172.16.255.112/32 detail 
Codes Proto-sub-type:
IA -> ospf-inter-area,
E1 -> ospf-external1, E2 -> ospf-external2,
N1 -> ospf-nssa-external1, N2 -> ospf-nssa-external2,
e -> bgp-external, i -> bgp-internal
Codes Status flags:
F -> fib, S -> selected, I -> inactive,
B -> blackhole, R -> recursive

--------------------------------------------
VPN 1 PREFIX 172.16.255.112/32 
--------------------------------------------
proto ospf
proto-sub-type E2
distance 110
metric 20
uptime 2:17:37:59
omp-tag 100
ospf-tag 20
nexthop-ifname ge0/0
nexthop-addr 10.2.2.12
status F,S

Release Information

Command introduced in Viptela Software Release 14.1.
In Release 16.3, add support for displaying NAT-related routes.
In Release 17.1, display omp-tag and ospf-tag fields in detailed output.
In Release 17.2, rename natpool-omp and netpool-service options to natpool-inside and natpool-outside.

  • Was this article helpful?