Users Guide

IP Routing 1185
Configuring Route Table Entries and Route Preferences
Use the following commands to configure IRDP settings.
Command Purpose
configure Enter global configuration mode.
ip route default
nextHopIp
[
preference
]
Configure the default route.
nextHopIp
— IP address of the next hop router.
preference
— Specifies the preference value
(administrative distance) of an individual static route.
(Range: 1-255)
ip route
network-address
{
subnetmask
|
prefix
length
} {
nextHopIp |
Null0 | vlan
vlan-id}
[
preference
| name
text
]
Configure a static route. Use the keyword null instead of
the next hop router IP address to configure a static reject
route.
network-address
— IP address of destination network.
subnet-mask
— Subnet mask of destination interface.
prefix-length
— Length of prefix. Must be preceded
with a forward slash (/). (Range: 0-32 bits)
nextHopIp
— IP address of the next hop router.
Null0
— Specifies that the route is a static reject route.
preference
— Specifies the preference value
(administrative distance) of an individual static route.
(Range: 1-255)
ip route distance
integer
Set the default distance (preference) for static routes.
Lower route preference values are preferred when
determining the best route. The range is 1-255.
exit Exit to Privileged Exec mode.
show ip route [
ip-address
[
mask
|
prefix-length
]
View the routing table.
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)
show ip route summary View summary information about the routing table.