Update Proxmox/ThunderboltNetwork.md
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
Main idea is from [here](https://gist.github.com/scyto/76e94832927a89d977ea989da157e9dc), but I like to be able to copy paste a bit more comfortable.
|
||||
|
||||
## on all Nodes
|
||||
### On all Nodes
|
||||
|
||||
Optional package to track which node can see which other one.
|
||||
```python
|
||||
@@ -26,65 +26,6 @@ thunderbolt-net
|
||||
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
|
||||
|
||||
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**
|
||||
```python
|
||||
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 3**
|
||||
```python
|
||||
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
|
||||
|
||||
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.
|
||||
```python
|
||||
tee -a /etc/systemd/network/00-thunderbolt0.link <<EOF
|
||||
@@ -152,6 +93,67 @@ EOF
|
||||
chmod +x /etc/network/if-up.d/restart-frr
|
||||
```
|
||||
|
||||
### Different settings per Node!
|
||||
|
||||
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
|
||||
|
||||
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**
|
||||
```python
|
||||
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 3**
|
||||
```python
|
||||
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
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
Open VTYSH CLI.
|
||||
```python
|
||||
vtysh
|
||||
|
||||
Reference in New Issue
Block a user