IP Routing Protocol-Independent Commands
691
FILE LOCATION: C:\Users\gina\Desktop\Checkout_new\CLI Folders\Dell Contax
CLI\files\IP_Routing.fm
D E L L CO N F I D E N T I A L – P R E L I MI N A RY 5/ 1 5 /1 2 - F O R PR O O F O N LY
43
IP Routing Protocol-Independent
Commands
ip route
Use the
ip route
Global Configuration mode command to configure static
routes. Use the
no
form of this command to remove static routes.
Syntax
ip route
prefix
{
mask
|
prefix-length
}
ip-address [metric distance] [reject-
route]
no ip route
prefix
{
mask
|
prefix-length
} [
ip-address
]
Parameters
•
prefix
—Specifies the IP address that is the IP route prefix for the
destination IP.
•
mask
—Specifies the network subnet mask of the IP address prefix.
•
prefix-length
—Specifies the number of bits that comprise the IP address
prefix. The prefix length must be preceded by a forward slash (/). (Range:
0–32)
•
ip-address
—Specifies the IP address or IP alias of the next hop that can be
used to reach the network.
•
metric
distance
—Specifies an administrative distance. (Range: 1–255)
•
reject-route
—Stops routing to the destination network via all gateways.
Default Configuration
The default administrative distance is 1.