summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-31 10:50:43 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-31 10:50:43 +0100
commit3e538495e8c495cfd90bfd93114fd35ab066f9e7 (patch)
treecd4c7c2bfba5f9caa1b8d9a79e6076434bc64d78
parent395a55091964acb45659828ba2bd4595fb4774d6 (diff)
downloadvyos-documentation-3e538495e8c495cfd90bfd93114fd35ab066f9e7.tar.gz
vyos-documentation-3e538495e8c495cfd90bfd93114fd35ab066f9e7.zip
bond: add vyos example
-rw-r--r--docs/interfaces/bond.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/interfaces/bond.rst b/docs/interfaces/bond.rst
index 0f923849..3445dc57 100644
--- a/docs/interfaces/bond.rst
+++ b/docs/interfaces/bond.rst
@@ -295,6 +295,24 @@ Member Interfaces
Example
-------
+The following configuration on VyOS applies to all following 3rd party vendors.
+It creates a bond with two links and VLAN 10, 100 on the bonded interfaces with
+a per VIF IPv4 address.
+
+.. code-block:: none
+
+ # Create bonding interface bond0 with 802.3ad LACP
+ set bonding bond0 hash-policy 'layer2'
+ set bonding bond0 mode '802.3ad'
+
+ # Add the required vlans and IPv4 addresses on them
+ set bonding bond0 vif 10 address 192.168.0.1/24
+ set bonding bond0 vif 100 address 10.10.10.1/24
+
+ # Add the member interfaces to the bonding interface
+ set interfaces bonding bond0 member interface eth1
+ set interfaces bonding bond0 member interface eth2
+
Cisco
^^^^^