5 ip route default-next-hop, 6 ip route precedence – Fortinet MR1 User Manual

Page 314

Advertising
background image

314

Syntax

ip route <networkaddr> <subnetmask> [ <nexthopip> [<1-255 >] ]

no ip route <networkaddr> <subnetmask> [ { <nexthopip> | <1-255 > } ]

<ipaddr>

- A valid IP address .

<subnetmask> - A valid subnet mask.

<nexthopip> - IP address of the next hop router.

<1-255> - The precedence value of this route. The range is 1 to 255.

no - delete all next hops to a destination static route. If the optional <nextHopRtr> parameter is
designated, the next hop is deleted and if the optional precedence value is designated, the precedence
value of the static route is reset to its default value 1.

Default Setting

None

Command Mode

Global Config

6.2.2.5 ip route default-next-hop

This command configures the default route.

Syntax

ip route default-next-hop <nexthopip> [1-255]

<nexthopip>

-

IP address of the next hop router.

<1-255> - Precedence value of this route.

Default Setting

None

Command Mode

Global Config

6.2.2.6 ip route precedence

This command sets the default precedence for static routes. Lower route preference values
are preferred when determining the best route. The "ip route" and "ip default-next-hop"
commands allow you to optionally set the precedence of an individual static route. The
default precedence is used when no precedence is specified in these commands. Changing

Advertising