Command Line Interface Guide

IP Routing Commands 1087
RIP Admin Mode............................ Enable
Split Horizon Mode........................ Simple
Default Metric............................ Not configured
Default Route Advertise................... Disable
Distance.................................. 120
Interface Send Recv
--------- ---- ----
0/25 RIPv2 RIPv2
show ip route
Use the show ip route command in Privileged EXEC mode to display the
current state of the routing table. The output of the command also displays
the IPv4 address of the default gateway and the default route associated with
the gateway.
Syntax
show ip route [ip-address [mask | prefix-length] [longer-prefixes] | ospf | rip
| static]
Syntax Description
Parameter Description
ip-address Specifies the network for which the route is to be displayed and
displays the best matching best-route for the address.
mask Subnet mask of the IP address.
prefix-length
Length of prefix, in bits. Must be preceded with a forward slash
(/). (Range: 0-32 bits.)
longer-prefixes Indicates that the
ip-address
and
subnet-mask
pair becomes the
prefix, and the command displays the routes to the addresses
that match that prefix.
ospf
Show OSPF originated routes.
rip Show RIP originated routes.
2CSPC4.X8100-SWUM100.book Page 1087 Wednesday, August 29, 2012 6:23 PM