live-proxmox/live-build/config/hooks/normal/9999-write-vmbr0-iface.hook...

26 lines
547 B
Plaintext
Raw Permalink Normal View History

#!/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
auto vmbr0
2024-05-07 14:46:59 +00:00
#iface vmbr0 inet6 auto
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