]> git.proxmox.com Git - ovs.git/commitdiff
Document how to do Bond + Bridge + VLAN + MTU.
authorThomas Goirand <zigo@debian.org>
Mon, 24 Jun 2019 08:25:11 +0000 (10:25 +0200)
committerThomas Goirand <zigo@debian.org>
Mon, 24 Jun 2019 08:25:11 +0000 (10:25 +0200)
debian/changelog
debian/openvswitch-switch.README.Debian

index 9ffadf5831e26fe64bee1de3cee4a8a485d47859..48abdae9a378d44a4b7cf8498f966ad0fcd9ae72 100644 (file)
@@ -1,6 +1,7 @@
 openvswitch (2.10.0+2018.08.28+git.8ca7c82b7d+ds1-13) UNRELEASED; urgency=medium
 
   * Some fixups in debian/ifupdown.sh to allow setting-up the MTU.
+  * Document how to do Bond + Bridge + VLAN + MTU.
 
  -- Thomas Goirand <zigo@debian.org>  Mon, 24 Jun 2019 08:53:33 +0200
 
index f8dbd1bc303d17835d5b26122fc68f53ac33756a..2bd6681a6e168a1aed00198fbceb32054278b9fe 100644 (file)
@@ -163,6 +163,59 @@ ex 8: Create and destroy bridges.
 ifup --allow=ovs $list_of_bridges
 ifdown --allow=ovs $list_of_bridges
 
+ex 9: Bond + Bridge + VLAN + MTU
+
+allow-bond0 eth2
+iface eth2 inet manual
+    ovs_type OVSPort
+    ovs_bonds bond0
+    ovs_mtu 9000
+
+# Interface eth3
+#auto eth3
+allow-bond0 eth3
+iface eth3 inet manual
+    ovs_type OVSPort
+    ovs_bonds bond0
+    ovs_mtu 9000
+
+# Interface bond0
+auto bond0
+allow-br-ex bond0
+iface bond0 inet manual
+    ovs_bridge br-ex 
+    ovs_type OVSBond
+    ovs_bonds eth2 eth3
+    ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast
+    ovs_mtu 9000
+    up ifup eth2
+    up ifup eth3
+    up ovs-vsctl set Interface ${IFACE} mtu_request=${IF_OVS_MTU}
+
+# Interface vlan81
+auto vlan871
+allow-br-ex vlan81
+iface vlan81 inet static
+    ovs_type OVSIntPort
+    ovs_bridge br-ex
+    ovs_options tag=81
+    ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
+    ovs_mtu 9000
+    address 192.168.100.2
+    network 192.168.100.0
+    netmask 255.255.255.0
+    broadcast 192.168.100.255
+    gateway 192.168.100.1
+
+# Interface br-ex
+auto br-ex
+allow-ovs br-ex
+iface br-ex inet manual
+        ovs_type OVSBridge
+        ovs_ports bond0 vlan81
+        ovs_mtu 9000
+
+
 Notes on dependencies:
 ---------------------