2024-02-26 16:47:11 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
2024-05-07 14:46:59 +00:00
|
|
|
# For the default networking, Proxmox requires that a bridge device exits, and
|
|
|
|
# does NOT recognize configuration dropped into /etc/network/interfaces.d/
|
|
|
|
|
|
|
|
cat << EOIface0 > /etc/network/interfaces.d/vmbr0
|
2024-02-26 16:47:11 +00:00
|
|
|
auto vmbr0
|
2024-05-07 14:46:59 +00:00
|
|
|
#iface vmbr0 inet6 auto
|
2024-02-26 16:47:11 +00:00
|
|
|
iface vmbr0 inet dhcp
|
|
|
|
bridge-ports enp2s0f0
|
|
|
|
bridge-stp off
|
|
|
|
bridge-fd 0
|
2024-05-07 14:46:59 +00:00
|
|
|
EOIface0
|
|
|
|
|
|
|
|
cat << EOIface1 > /etc/network/interfaces.d/vmbr1
|
|
|
|
auto vmbr1
|
|
|
|
#iface vmbr1 inet6 auto
|
|
|
|
iface vmbr1 inet static
|
|
|
|
address 10.4.0.1
|
|
|
|
netmask 255.255.0.0
|
|
|
|
bridge-ports none
|
|
|
|
bridge-stp off
|
|
|
|
bridge-fd 0
|
|
|
|
EOIface1
|