4 ip route, 5 ip route default – Fortinet 548B User Manual

Page 430

Advertising
background image

- 430 -

8.2.2.4 ip route

This command configures a static route.

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

8.2.2.5 ip route default

This command configures the default route.

Syntax

ip route default <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

Advertising