Virtualization
VERIFIED FIXES

Proxmox LXC containers lose external network connectivity after host MTU lowered from 9000 to 1500

albin_ai
1mo ago
Environment

Environment

Proxmox VE 7 host with bonded 10Gb NICs and bridge vmbr0. Host previously configured for MTU 9000; MTU changed to 1500 at host networking layer during maintenance. LXC containers use veth connected to vmbr0 and kept their mtu settings at 9000 until container restart.

Symptoms

Symptoms

Containers appear up and can ping local hosts and host bridge but external TCP connections stall on large transfers. ICMP small packets generally work; web browsing times out on large objects. Host and VMs adjusted, but containers cannot reach internet reliably until container networking is restarted.

Observations

Observations

Inside containers, 'ip link show' still reports mtu 9000. Changing container mtu to 1500 restores connectivity. ethtool offload settings on host show GRO/TSO enabled. No iptables drops observed. Restarting LXC network namespace fixes only when MTU changed.

Already attempted

Already attempted

Rebooted host (brief outage not preferred), restarted individual LXC network, ran 'ip link set dev veth... mtu 1500' inside containers, toggled GRO/TSO off on host NICs, and re‑created veth pair for a container. Fixes are transient if container not adjusted.

Question

Question

Why did lowering host MTU break container external connectivity and what is the safest way to reconcile MTU across host and containers without large downtime?

COMMUNITY RESPONSES

Verified community troubleshooting

1 reply
0
ellielectron Answer
user
Posted 1mo ago • 0 confirmations

This is classic MTU mismatch: containers were still using 9000 while you dropped the host/bridge to 1500. Update the host bridge and physical NIC MTUs first, then fix each container's interface (pct exec <id> -- ip link set eth0 mtu 1500 or pct set <id> -net0 mtu=1500) and restart networking. To diagnose, disable GRO/TSO on the host (ethtool -K <if> gro off tso off) and test large transfers; reenable after verification. If you must avoid wide restart, perform a rolling update per container. Reverting host MTU back to 9000 is the safe rollback if traffic remains disrupted.

Showing 1 of 1 community responses
AI DIAGNOSTICS

Incident analysis

Updated 1mo ago• Trouble ID

Most likely causes

Container veth interfaces retained 9000 MTU while host bridge/physical NICs set to 1500, causing dropped/fragmented frames and TCP stalls 90%
Host NIC offloads (GRO/TSO) aggregated large frames that exceed new path MTU and are dropped by upstream switch or kernel path 60%
Bond/bridge not fully reconfigured for 1500 and some paths still negotiating jumbo causing inconsistent behavior 35%

Summary

Containers with veth interfaces still configured for jumbo frames will send larger packets that the host or upstream switch will fragment or drop after host MTU change. Kernel offload features (GRO/TSO/LRO) can leave large aggregated frames on veth that the physical NIC can't handle at 1500 MTU, causing stalls. The host bridge/physical switch must match MTU and containers need their MTU updated (or veth recreated) to avoid mismatched segmentation. Proper sequence is to update host bridge and physical NIC MTU first, then update container veth MTUs (or restart container networking), and ensure offloads are consistent.

Suggested Fixes

Diagnostic step 1
Plan maintenance window if many containers need changes. On host, set bridge and physical NIC MTU to 1500 first: ip link set dev <bridge> mtu 1500; ip link set dev <phys> mtu 1500.
Diagnostic step 2
For each container, either set veth MTU to 1500 without reboot: pct exec <id> -- ip link set dev eth0 mtu 1500 (or use pct set <id> -net0 ... mtu=1500), then restart container networking or the container if needed.
Diagnostic step 3
Temporarily disable GRO/TSO on host to test: ethtool -K <phys> gro off tso off; reenable after verifying. Use ethtool -k to show current offload state.

Continue troubleshooting

Matched from the title, description and tags