Display IPv4 Static Route Information

You can use show commands to display information about configured IPv4 routes, static routes, directly connected routes, routes configured for different protocols, the cost associated with each route, and the time the route has been available.

Procedure

  1. Display the configured static routes.
    device# show running-config ip route
    ip route 0.0.0.0/0 11.1.1.20
    ip route 0.0.0.0/0 12.1.1.20
    ip route 11.16.1.0/24 11.1.1.20
    ip route 11.12.1.0/24 null 0 2 distance 4 tag 10
    ip route 11.13.1.0/24 null 0
    ip route 11.14.1.0/24 ethernet 3/14
    ip route 11.15.1.0/24 ve 10
    ip route 11.17.1.0/24 ethernet 3/14 4 distance 5 tag 6
    device#
    
  2. Display a list of active static routes and their connection times.
    device# show ip route static 
    IP Routing Table for VRF "default-vrf"
    Total number of IP routes: 8
    '*' denotes best ucast next-hop
    '[x/y]' denotes [preference/metric]
    
    0.0.0.0/0 
        *via 11.1.1.20, Eth 3/14, [1/1], 5m32s, static, tag 0
    11.12.1.0/24 
        *via DIRECT, Null0, [4/2], 16m57s, static, tag 10
    11.13.1.0/24 
        *via DIRECT, Null0, [1/1], 16m12s, static, tag 0
    11.14.1.0/24 
        *via DIRECT, Eth 3/14, [1/1], 11m58s, static, tag 0
    11.16.1.0/24 
        *via 11.1.1.20, Eth 3/14, [1/1], 9m46s, static, tag 0
    11.17.1.0/24 
        *via DIRECT, Eth 3/14, [5/4], 9m2s, static, tag 6
    device#
    
  3. Display all active IP routes and their connection times.
    device# show ip route
    IP Routing Table for VRF "default-vrf"
    Total number of IP routes: 8
    '*' denotes best ucast next-hop
    '[x/y]' denotes [preference/metric]
    
    0.0.0.0/0 
        *via 11.1.1.20, Eth 3/14, [1/1], 5m19s, static, tag 0
    11.1.1.0/24, attached 
        *via DIRECT, Eth 3/14, [0/0], 17m46s, direct, tag 0
    11.1.1.11/32, attached 
        *via DIRECT, Eth 3/14, [0/0], 17m46s, local, tag 0
    11.12.1.0/24 
        *via DIRECT, Null0, [4/2], 16m44s, static, tag 10
    11.13.1.0/24 
        *via DIRECT, Null0, [1/1], 15m59s, static, tag 0
    11.14.1.0/24 
        *via DIRECT, Eth 3/14, [1/1], 11m45s, static, tag 0
    11.16.1.0/24 
        *via 11.1.1.20, Eth 3/14, [1/1], 9m33s, static, tag 0
    11.17.1.0/24 
        *via DIRECT, Eth 3/14, [5/4], 8m49s, static, tag 6
    device#