Lesson 4 of 9 · 26m
Networking: Bridges, VLANs, and Failure Domains
Linux bridge fundamentals, VLAN-aware designs, bonds, NAT, and how to reason about guest traffic before production depends on it.
Proxmox networking is mostly Linux networking wearing a web UI. That is good news if you already know bridges and VLANs, and dangerous news if you expect a hidden virtualization appliance to abstract away layer-two mistakes. Draw the path before clicking Apply.
vmbr0 is a Linux bridge
A bridge is a virtual Ethernet switch in the host kernel. A VM NIC attached to vmbr0 behaves like a device plugged into that switch. The host can also put its management IP on the bridge, which is common because the physical NIC is enslaved underneath it.
# /etc/network/interfaces
auto vmbr0
iface vmbr0 inet static
address 192.0.2.10/24
gateway 192.0.2.1
bridge-ports enp3s0
bridge-stp off
bridge-fd 0The dangerous part is that editing this file wrong can remove remote access. Use the web UI's network change workflow where possible, or test with ifreload -a while out-of-band access is available.
VLAN-aware bridging
For a trunked switch port, enable VLAN awareness on the bridge and tag individual guest interfaces. The host network may remain untagged while guest networks are segmented.
# VM NIC carrying VLAN 20
net0: virtio=BC:24:11:77:00:20,bridge=vmbr0,tag=20A VLAN-aware bridge means Proxmox will honor tags per guest port. It does not excuse an incorrectly configured physical switch. If only some guests pass traffic, compare switch trunk allowed VLANs before blaming the hypervisor.
NAT is fine for labs, poor for businesses
auto vmbr1
iface vmbr1 inet static
address 10.20.30.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s 10.20.30.0/24 -o vmbr0 -j MASQUERADENAT hides guests behind the host. It is useful for a laptop lab or a disposable test network, but it complicates inbound access, monitoring, firewall rules, and troubleshooting. Prefer routed VLANs when the network team exists and will answer email.
Bonds and redundancy
A bond combines physical links for redundancy or throughput. active-backup is simple and predictable; LACP (802.3ad) requires switch-side configuration and hashing awareness. Neither magically survives a misconfigured upstream switch or a single power supply in the host.
Field notes
- Changing bridge settings while connected through that bridge is the classic self-lockout. Have IPMI, a console, or a second path before experimenting.
- Interface names such as
enp3s0are stable only until hardware or firmware topology changes. Record physical port mappings. - A guest can be network-perfect and still unreachable because its internal firewall blocks the traffic. Test from host, same subnet, and gateway separately.
- Proxmox SDN can model zones and VNets, but small environments should master plain bridges first.
- If multicast or corosync traffic crosses production VLANs without planning, clustering behavior becomes a network design problem.
Was this lesson helpful?