
IP Routing Commands 617
Example
The following example identifies the
ip-address subnet-mask, next-hop-ip
and a preference
value of 200.
console(config)#ip route 192.168.10.10 255.255.255.0 192.168.20.1
metric 200
ip route default
Use the
ip route default
command in Global Configuration mode to configure the default route.
Use the no form of the command to delete the default route.
Syntax
ip route default
[
next-hop-ip
] [
preference
]
no ip route default
[
next-hop-ip
[
preference
]
•
next-hop-ip
—
IP address of the next hop router.
•
preference
—
Specifies the preference value, a.k.a administrative distance, of an individual
static route. (Range: 1-255)
Default Configuration
Default value of preference is 1.
Command Mode
Global Configuration mode
User Guidelines
This command has no user guidelines.
Example
The following example identifies the
next-hop-ip
and a preference value of 200.
console(config)#ip route 192.168.10.10 255.255.255.0 192.168.20.1
200
ip route distance
Use the
ip route distance
command in Global Configuration mode to set the default distance
(preference) for static routes. Lower route preference values are preferred when determining the
best route. The
ip route
and
ip route default
commands allow optional setting of the distance of
an individual static route. The default distance is used when no distance is specified in these
Commentaires sur ces manuels