summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Spöhel <simon@spoehel.ch>2021-04-14 09:45:07 +0000
committerSimon Spöhel <simon@spoehel.ch>2021-04-14 09:45:07 +0000
commit888c339248495a5fc46acd4775c1a09ed71731f3 (patch)
tree8c76620f297763c1a1a26792e6e97b64f4bdc118
parentstart openvswitch version. (diff)
downloadcompute-tools-tmp-openvswitch.tar.xz
compute-tools-tmp-openvswitch.zip
Updating openvswitch documentation.tmp-openvswitch
-rw-r--r--share/doc/HOST-SETUP.txt156
1 files changed, 83 insertions, 73 deletions
diff --git a/share/doc/HOST-SETUP.txt b/share/doc/HOST-SETUP.txt
index e4b4caf..8603a06 100644
--- a/share/doc/HOST-SETUP.txt
+++ b/share/doc/HOST-SETUP.txt
@@ -5,7 +5,7 @@ compute-tools: Host Setup
1. Debian Packages
-------------------
-apt install ifenslave vlan openvswitch-switch
+apt install openvswitch-switch
2. Boot Parameters
@@ -53,98 +53,108 @@ sysctl -p
3.2.1 Bridge: 1 Interface, standalone, DHCP
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-cat > /etc/network/interfaces << EOF
-# /etc/network/interfaces
+cat > /etc/systemd/network/eno1.network << EOF
+[Match]
+Name=eno1
-source /etc/network/interfaces.d/*
-
-auto lo
-iface lo inet loopback
+[Network]
+BindCarrier=bridge0
+LinkLocalAddressing=no
+EOF
-allow-bridge0 eno1
-iface eno1 inet manual
- ovs_bridge bridge0
- ovs_type OVSPort
+cat > /etc/systemd/network/bridge0.network << EOF
+[Match]
+Name=bridge0
-allow-ovs bridge0
-iface bridge0 inet dhcp
- ovs_type OVSBridge
- ovs_ports eno1
+[Network]
+DHCP=ipv4
EOF
+ovs-vsctl add-br bridge0
+ovs-vsctl add-port bridge0 eno1
+
3.2.2 Bridge: 1 Interface, standalone, static
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-cat > /etc/network/interfaces << EOF
-# /etc/network/interfaces
-
-source /etc/network/interfaces.d/*
-
-auto lo
-iface lo inet loopback
+cat > /etc/systemd/network/eno1.network << EOF
+[Match]
+Name=eno1
-allow-bridge0 eno1
-iface eno1 inet manual
- ovs_bridge bridge0
- ovs_type OVSPort
+[Network]
+BindCarrier=bridge0
+LinkLocalAddressing=no
+EOF
-allow-ovs bridge0
-iface bridge0 inet static
- address 10.0.0.2
- gateway 10.0.0.1
- netmask 24
+cat > /etc/systemd/network/bridge0.network << EOF
+[Match]
+Name=bridge0
- ovs_type OVSBridge
- ovs_ports eno1
+[Network]
+DHCP=no
+Address=10.0.0.2/24
+Gateway=10.0.0.1
EOF
+ovs-vsctl add-br bridge0
+ovs-vsctl add-port bridge0 eno1
+
3.2.3 Bridge: 3 physical Interfaces, vlan, bonding, static
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-cat > /etc/network/interfaces << EOF
-# /etc/network/interfaces
-
-source /etc/network/interfaces.d/*
-
-auto lo
-iface lo inet loopback
-
-allow-hotplug eno1
-iface eno1 inet dhcp
-
-allow-bond0 eno2
-iface eno2 inet manual
- ovs_type OVSPort
- ovs_bonds bond0
-
-allow-bond0 eno3
-iface eno3 inet manual
- ovs_type OVSPort
- ovs_bonds bond0
-
-allow-bridge0 bond0
-iface bond0 inet manual
- ovs_bridge bridge0
- ovs_type OVSBond
- ovs_bonds eno2 eno3
- ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast other_config:bond-detect-mode=miimon other_config:bond-miimon-interval=100 other_config:bond_updelay=200
-
-allow-ovs bridge0
-iface bridge0 inet manual
- ovs_type OVSBridge
- ovs_ports bond0 bridge-100
-
-# fake bridge for vlan 100
-allow-bridge0 bridge-100
-iface bridge-100 inet static
- ovs_type OVSBridge
- ovs_options bridge0 100
- address 10.100.0.2
- netmask 24
+cat > /etc/systemd/network/eno1.network << EOF
+[Match]
+Name=eno1
+
+[Network]
+DHCP=ipv4
+EOF
+
+cat > /etc/systemd/network/eno2.network << EOF
+[Match]
+Name=eno2
+
+[Network]
+BindCarrier=bridge0
+LinkLocalAddressing=no
+EOF
+
+cat > /etc/systemd/network/eno3.network << EOF
+[Match]
+Name=eno3
+
+[Network]
+BindCarrier=bridge0
+LinkLocalAddressing=no
+EOF
+
+cat > /etc/systemd/network/bridge0.network << EOF
+[Match]
+Name=bridge0
+
+[Network]
+LinkLocalAddressing=no
+EOF
+
+cat > /etc/systemd/network/bridge-100.network << EOF
+[Match]
+Name=bridge-100
+
+[Network]
+Address=10.100.0.2/24
EOF
+ovs-vsctl add-br bridge0
+ovs-vsctl add-bond bridge0 bond0 eno2 eno3 \
+ bond_mode=balance-tcp \
+ lacp=active \
+ other_config:lacp-time=fast \
+ other_config:bond-detect-mode=miimon \
+ other_config:bond-miimon-interval=100 \
+ other_config:bond_updelay=200
+ trunks=100 \
+ovs-vsctl add-br bridge-100 bridge0 100
4. Enabling user namespace for unprivileged containers
------------------------------------------------------