Westermo RedFox Series User Manual

Page 404

Advertising
background image

Westermo OS Management Guide

Version 4.17.0-0

❼ Static configuration of routes, including the default route, competes with

routes learned on DHCP client interfaces as well as routes from dynamic
routing protocols. An obvious benefit of this is to have a statically configured
fallback default route that is activated automatically when no better route
is available. This is often referred to as a floating static route.

❼ The default gateway setting ”ip default-gateway <IPADDR>” is depre-

cated. Setting up a default gateway in the CLI will install a static default
route with distance 1. Use the route command instead (see

section 19.7.3

,

notice the new keyword ’default’ for ’0.0.0.0/0’

Example

example:/config/#> ip route default 192.168.11.1 10

In the example below interface vlan3 is configured to acquire its IP address via
DHCP with distance 1. The system default interface, vlan1 is moved to distance
200 and a floating static route to a gateway reachable via vlan1 is setup with
a distance of 200 as well. The default route acquired by DHCP on vlan3 will be
installed with distance 1 and will be made the active route.

Example

example:/config/#> interface vlan1
example:/config/iface-vlan1/#> address 192.168.11.2/24
example:/config/iface-vlan1/#> distance 200
example:/config/iface-vlan1/#> end
example:/config/#> interface vlan3
example:/config/iface-vlan3/#> inet dhcp
example:/config/iface-vlan3/#> distance 1
example:/config/iface-vlan3/#> end
example:/config/#> ip default 192.168.11.1 200
example:/config/#>

If no DHCP server is present, an interface configured to use DHCP client for ad-
dress assignment will end up without any IP address. The exception is the DHCP
client interface with the best distance, which will always acquire a link-local IP ad-
dress in the range 169.254.0.0/16 in addition to any address assigned via DHCP.
The link-local address is taken from the 169.254.0.0/16 range such that address
collisions are avoided and that an interface is likely to get the same address every
time it comes up.

404

➞ 2015 Westermo Teleindustri AB

Advertising
This manual is related to the following products: