summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcurrite <sll@disroot.org>2019-10-24 11:13:37 +0200
committercurrite <sll@disroot.org>2019-10-24 11:13:37 +0200
commit0bc0ceb3616a093e026f65d5d296715874365162 (patch)
treeb20351a662b0f6559828aa5ba42af29ef07b1318
parentbd571d5df532a2c6ce00b8ca09c4756dced7a82b (diff)
downloadvyos-documentation-0bc0ceb3616a093e026f65d5d296715874365162.tar.gz
vyos-documentation-0bc0ceb3616a093e026f65d5d296715874365162.zip
Delete faulty rule 0 in example
-rw-r--r--docs/load-balancing.rst16
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