Add support of 'weight' parameter at multipath route. Minor changes on script output.
This commit is contained in:
@@ -21,28 +21,51 @@ log_file=/var/log/check_net.log
|
||||
# -
|
||||
# - Example:
|
||||
# - _INITIAL_DEVICE_LIST="eth0:192.168.63.254 ppp-light"
|
||||
# - _INITIAL_DEVICE_LIST="eth11:172.16.12.254 eth10:172.16.13.254 eth9:172.16.11.254"
|
||||
# -
|
||||
_INITIAL_DEVICE_LIST="ppp-ckubu"
|
||||
_INITIAL_DEVICE_LIST=""
|
||||
|
||||
|
||||
# - Set to "false" uses "0.0.0.0" as remote gateway instead of the real address
|
||||
# -
|
||||
USE_REMOTE_GATEWAY_ADDRESS=true
|
||||
#USE_REMOTE_GATEWAY_ADDRESS=false
|
||||
|
||||
# - Set default gw (roundrobin)
|
||||
# -
|
||||
# - !! SET_MULTIPLE_DEFAULT_GW=true does not work for now..
|
||||
# -
|
||||
SET_MULTIPLE_DEFAULT_GW=false
|
||||
#SET_MULTIPLE_DEFAULT_GW=true
|
||||
|
||||
|
||||
# - Set to false uses "0.0.0.0" as default gateway adress instaed of real remote address
|
||||
# -
|
||||
USE_DEFAULT_GW_ADDRESS=true
|
||||
#USE_DEFAULT_GW_ADDRESS=false
|
||||
|
||||
|
||||
# - Set up the default route to be a multipath route.
|
||||
# -
|
||||
# - This will balance the routes over all uplink providers (instead of
|
||||
# - a prefered default route.
|
||||
# -
|
||||
# - Note:
|
||||
# - that balancing will not be perfect, as it is route based, and routes
|
||||
# - are cached. This means that routes to often-used sites will always be
|
||||
# - over the same provider.
|
||||
# -
|
||||
# - !! At least within this script, multipath route only works as exspected
|
||||
# - if all providers have a static uplink (and do not nat the uplink?)
|
||||
# -
|
||||
SET_MULTIPLE_DEFAULT_GW=false
|
||||
#SET_MULTIPLE_DEFAULT_GW=true
|
||||
|
||||
# - MULTIPATH_DEVICE_WEIGHT
|
||||
# -
|
||||
# - This a weight for (inet) devices of a multipath route reflecting
|
||||
# - its relative bandwidth or quality.
|
||||
# -
|
||||
# - The default value for weight of any device is '1'
|
||||
# -
|
||||
# - Example:
|
||||
# - MULTIPATH_DEVICE_WEIGHT="eth9:2 eth10:1 eth11:4"
|
||||
# -
|
||||
MULTIPATH_DEVICE_WEIGHT="eth9:2 eth11:4"
|
||||
|
||||
|
||||
# - Hostnames for ping test
|
||||
# -
|
||||
# - Note: The first two reachable hosts will be used for ping test.
|
||||
@@ -67,9 +90,9 @@ content_type='Content-Type: text/plain;\n charset="utf-8"'
|
||||
# -
|
||||
# - Example:
|
||||
# - ========
|
||||
# - local ip 192.168.10.1 through extern interface ppp-st and
|
||||
# - local ip 192.168.10.1 through extern interface eth10 and
|
||||
# - local ip 192.168.10.13 through extern interface ppp-surf1
|
||||
# - rule_local_ips="ppp-st:192.168.10.1 ppp-surf1:192.168.10.13"
|
||||
# - rule_local_ips="eth10:192.168.10.1 ppp-surf1:192.168.10.13"
|
||||
# -
|
||||
rule_local_ips=""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user