Skip to content

Proxmox VM Cannot Reach the Network: A Triage Tree

When a Proxmox VM suddenly loses egress, the worst reflex is to restart things without knowing which mode it runs in. This note splits the failure by whether the VM rides a Linux Bridge or NAT: first confirm whether the guest ever got an IP, then follow vmbr0's physical NIC, /etc/network/interfaces, the VLAN tag, and any OVS / Linux-bridge mix down one branch at a time.

I have had vmbr0 bound to the wrong physical port take an entire batch of VMs offline, and I have had a VLAN tag treated as a subnet switch that cut the link at layer two. Get bridge versus NAT right first, and the rest of the tree pays off. External references live in the Proxmox networking docs, the Linux bridge mechanism, and the iptables NAT tables.

Sixty seconds: bridge or NAT first

Run these in order; the output usually maps the failure to one class.

# host side: which bridge this VM's NIC points at, any tag, which model
qm showconfig 100 | grep -E "^net0:"

# host side: is vmbr0 up, and which physical port is bound to it
ip -br link show
ip route

# guest side: did it get an IP at all (splits "no address" from "address, no egress")
nmcli -p dev show | grep -E "IP4.ADDRESS|IP4.GATEWAY|IP4.DNS"
  • net0 points at vmbr0 and the guest holds a subnet-matched IP: bridge mode, no host SNAT for egress.
  • net0 points at a non-vmbr0 bridge, or SNAT is configured: NAT mode, egress depends on host forwarding.
  • IP4.ADDRESS in the guest is 127.0.0.1 or empty: layer two is down, branch 1.
  • An IP is present but ping <gateway> fails: branch 2 or 3.
  • OVS is in use and a physical port is claimed by two bridges: branch 4.

The branches as a tree (land on "did it get an IP" first, then drill in):

VM cannot reach the network
|
+-- guest has no IP (nmcli shows none / only 127.0.0.1)
|   +-- vmbr0 member is not the real uplink --> wrong physical NIC -> fix interfaces
|   +-- tag set but upstream port does not allow it -> VLAN L2 break -> align tag/port
|   \-- OVS and a Linux bridge mixed? -> non-unique path -> pick one, split the mix
|
+-- guest has an IP but cannot ping the gateway
|   +-- bridge mode yet vmbr0 forwarding missing -> interfaces wrong / bridge not up
|   +-- NAT mode with no SNAT rule in the nat table -> host chain broken -> add FORWARD + MASQUERADE
|   \-- gateway reachable, outside world not -> upstream NAT/firewall -> out of this box's scope
|
\-- intermittent, captures show drops
    +-- an OVS port and vmbr0 fighting over one physical port -> mix -> split
    \-- physical port / transceiver flapping -> watch ip -s link error counters

Branch 1: the guest never gets an IP (layer two is down)

Symptom: inside the guest, nmcli -p dev show shows no IP4.ADDRESS, or only 127.0.0.1, and ip a reports NO-CARRIER on the interface. This is a layer-two problem, not an IP problem.

# host side: which NIC is the current member of vmbr0
ip -d link show vmbr0
# host side: is that physical link up, any error counters
ip -s link show <member-port>
# guest side: is the physical link detected
ethtool <iface> | grep -E "Link detected|Speed"

How to branch further:

  • the ip -d link show vmbr0 member is not the real uplink: vmbr0 is bound to the wrong physical NIC. This is the most common root cause. The host is online through eno2, but /etc/network/interfaces put eno1 in vmbr0's bridge-ports. Every guest hangs on eno1, and eno1's L2 domain has no default gateway at all. Point bridge-ports at the real uplink and ifreload - this is the step people miss most.
  • the member port shows NO-CARRIER or heavy error counters: a physical link problem. Check the cable and the switch port before you keep digging at the VM.
  • the guest interface reads Link detected: no: follow the host-side port down to the physical layer. The virtio driver itself rarely drops a link; when it does, the host port is usually the real culprit.

The trap I hit most often (a scenario built from a typical production case): during a host migration I copied the old vmbr0 bridge-ports over verbatim, but the new box names its NICs differently, so the names did not match and a whole batch of VMs went silent while the host stayed online. The host reaching the internet does not prove the NIC under vmbr0 is correct. One line, ip -d link show vmbr0, settles it, yet it is the first thing people skip.

Branch 2: an IP is present, but the gateway is unreachable (config layer)

Symptom: the guest holds an IP and ip route shows a default route, but ping <gateway> fails.

# host side: how vmbr0 is written in interfaces (bridge-ports / bridge-stp / vlan-raw-device)
grep -A6 "^auto vmbr0" /etc/network/interfaces
# host side: VLAN protocol state of vmbr0 (any tag, which one)
ip -d -s link show vmbr0
# guest side: is the gateway and route actually present
ip -br -4 addr
ip route

How to branch further:

  • bridge-ports points at the right port, but a vlan-raw-device or a net0 tag is set while the upstream switch port is access: the VLAN tag is misconfigured. A tag changes the 802.1Q L2 framing; it is not a "put me on a different subnet" switch. When the tag and the switch port mode disagree, the switch drops the frame and the guest sees a gateway that will not answer.
  • vmbr0 is missing bridge-ports, or it has bridge-stp 1 but no matching bridge-vlan-aware for the tag: the bridge is not coming up right and frames will not cross it.
  • config is correct, one tag works but another does not: most often bridge-vlan-aware is off, so vmbr0 behaves as a plain L3 forwarder and the tag never isolates anything.

The decisive point: a tag is L2 framing, not an IP switch. Equating "give this VM a different subnet" with "add a tag" is the most common misread in this failure class. Before touching a tag, confirm whether the upstream switch port is trunk or access and which VLANs it carries - that part depends on your on-site switch configuration.

Branch 3: NAT mode depends on the host's forwarding chain

Symptom: net0 is not a vmbr0 straight-through to the production subnet but a NAT bridge; the guest can ping the host but not the outside world.

# host side: does FORWARD let the VM subnet through
iptables -L FORWARD -n -v | head -20
# host side: is there a MASQUERADE/SNAT for the VM subnet in the nat table
iptables -t nat -L POSTROUTING -n -v | head -20
# host side: is kernel forwarding on
cat /proc/sys/net/ipv4/ip_forward

How to branch further:

  • ip_forward is 0: the host is not forwarding at all, NAT is dead. sysctl -w net.ipv4.ip_forward=1 applies immediately; persist it under /etc/sysctl.d/.
  • POSTROUTING has no -j MASQUERADE for the VM subnet: the SNAT chain is broken. Traffic leaves without a rewritten source, so return packets have nowhere to go. Add a MASQUERADE that matches the VM subnet.
  • FORWARD drops the VM subnet: the forwarding chain is blocking it. Allow the in and out directions on the NAT bridge.

A judgment call I stand by: if bridge will do, do not reach for NAT. NAT adds a host forwarding layer plus the nat table, so the surface to inspect grows from "watch the guest's L2" to "watch host FORWARD plus the nat table." Each extra layer is another place it can break. NAT earns its keep only when you would rather keep the guest out of the production subnet and would rather not wire a dedicated switch VLAN.

Branch 4: OVS and a Linux bridge mixed

Symptom: intermittent, captures show drops, and ovs-vsctl show and ip link each describe a different set of bridges.

# host side: which ports the OVS side holds
ovs-vsctl show
ovs-vsctl port-to-br <port>
# host side: which ports the Linux bridge side holds (two bridges on one physical port?)
ip -d link show

How to branch further:

  • the same physical port appears in both vmbr0's bridge-ports and an OVS port: the forwarding path is no longer unique; whichever bridge wins first carries the frame, so the link comes and goes. Go all OVS or all Linux bridge and split the mix.
  • the OVS bridge is up but its member port was taken by the Linux bridge: traffic never enters OVS. Go back to the Linux bridge side and check there.

I worked through one (a scenario built from a typical production case): during an upgrade I built an OVS bridge but never removed the old vmbr0, so one 10GbE port was claimed by both. The service came and went, and a capture showed each port carrying about half the traffic. The fingerprint of a mix is two bridges, one port, half the traffic dropped.

Quick reference

Symptom First guess (misread) Real cause Where to look
guest has no IP, NO-CARRIER reinstall the OS vmbr0 bound to the wrong NIC ip -d link show vmbr0
host online, all VMs silent a VM problem vmbr0's port not on the same L2 domain interfaces bridge-ports
silent after adding a tag guest has no IP bad VLAN tag L2 framing / switch not allowing it switch port trunk/access
has an IP, cannot reach gateway wrong netmask tag and switch port mode disagree ip -d -s link show vmbr0
NAT guest cannot egress wrong gateway host ip_forward / nat table broken iptables -t nat -L
intermittent, drops in capture failing NIC OVS and a Linux bridge mixed ovs-vsctl show comparison

This is the "what it is most often misdiagnosed as" table in working form. Tickets like these start as "the VM OS is broken" or "the network is flaky"; reading the table backwards saves most of the wasted poking.

Originality note: Every command, the decision tree, and the case studies in this article were compiled by the author from production troubleshooting on Proxmox VE. Commands are labeled for host-side versus guest-side context. The case studies are built from typical production scenarios and contain no real company names, IP addresses, or timelines. The parts that touch switch port mode and VLAN assignment depend on your on-site device configuration.