diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-06-30 07:01:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-06-30 07:01:14 +0000 |
commit | 5bba39923f92b9b207728da526b7aade5ab732d4 (patch) | |
tree | bcfae48108526004367645d915fecaebbdce526a /share/doc | |
parent | Adding upstream version 20210629. (diff) | |
download | open-infrastructure-compute-tools-upstream/20210630.tar.xz open-infrastructure-compute-tools-upstream/20210630.zip |
Adding upstream version 20210630.upstream/20210630
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/doc')
-rw-r--r-- | share/doc/HOST-SETUP.txt | 168 |
1 files changed, 94 insertions, 74 deletions
diff --git a/share/doc/HOST-SETUP.txt b/share/doc/HOST-SETUP.txt index 8603a06..6b368f0 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 openvswitch-switch +apt install bridge-utils ifenslave vlan 2. Boot Parameters @@ -53,108 +53,128 @@ sysctl -p 3.2.1 Bridge: 1 Interface, standalone, DHCP ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -cat > /etc/systemd/network/eno1.network << EOF -[Match] -Name=eno1 +cat > /etc/network/interfaces << EOF +# /etc/network/interfaces -[Network] -BindCarrier=bridge0 -LinkLocalAddressing=no -EOF +source /etc/network/interfaces.d/* -cat > /etc/systemd/network/bridge0.network << EOF -[Match] -Name=bridge0 +auto lo +iface lo inet loopback -[Network] -DHCP=ipv4 -EOF +iface eno1 inet manual -ovs-vsctl add-br bridge0 -ovs-vsctl add-port bridge0 eno1 +auto bridge0 +iface bridge0 inet dhcp + bridge_ports eno1 + bridge_fd 0 + bridge_maxwait 0 + bridge_stp 0 +EOF 3.2.2 Bridge: 1 Interface, standalone, static ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -cat > /etc/systemd/network/eno1.network << EOF -[Match] -Name=eno1 +cat > /etc/network/interfaces << EOF +# /etc/network/interfaces -[Network] -BindCarrier=bridge0 -LinkLocalAddressing=no -EOF +source /etc/network/interfaces.d/* + +auto lo +iface lo inet loopback -cat > /etc/systemd/network/bridge0.network << EOF -[Match] -Name=bridge0 +iface eno1 inet manual -[Network] -DHCP=no -Address=10.0.0.2/24 -Gateway=10.0.0.1 +auto bridge0 +iface bridge0 inet static + address 10.0.0.2 + gateway 10.0.0.1 + netmask 24 + + pre-up ip link set eno1 down + pre-up ip link set eno1 up + + bridge_ports eno1 + bridge_fd 0 + bridge_maxwait 0 + bridge_stp 0 EOF -ovs-vsctl add-br bridge0 -ovs-vsctl add-port bridge0 eno1 +3.2.3 Bridge: 2 logical Interfaces, subnet, static +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3.2.3 Bridge: 3 physical Interfaces, vlan, bonding, static -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +cat > /etc/network/interfaces << EOF +# /etc/network/interfaces -cat > /etc/systemd/network/eno1.network << EOF -[Match] -Name=eno1 +source /etc/network/interfaces.d/* -[Network] -DHCP=ipv4 -EOF +auto lo +iface lo inet loopback -cat > /etc/systemd/network/eno2.network << EOF -[Match] -Name=eno2 +allow-hotplug eno1 +iface eno1 inet dhcp -[Network] -BindCarrier=bridge0 -LinkLocalAddressing=no -EOF +auto bridge0 +iface bridge0 inet static + address 10.0.0.1 + netmask 24 -cat > /etc/systemd/network/eno3.network << EOF -[Match] -Name=eno3 + pre-up ip link add name bridge0 type bridge + post-down ip link delete bridge0 type bridge -[Network] -BindCarrier=bridge0 -LinkLocalAddressing=no + bridge_fd 0 + bridge_maxwait 0 + bridge_stp 0 EOF -cat > /etc/systemd/network/bridge0.network << EOF -[Match] -Name=bridge0 -[Network] -LinkLocalAddressing=no -EOF +3.2.4 Bridge: 3 physical Interfaces, vlan, bonding, static +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -cat > /etc/systemd/network/bridge-100.network << EOF -[Match] -Name=bridge-100 +cat > /etc/network/interfaces << EOF +# /etc/network/interfaces -[Network] -Address=10.100.0.2/24 +source /etc/network/interfaces.d/* + +auto lo +iface lo inet loopback + +allow-hotplug eno1 +iface eno1 inet dhcp + +iface eno2 inet manual + +iface eno3 inet manual + +auto bond0 +iface bond0 inet manual + up ip link set bond0 up + down ip link set bond0 down + + slaves eno2 eno3 + + bond-mode 4 + bond-miimon 100 + bond-downdelay 200 + bond-updelay 200 + bond-lacp-rate 1 + bond-xmit-hash-policy layer2+3 + +iface bond0.100 inet manual + vlan-raw-device bond0 + +auto bridge-100 +iface bridge-100 inet static + address 10.100.0.2 + netmask 24 + + bridge_ports bond0.100 + bridge_fd 0 + bridge_maxwait 0 + bridge_stp 0 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 ------------------------------------------------------ |