In Proxmox VE 8 and 9, configure virtual machine networking in /etc/network/interfaces. Use vmbr0 for a bridge connected to the physical interface, vmbr1 for routed additional IP addresses and a separate bridge with NAT for private VMs. Enable forwarding when needed and apply changes with ifreload -a after securing IPMI or KVM access.
Applies to: Proxmox VE 8 and 9, Linux Bridge and ifupdown2. Documentation reviewed: 6 November 2026.
Requirements
You need an installed Proxmox VE node, root access, the IP addressing and gateway provided by your data center, and IPMI/KVM console access. Confirm whether additional addresses are bridged, MAC-bound or routed to your host.
Original Unihost video tutorial (2021)
The video demonstrates the original routed-network workflow and a historical Proxmox installation. The Debian Buster and older Proxmox installation commands shown in the video are not intended for Proxmox VE 8 or 9.
Steps
Step 1. Check the current network and back up the configuration
Check interface names, routes and the existing configuration before changing anything. Do not replace the working primary-IP configuration without console access.
ip -br addr ip route cat /etc/network/interfaces cp /etc/network/interfaces /etc/network/interfaces.bak
Step 2. Configure the external bridge vmbr0
A bridged setup connects a guest to the provider network, subject to the data center’s MAC address rules. The following is a standalone example for a server where the gateway is on the same subnet.
auto lo
iface lo inet loopback
iface eno1 inet manual
auto vmbr0
iface vmbr0 inet static
address 198.51.100.10/24
gateway 198.51.100.1
bridge-ports eno1
bridge-stp off
bridge-fd 0
Connect the VM network adapter to vmbr0. An additional public IP may require a provider-assigned virtual MAC. The example must not be used with an off-link gateway or a /32 host address without adapting the provider route.
Step 3. Route additional public IPs through vmbr1
This preserves the original article’s routed approach. The example assumes the provider routes 203.0.113.0/29 to the Proxmox host. Enable IPv4 forwarding, then add vmbr1 to the existing interfaces file without replacing vmbr0.
printf "net.ipv4.ip_forward=1\n" > /etc/sysctl.d/99-proxmox-routing.conf sysctl --system
auto vmbr1
iface vmbr1 inet static
address 203.0.113.1/29
bridge-ports none
bridge-stp off
bridge-fd 0
For a VM connected to vmbr1, use 203.0.113.2/29 with gateway 203.0.113.1. Some providers instead route individual /32 addresses or require a virtual MAC; follow their exact network instructions.
Step 4. Configure NAT for private VMs
If VMs have no public IPs, create a private bridge and masquerade their outgoing connections through vmbr0. Enable IP forwarding as in Step 3. This example uses iptables NAT and assumes forwarding is permitted by the host firewall.
auto vmbr2
iface vmbr2 inet static
address 10.10.10.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up iptables -t nat -A POSTROUTING -s 10.10.10.0/24 -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s 10.10.10.0/24 -o vmbr0 -j MASQUERADE
Connect a VM to vmbr2 and assign 10.10.10.10/24 with gateway 10.10.10.1. To reach a private VM from outside, configure port forwarding or use a VPN. If the Proxmox firewall is active, check its forwarding policies as well.
Step 5. Enable VLANs when required
To use VLAN tags on a Linux bridge, add these two lines to the existing vmbr0 section. The physical switch or provider must allow those VLANs.
bridge-vlan-aware yes bridge-vids 2-4094
In the VM network adapter settings, select vmbr0 and set the required VLAN Tag, such as 100.
Step 6. Apply the network changes safely
Keep IPMI/KVM available. The command below applies changes without a reboot, but modifying the management bridge or gateway can still disconnect SSH.
ifreload -a
Verify
Check the addresses, default route, bridge membership and forwarding state. Test connectivity both from the Proxmox host and from a guest. For NAT, inspect the masquerade rule and verify external connectivity from the guest.
ip -br addr ip route bridge link sysctl net.ipv4.ip_forward iptables -t nat -S POSTROUTING
Troubleshooting
Lost SSH access after changing networking
Use IPMI/KVM, inspect the routes and restore the backup if needed.
cp /etc/network/interfaces.bak /etc/network/interfaces ifreload -a
The additional IP address does not work
Verify whether the provider supplies a routed subnet, a /32 address, or a MAC-bound bridged IP. Do not mix these models.
The NAT guest cannot access the internet
Check net.ipv4.ip_forward, the VM gateway, DNS, masquerade rules and firewall forwarding policy.
FAQ
Bridged or routed: which setup do I need?
Use bridged networking if your provider supports guest MAC addresses on the external network. Use routed networking when the provider routes an IP or subnet to your Proxmox host.
How do I add a second IP to a VM?
Check the provider’s addressing model, attach the VM to the appropriate bridge, then configure the IP, prefix and gateway inside the guest.
How do I apply network changes without a reboot?
Run ifreload -a or use Apply Configuration in Proxmox. Keep KVM/IPMI access available because management connectivity may still be interrupted.
How do I set up NAT for VMs?
Create an isolated bridge, enable IPv4 forwarding and add a masquerade rule for the private subnet. Use port forwarding or a VPN for inbound access.
Related Articles
- Configuring networking on a Proxmox VE server, server model OVE
- Configuring OPNsense in a Proxmox VE Virtual Machine
- Proxmox VE documentation
Virtualization on Unihost dedicated servers
Choose infrastructure for Proxmox VE virtual machines and private networks.