#!/bin/sh set -e # 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 #iface vmbr0 inet6 auto iface vmbr0 inet dhcp bridge-ports enp2s0f0 bridge-stp off bridge-fd 0 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