no ip route
ip addr
subnetmask
{
ip-address — IP address of destination interface.
•
subnet-mask — Subnet mask of destination interface.
•
prefix-length — Length of prefix. Must be preceded with a forward slash (/). (Range: 0-32
•
bits)
nextHopRtr — 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
For the static routes to be visible, you must:
•
Enable ip routing globally.
•
Enable ip routing for the interface.
•
Confirm that the associated link is also up.
Example
The following example identifies the
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
next-hop-ip
ip route default
next-hop-ip
no ip route default
next-hop-ip — IP address of the next hop router.
•
prefix length
nextHopRtr
|
}
ip-address subnet-mask, next-hop-ip
preference
[
]
preference
[
]
preference
[
]
and a preference
IP Routing Commands
619