beautypg.com

4 ip route, 5 ip route default, Ip route - 8 – Kontron AT8902 Full Size CLI User Manual

Page 120: Ip route default - 8

background image

AT8901/2/3

AT8901/2/3 CLI Reference Manual

Page 3 - 8

Mode

Interface Config

3.2.4

ip route

This command configures a static route. The

parameter is a valid IP

address, and

is a valid subnet mask. The

parameter is a

valid IP address of the next hop router. The optional

parameter is an

integer (value from 1 to 255) that allows you to specify the preference value
(sometimes called “administrative distance”) of an individual static route. Among
routes to the same destination, the route with the lowest preference value is the route
entered into the forwarding database. By specifying the preference of a static route,
you control whether a static route is more or less preferred than routes from dynamic
routing protocols. The preference also controls whether a static route is more or less
preferred than other static routes to the same destination. A route with a preference of
255 cannot be used to forward traffic.

For the static routes to be visible, you must perform the following steps:

Enable ip routing globally.

Enable ip routing for the interface.

Confirm that the associated link is also up.

Default

preference—1

Format

ip route []

Mode

Global Config

3.2.4.1

no ip route

This command deletes all next hops to a destination static route. If you use the

parameter, the next hop is deleted. If you use the

value,

the preference value of the static route is reset to its default.

Format

no ip route [{ | ence>}]

Mode

Global Config

3.2.5

ip route default

This command configures the default route. The value for

is a valid IP

address of the next hop router. The

is an integer value from 1 to 255. A

route with a preference of 255 cannot be used to forward traffic.

Default

preference—1

Format

ip route default []

Mode

Global Config

3.2.5.1

no ip route default

This command deletes all configured default routes. If the optional

parameter is designated, the specific next hop is deleted from the configured default
route and if the optional preference value is designated, the preference of the
configured default route is reset to its default.