From a25f4dd3082665cc2a180c0330f648433d287229 Mon Sep 17 00:00:00 2001 From: admManuel Date: Sun, 16 Jun 2024 20:37:38 +0000 Subject: [PATCH] Update Proxmox/ThunderboltNetwork.md --- Proxmox/ThunderboltNetwork.md | 51 ++++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/Proxmox/ThunderboltNetwork.md b/Proxmox/ThunderboltNetwork.md index f10f6db..e1fc905 100644 --- a/Proxmox/ThunderboltNetwork.md +++ b/Proxmox/ThunderboltNetwork.md @@ -28,7 +28,11 @@ EOF Adjust the `/etc/network/interfaces`. Remove any section that belongs to any auto added **thunderbolt0** or **thunderbolt1** interface. +**Node 1** ```python +sed -i '/iface lo inet loopback/a\ +\ +auto lo:0\niface lo:0 inet static\n address 10.0.0.81/32' /etc/network/interfaces sed -i '/^source \/etc\/network\/interfaces\.d\/\*$/d' /etc/network/interfaces sed '${/^$/d;}' /etc/network/interfaces > temp.txt && mv temp.txt /etc/network/interfaces @@ -41,29 +45,44 @@ allow-hotplug en06 iface en06 inet manual mtu 65520 EOF - -nano /etc/network/interfaces ``` -**Node 1** at the beginning below default auto lo. +**Node 2** ```python -auto lo:0 -iface lo:0 inet static - address 10.0.0.81/32 +sed -i '/iface lo inet loopback/a\ +\ +auto lo:0\niface lo:0 inet static\n address 10.0.0.82/32' /etc/network/interfaces +sed -i '/^source \/etc\/network\/interfaces\.d\/\*$/d' /etc/network/interfaces +sed '${/^$/d;}' /etc/network/interfaces > temp.txt && mv temp.txt /etc/network/interfaces + +tee -a /etc/network/interfaces < temp.txt && mv temp.txt /etc/network/interfaces -**Node 3** at the beginning below default auto lo. -```python -auto lo:0 -iface lo:0 inet static - address 10.0.0.83/32 +tee -a /etc/network/interfaces <