Editing /etc/network/interfaces on a remote host can disconnect you. Prefer out-of-band access SSH.

In this scenario, you have one main public IP for the host and you may have extra additional single public IPs for VMs. Most commonly these IPs live in the same upstream L2 network (e.g., the same /26), so VMs can use the provider gateway directly.

What you often have after installation (example)

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

iface lo inet6 loopback

auto enp41s0
iface enp41s0 inet static
        address 65.109.19.92/26
        gateway 65.109.19.65
        up route add -net 65.109.19.64 netmask 255.255.255.192 gw 65.109.19.65 dev enp41s0
# route 65.109.19.64/26 via 65.109.19.65

iface enp41s0 inet6 static
        address 2a01:4f9:5a:115f::7a/64
        gateway fe80::1

Recommended Proxmox layout (bridge vmbr0)

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

iface lo inet6 loopback

auto enp41s0
iface enp41s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 65.109.19.101/26
        gateway 65.109.19.65
        up route add -net 65.109.19.64 netmask 255.255.255.192 gw 65.109.19.65 dev enp41s0
        route 65.109.19.64/26 via 65.109.19.65
        bridge-ports enp41s0
        bridge-stp off
        bridge-fd 0

iface vmbr0 inet6 static
        address 2a01:4f9:5a:115f::8f/64
        gateway fe80::1

Using additional single public IPs for VMs

Multiple additional single public IPs (not an additional subnet), you can assign them directly to VMs connected to vmbr0:

  • Attach the VM’s network interface to vmbr0
  • Configure the VM with:
    • the assigned additional single public IP
    • subnet mask and gateway — we provide these values via our ticket system
  • If your provider uses the same upstream network for these IPs, the gateway will typically match the host’s gateway, but always follow the values provided in the ticket.

MAC requirement (important):
Changing/assigning a MAC address is done only via the ticket system. The data center requires that you must use the MAC address assigned specifically for that IP. In Proxmox, set the VM’s NIC MAC to the exact value provided in the ticket.