Users Guide

Table Of Contents
Layer 3 Routing Commands 1569
show ip route 192.168.2.0
If the longer-prefixes option is specified, then the subnets within an
aggregate are displayed. For example:
show ip route 192.168.2.0 /23 longer-prefixes
The numbers in the brackets indicate the route preference (administrative
distance) and metric respectively. The metric is specific to the originating
protocol. Connected routes have a preference of 0 and static routes have a
preference of 1.
Command History
Command updated in version 6.6 firmware.
Example
The following example displays the IPv4 address of the default gateway and
the default route associated with the gateway.
console#show ip route
Route Codes: R - RIP Derived, O - OSPF Derived, C - Connected, S - Static
B - BGP Derived, E - Externally Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2
N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2
S U - Unnumbered Peer, L - Leaked Route, T - Truncated ECMP Route
* Indicates the best (lowest metric) route for the subnet.
C 3.0.0.0/24 [0/0] directly connected, Vl10
S U 6.1.0.6/32 [0/0] via Vl20
S U 6.2.0.6/32 [0/0] via Vl20
The following example shows an ECMP route with only one path.
console#show ip route summary
Connected Routes............................... 4
Static Routes.................................. 0
Kernel Routes.................................. 0
Unnumbered Peer Routes......................... 0
RIP Routes..................................... 0
BGP Routes..................................... 0
External..................................... 0
Internal..................................... 0
Local........................................ 0
OSPF Routes.................................... 320
Intra Area Routes............................ 0
Inter Area Routes............................ 320
External Type-1 Routes....................... 0
External Type-2 Routes....................... 0