Configuring Route Table Entries and Route Preferences
Beginning in Privileged EXEC mode, use the following commands to
configure IRDP settings.
Command
configure
ip route default
nextHopRtr
preference
[
ip-addr
ip route
subnetmask
{
|
length
nextHopRtr |
} {
}
preference
null
[
ip route distance
exit
914
Configuring IP Routing
Purpose
Enter global configuration mode.
Configure the default route.
]
nextHopRtr
•
preference
•
(administrative distance) of an individual static route.
(Range: 1-255)
Configure a static route. Use the keyword null instead of
prefix
the next hop router IP address to configure a static reject
route.
]
ip-address
•
subnet-mask
•
prefix-length
•
with a forward slash (/). (Range: 0-32 bits)
nextHopRtr
•
• null — Specifies that the route is a static reject route.
preference
•
(administrative distance) of an individual static route.
(Range: 1-255)
integer
Set the default distance (preference) for static routes.
Lower route preference values are preferred when
determining the best route.
Exit to Privileged EXEC mode.
— IP address of the next hop router.
— Specifies the preference value
— IP address of destination interface.
— Subnet mask of destination interface.
— Length of prefix. Must be preceded
— IP address of the next hop router.
— Specifies the preference value