Command: ip route

Home | Command modes | Alphabetical listing

ip route

Creates a static route.

Syntax

Default

None

Command mode

Global Configuration

Command parameters

ParameterDescription

{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.