Proxmox LXC restores create duplicate MAC addresses causing ARP flaps and intermittent container network loss
Environment
Proxmox VE 7.1 cluster, vzdump-based backups of multiple LXC containers restored to same cluster. Bridge is vmbr0 on a hardware switch with static port security entries.
Symptoms
After restoring several containers from backups, several containers intermittently lose network connectivity; ping from other hosts shows intermittent responses and ARP tables on the switch show the same MAC learned on different ports in rapid succession. Some containers' network interfaces become unreachable and services inside containers show 'connection reset by peer' errors.
Observations
Inspecting /etc/pve/lxc/<id>.conf for affected containers shows identical 'hwaddr' MAC values on net0 entries for multiple containers. The switch's MAC address table (CAM) flips between ports connected to different hypervisor nodes. Reassigning a new MAC in the Proxmox GUI for one container restored its connectivity until another restore created another collision. vzdump restore options did not include a 'generate new MAC' flag in the invoked command line used by operator scripts.
Already attempted
Restarted pods and containers, restarted network on host and containers, manually edited /etc/pve/lxc/<id>.conf to change hwaddr and restarted container network; that fixed some cases. Tried using pct restore with different flags but existing restore process used a scripted path that preserved config entries. Cleared relevant switch CAM entries where possible; collisions reappeared after additional restores.
Question
What is the safest procedure to avoid MAC duplication across LXC restores in Proxmox and how to remediate duplicates already present without causing widespread downtime?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Virtualization54% match
Proxmox LXC restores create containers with duplicate MAC addresses causing ARP flaps after backup imports
Open0 answers - Virtualization41% match
Duplicate MAC addresses after cross-cluster VM migration causing ARP flaps and intermittent VM network loss
Open0 answers - Virtualization26% match
Docker Swarm overlay network: intermittent inter-node packet loss when two overlay networks share the same subnet/VNI
Open0 answers - Linux25% match
Ubuntu 22.04 host suspend/resume breaks LXD container veth interfaces — containers lose external network
Open0 answers