show ip route

Displays the IP route table information.
Syntax
show ip route [ vrf vrf-name ] [ ip-addr | num | bgp | direct | ospf | rip | static | summary ]
Parameters
vrf vrf-name
Displays VRF routes.
ip-addr
Displays information for the subnet mask.
num
Displays route starting from index.
bgp
Displays Border Gateway Protocol (BGP) routes.
direct
Displays directly attached routes.
ospf
Displays Open Shortest Path First (OSPF) routes.
rip
Displays Routing Information Protocol (RIP) routes.
static
Displays static IP routes.
summary
Displays a summary of routes.
Modes

User EXEC mode

The show ip route command displays the following information:

Output field Description
Destination The destination network of the route.
Cost The cost of the route.
Type The route type, which can be one of the following entries:
  • B - The route is learned from BGP.
  • D - The destination is directly connected to this RUCKUS device.
  • R - The route is learned from RIP.
  • S - The route is a static route.
  • Sv - The route is an inter-VRF static route.
  • * - The route is a candidate default route.
  • O - The route is an OSPF route. Unless you use the OSPF option to display the route table, O is used for all OSPF routes. If you do not use the OSPF option, the following type codes are used:
    • O - OSPF intra-area route (within the same area).
    • IA - The route is an OSPF inter-area route (a route that passes from one area into another area).
    • E1 - The route is an OSPF external type 1 route.
    • E2 - The route is an OSPF external type 2 route.
Examples

The following example displays IP route information.

device# show ip route
Total number of IP routes: 4
Type Codes - B:BGP D:Connected O:OSPF R:RIP S:Static; Cost - Dist/Metric
BGP  Codes - i:iBGP e:eBGP
OSPF Codes - i:Inter Area 1:External Type 1 2:External Type 2
STATIC Codes - v:Inter-VRF
        Destination        Gateway         Port          Cost          Type Uptime
1       0.0.0.0/0          200.1.1.2       ve 200        1/1           S    0m3s
2       22.22.22.0/24      DIRECT          ve 200        1/1           S    11d13h
3       22.22.22.22/32     100.1.1.2       ve 100        1/1           Sv   0m3s
4       200.1.1.0/24       DIRECT          ve 200        0/0           D    11d13h

The following example displays summary information about IP routes.

device# show ip route summary
IP Routing Table - 4 entries:
  1 connected, 3 static, 0 RIP, 0 OSPF, 0 BGP
  Number of prefixes:
  /0: 1 /24: 2 /32: 1
Nexthop Table Entry - 3 entries
History
Release version Command history
08.0.95 This command was modified to display the details of static inter-VRF routing.