mirror of
https://github.com/games-on-whales/LXC2Docker.git
synced 2026-10-15 12:52:04 +00:00
[PR #141] [MERGED] fix(net): gratuitous ARP on start so LAN peers relearn the CT MAC #141
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/LXC2Docker#141
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/games-on-whales/LXC2Docker/pull/141
Author: @JBailes
Created: 7/5/2026
Status: ✅ Merged
Merged: 7/5/2026
Merged by: @JBailes
Base:
main← Head:fix/gratuitous-arp-on-start📝 Commits (1)
d7c8a85fix(net): gratuitous ARP on start so LAN peers relearn the CT MAC📊 Changes
2 files changed (+69 additions, -1 deletions)
View changed files
📝
Makefile(+1 -1)📝
internal/lxc/manager.go(+68 -0)📄 Description
Follow-up to #140 (stable LAN MAC). Stable MAC stops recreates from changing the MAC, but the MAC still changes the first time that fix lands (or if the derived key ever changes). Until peers relearn it, a recreate leaves the switch/clients/gateway holding stale ARP for the reused static IP — Moonlight can't reach Wolf until the entry ages out (minutes).
Fix: on PVE container start, if it's a LAN-attached CT (
gow.lan/gow.lan.ip), send a gratuitous ARP foreth0's IPv4 from inside the CT netns (source MAC = the CT's veth MAC) so peers refresh immediately. Best-effort, async, polls for the netns PID likemaybeLeaseLANDHCP. Addsiputils-arpingto the package Recommends.Live-verified on pve .253: after the MAC transitioned to the stable value, Moonlight lost the host; a manual
arping -Ufrom the Wolf CT'seth0immediately restored discovery/connectivity to192.168.1.50. This automates that.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.