Command Line Interface Guide
1088 IP Routing Commands
Default Configuration
This command has no default configuration.
Command Mode
User EXEC, Privileged EXEC modes, Config mode and all Config sub-modes
User Guidelines
• If the subnet mask is specified, then only routes with an exact match are
displayed.
• If only an IP address is specified, the best route for the IP address is
displayed.
•If the
longer-prefixes option is specified, then the subnets within an
aggregate are displayed.
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, 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 0.0.0.0/0 [254/0] via 10.1.20.1
C 10.1.20.0/24 [0/1] directly connected, Vl2
C 4.4.0.0/16 [0/1] directly connected, Lo1
C 20.1.20.0/24 [0/1] directly connected, Vl4
static Show statically originated routes.
Parameter Description
2CSPC4.X8100-SWUM100.book Page 1088 Wednesday, August 29, 2012 6:23 PM