![]() | Command: ip route |
Creates a static route.
ip route {A.B.C.D} {A.B.C.D} {A.B.C.D} enable
ip route {A.B.C.D} {A.B.C.D} {A.B.C.D} disable
ip route {A.B.C.D} {A.B.C.D} {A.B.C.D} <1-65535>
ip route {A.B.C.D} {A.B.C.D} {A.B.C.D} weight <1-65535>
no ip route {A.B.C.D} {A.B.C.D} {A.B.C.D}
None
Global Configuration
| Parameter | Description |
|---|---|
|
{A.B.C.D} {A.B.C.D} {A.B.C.D} | The first and second <A.B.C.D> specify the IP address and mask for the route destination. 255.255.255.255 is the black hole route. The third <A.B.C.D> specifies the next-hop address. |
|
<1-65535> | Specifies the cost for a newly created static route. |
|
disable | Disables the route. |
|
enable | Enables the route. |
|
weight <1-65535> | Changes the weight (cost) of an existing static route. |