Networking

Edit /etc/network/interfaces or add files in /etc/network/interfaces.d/ to manage interfaces.

In the snipets we considere the physical network interface to be enp2s0.

Interface using dhcp (ipv4):

auto enp2s0
iface enp2s0 inet dhcp

Interface using a static config (ipv4)

auto enp2s0
iface enp2s0 inet manual
    address 192.168.0.2/24
    gateway 192.168.0.1

Bridges

Bridges here are named vmbrX to be compatible with proxmox.

Basic bridge

This config allows vm attached to it to use the physical port enp2s0.

The host will use dhcp to configure it own ip address for its port on this bridge.

auto vmbr1
iface vmbr1 inet dhcp
    bridge-ports enp2s0
    bridge-stp off
    bridge-fd 0

Bridge not connected to a physical port

auto vmbr2
iface vmbr2 inet dhcp
    bridge-ports none
    bridge-stp off
    bridge-fd 0