IP Routing Commands 733
•
protocol
— Specifies the protocol that installed the routes. (Range:
connected, ospf, rip static
)
•
ip-address
— Specifies the network for which the route is to be displayed
and displays the best matching best-route for the address.
•
subnet-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.
Default Configuration
This command has no default configuration.
Command Mode
Privileged EXEC mode
User Guidelines
This command has no user guidelines.
Example
The following example displays the routing table.
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