Update Proxmox/ThunderboltNetwork.md
This commit is contained in:
@@ -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 <<EOF
|
||||
allow-hotplug en05
|
||||
iface en05 inet manual
|
||||
mtu 65520
|
||||
|
||||
allow-hotplug en06
|
||||
iface en06 inet manual
|
||||
mtu 65520
|
||||
EOF
|
||||
```
|
||||
|
||||
**Node 2** at the beginning below default auto lo.
|
||||
**Node 3**
|
||||
```python
|
||||
auto lo:0
|
||||
iface lo:0 inet static
|
||||
address 10.0.0.82/32
|
||||
```
|
||||
sed -i '/iface lo inet loopback/a\
|
||||
\
|
||||
auto lo:0\niface lo:0 inet static\n address 10.0.0.83/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
|
||||
|
||||
**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 <<EOF
|
||||
allow-hotplug en05
|
||||
iface en05 inet manual
|
||||
mtu 65520
|
||||
|
||||
allow-hotplug en06
|
||||
iface en06 inet manual
|
||||
mtu 65520
|
||||
EOF
|
||||
```
|
||||
|
||||
Add the thunderbolt links.
|
||||
|
||||
Reference in New Issue
Block a user