From: Zoltán Felleg Date: Tue, 10 Sep 2024 08:28:27 +0000 (+0200) Subject: Updated lxchost.in (added 10Gb host network interface). X-Git-Url: http://git.useribm.hu/?a=commitdiff_plain;h=f47c835a2a09c7514211980f9843318fbf2883bb;p=user-lxc.git Updated lxchost.in (added 10Gb host network interface). --- diff --git a/sources/lxchost.in/01_setupnetworking.sh b/sources/lxchost.in/01_setupnetworking.sh index 58c4c07..f980a40 100755 --- a/sources/lxchost.in/01_setupnetworking.sh +++ b/sources/lxchost.in/01_setupnetworking.sh @@ -3,13 +3,18 @@ set -x # network interfaces are: # ens33: used for internal host network -# ens34: used for internal container bridge -# ens35: used for external container bridge +# ens34: used for 10Gb host network +# ens35: used for internal container bridge +# ens36: used for external container network INTERNAL_DEVICE=ens33 -BRI_DEVICE=ens34 -EXTERNAL_DEVICE=ens35 +TENG_DEVICE=ens34 +BRI_DEVICE=ens35 +EXTERNAL_DEVICE=ens36 + +INTERNAL_CONTAINER_BRIDGE_NAME=bri +INTERNAL_CONTAINER_BRIDGE_DEVICE=${INTERNAL_CONTAINER_BRIDGE_NAME}-dev nmcli --terse connection show | grep --invert-match ':lo$' | while read CONNECTION_LINE @@ -37,8 +42,19 @@ nmcli connection add \ nmcli connection add \ connection.autoconnect yes \ - connection.id bri \ - connection.interface-name bri \ + connection.id 10g \ + connection.interface-name $TENG_DEVICE \ + connection.type 802-3-ethernet \ + ipv4.addresses "172.24.107.30/24" \ + ipv4.method "manual" \ + ipv6.addresses "2001:1aa1:000a:006b:0250:56ff:fead:6d74/64" \ + ipv6.method "manual" \ + save yes + +nmcli connection add \ + connection.autoconnect yes \ + connection.id $INTERNAL_CONTAINER_BRIDGE_NAME \ + connection.interface-name $INTERNAL_CONTAINER_BRIDGE_DEVICE \ connection.type bridge \ bridge.stp no \ ipv4.method "disabled" \ @@ -49,7 +65,7 @@ nmcli connection add \ connection.autoconnect yes \ connection.id brislave \ connection.interface-name $BRI_DEVICE \ - connection.master bri \ + connection.master $INTERNAL_CONTAINER_BRIDGE_DEVICE \ connection.slave-type bridge \ connection.type 802-3-ethernet \ save yes