Users Guide

IP Routing 1133
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. A
VLAN next hop is only used with IP unnumbered
interfaces or a VRF.
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.