From 7c2783f4b73d485475e3e62afa2301bd496d33c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zolt=C3=A1n=20Felleg?= Date: Wed, 25 Nov 2020 11:00:04 +0100 Subject: [PATCH] Updated vhost1 and vhost2 (added huawei gsm modem to network setup script). --- sources/vhost1.usr/01_setupnetworking.sh | 17 +++++++++++++++++ sources/vhost2.usr/01_setupnetworking.sh | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/sources/vhost1.usr/01_setupnetworking.sh b/sources/vhost1.usr/01_setupnetworking.sh index 2ddf741..d68c081 100755 --- a/sources/vhost1.usr/01_setupnetworking.sh +++ b/sources/vhost1.usr/01_setupnetworking.sh @@ -11,6 +11,7 @@ set -x # ens2f2: port 2 of PCIe NetXtreme, unused # ens2f3: port 3 of PCIe NetXtreme, unused # enp0s29f0u2: IMM +# enp0s29f7u6: Huawei E3372H-320 LTE USB modem # ibs4: port 1 of Mellanox ConnectX-2, used for mlx1 network # ibs4d1: port 2 of Mellanox ConnectX-2, used for mlx2 network @@ -43,6 +44,9 @@ MLX1_CONNECTION_DEVICE=ibs4 MLX2_CONNECTION_NAME=mlx2 MLX2_CONNECTION_DEVICE=ibs4d1 +HUAWEI_CONNECTION_NAME=huawei +HUAWEI_CONNECTION_DEVICE=enp0s29f7u6 + nmcli connection delete $INTERNAL_BRIDGE_NAME nmcli connection delete $INTERNAL_BOND_NAME @@ -61,6 +65,8 @@ nmcli connection delete $MLX1_CONNECTION_NAME nmcli connection delete $MLX1_CONNECTION_DEVICE nmcli connection delete $MLX2_CONNECTION_NAME nmcli connection delete $MLX2_CONNECTION_DEVICE +nmcli connection delete $HUAWEI_CONNECTION_NAME +nmcli connection delete $HUAWEI_CONNECTION_DEVICE nmcli connection add \ @@ -73,6 +79,7 @@ nmcli connection add \ ipv4.dns-search "usr.user.hu" \ ipv4.gateway "10.228.109.254" \ ipv4.method "manual" \ + ipv4.route-metric "100" \ ipv6.method "auto" \ bridge.stp no \ save yes @@ -172,3 +179,13 @@ nmcli connection add \ ipv4.method "manual" \ ipv6.method "auto" \ save yes + +nmcli connection add \ + connection.autoconnect yes \ + connection.id $HUAWEI_CONNECTION_NAME \ + connection.interface-name $HUAWEI_CONNECTION_DEVICE \ + connection.type 802-3-ethernet \ + ipv4.method "auto" \ + ipv4.route-metric "1000" \ + ipv6.method "auto" \ + save yes diff --git a/sources/vhost2.usr/01_setupnetworking.sh b/sources/vhost2.usr/01_setupnetworking.sh index 641116c..c2576ed 100755 --- a/sources/vhost2.usr/01_setupnetworking.sh +++ b/sources/vhost2.usr/01_setupnetworking.sh @@ -11,6 +11,7 @@ set -x # ens2f2: port 2 of PCIe NetXtreme, unused # ens2f3: port 3 of PCIe NetXtreme, unused # enp0s29f0u2: IMM +# enp0s29f7u6: Huawei E3372H-320 LTE USB modem # ibs4: port 1 of Mellanox ConnectX-2, used for mlx1 network # ibs4d1: port 2 of Mellanox ConnectX-2, used for mlx2 network @@ -43,6 +44,9 @@ MLX1_CONNECTION_DEVICE=ibs4 MLX2_CONNECTION_NAME=mlx2 MLX2_CONNECTION_DEVICE=ibs4d1 +HUAWEI_CONNECTION_NAME=huawei +HUAWEI_CONNECTION_DEVICE=enp0s29f7u6 + nmcli connection delete $INTERNAL_BRIDGE_NAME nmcli connection delete $INTERNAL_BOND_NAME @@ -61,6 +65,8 @@ nmcli connection delete $MLX1_CONNECTION_NAME nmcli connection delete $MLX1_CONNECTION_DEVICE nmcli connection delete $MLX2_CONNECTION_NAME nmcli connection delete $MLX2_CONNECTION_DEVICE +nmcli connection delete $HUAWEI_CONNECTION_NAME +nmcli connection delete $HUAWEI_CONNECTION_DEVICE nmcli connection add \ @@ -73,6 +79,7 @@ nmcli connection add \ ipv4.dns-search "usr.user.hu" \ ipv4.gateway "10.228.109.254" \ ipv4.method "manual" \ + ipv4.route-metric "100" \ ipv6.method "auto" \ bridge.stp no \ save yes @@ -172,3 +179,13 @@ nmcli connection add \ ipv4.method "manual" \ ipv6.method "auto" \ save yes + +nmcli connection add \ + connection.autoconnect yes \ + connection.id $HUAWEI_CONNECTION_NAME \ + connection.interface-name $HUAWEI_CONNECTION_DEVICE \ + connection.type 802-3-ethernet \ + ipv4.method "auto" \ + ipv4.route-metric "1000" \ + ipv6.method "auto" \ + save yes -- 2.54.0