fix: keep the eth0 direct-cable static up when DHCP has no server - #8
Merged
Merged
Conversation
ArnavVWadhwa
force-pushed
the
fix-eth0-static-dhcp-teardown
branch
from
September 1, 2026 20:29
ed50aa3 to
03c76a8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a direct laptop-to-Pi cable,
eth0was tearing down and re-activating every 45s, dropping the172.17.21.2static each cycle. Pinging the Pi times out for several seconds, then recovers, on repeat.Cause: the direct link has no DHCP server and no router, so
ipv4=auto(DHCP) andipv6=auto(RA) both produce no config. NetworkManager then fails the whole activation asip-config-unavailableand autoconnect restarts it, somay-fail=trueon ipv4 never gets a chance to help. Confirmed on the Pi (Trixie, NM 1.52):Fix: set
ipv6.method=link-localso IPv6 always activates successfully. That keeps the connection up, the ipv4 DHCP attempt fails quietly undermay-fail=true, and the static stays pinned. DHCP still wins when the Pi is plugged into a real network.Address unchanged (
172.17.21.2/22). No workflow or CI changes.