diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-10-24 08:20:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-24 08:20:17 -0500 |
commit | 3bc16364053fe1656be00e75990046f6108382a2 (patch) | |
tree | b4e53346e58291477546c975c9c8c175eda2d881 /docs/load-balancing.rst | |
parent | ae1d96acdb224fb861ec1ffac9357d70915c0fec (diff) | |
parent | 0bc0ceb3616a093e026f65d5d296715874365162 (diff) | |
download | vyos-documentation-3bc16364053fe1656be00e75990046f6108382a2.tar.gz vyos-documentation-3bc16364053fe1656be00e75990046f6108382a2.zip |
Merge pull request #136 from currite/avoid-rule0-at-wlb
Delete faulty rule 0 in example
Diffstat (limited to 'docs/load-balancing.rst')
-rw-r--r-- | docs/load-balancing.rst | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/load-balancing.rst b/docs/load-balancing.rst index 0f598b6e..fe0084bf 100644 --- a/docs/load-balancing.rst +++ b/docs/load-balancing.rst @@ -19,9 +19,9 @@ lets assume we have two dhcp WAN interfaces and one LAN (eth2) set load-balancing wan interface-health eth0 nexthop 'dhcp' set load-balancing wan interface-health eth1 nexthop 'dhcp' - set load-balancing wan rule 0 inbound-interface 'eth2' - set load-balancing wan rule 0 interface eth0 - set load-balancing wan rule 0 interface eth1 + set load-balancing wan rule 1 inbound-interface 'eth2' + set load-balancing wan rule 1 interface eth0 + set load-balancing wan rule 1 interface eth1 Balancing Rules --------------- @@ -30,11 +30,11 @@ Interfaces, their weight and the type of traffic to be balanced are defined in n The rule sets are executed in numerical order against outgoing packets. In case of a match the packet is sent through an interface specified in the matching rule. If a packet doesn't match any rule it is sent by using the system routing table. Rule numbers can't be changed. -Create a load balancing rule, rule can be a number between 0...4294967295: +Create a load balancing rule, rule can be a number between 1 and 9999: .. code-block:: sh - vyos@vyos# set load-balancing wan rule 0 + vyos@vyos# set load-balancing wan rule 1 Possible completions: description Description for this rule > destination Destination @@ -55,8 +55,8 @@ Per default outbound traffic is distributed randomly across available interfaces .. code-block:: sh - set load-balancing wan rule 0 interface eth0 weight 2 - set load-balancing wan rule 0 interface eth1 weight 1 + set load-balancing wan rule 1 interface eth0 weight 2 + set load-balancing wan rule 1 interface eth1 weight 1 66% traffic is routed to eth0 and eth1 get 33% of traffic. @@ -254,4 +254,4 @@ Restart .. code-block:: sh - restart wan-load-balance
\ No newline at end of file + restart wan-load-balance |