Skip to content

Comments

systemd/network: don't manage the loopback interface#40

Merged
pothos merged 1 commit intoflatcar-masterfrom
kai/networkd-unmanaged-lo
May 17, 2021
Merged

systemd/network: don't manage the loopback interface#40
pothos merged 1 commit intoflatcar-masterfrom
kai/networkd-unmanaged-lo

Conversation

@pothos
Copy link
Member

@pothos pothos commented May 14, 2021

The default network configuration is DHCP and was also applied to the
loopback interface. This resulted in the loopback interface being in a
"managed" state in networkd and sometimes caused the IP address to be
deconfigured, resulting in errors when something tries to make use of
the loopback interface, like resolved
(see https://flaviutamas.com/2019/fixing-name-resolution-after-sleep).
Exclude the loopback interface from the default configuration to make
it "unmanaged".

Also see flatcar/bootengine#24

How to use

See if nothing else breaks because of the change

Testing done

for all platforms

@pothos pothos requested a review from a team May 14, 2021 12:33
@pothos pothos force-pushed the kai/networkd-unmanaged-lo branch from 7edb425 to 5e87d46 Compare May 14, 2021 12:38
The default network configuration is DHCP and was also applied to the
loopback interface. This resulted in the loopback interface being in a
"managed" state in networkd and	sometimes caused the IP	address	to be
deconfigured, resulting	in errors when something tries to make use of
the loopback interface, like resolved
(see https://flaviutamas.com/2019/fixing-name-resolution-after-sleep).
Exclude	the loopback interface from the	default	configuration to make
it "unmanaged".
@pothos pothos force-pushed the kai/networkd-unmanaged-lo branch from 5e87d46 to 796ca23 Compare May 14, 2021 14:13
@pothos pothos changed the title systemd/network: don't try to use DHCP on the loopback interface systemd/network: don't manage the loopback interface May 14, 2021
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request May 14, 2021
…nterface

This pulls in a change in the systemd network unit to ignore the
loopback interface instead of managing its state which sometimes causes
the address to be lost.
flatcar/init#40
@pothos pothos merged commit 21b1c15 into flatcar-master May 17, 2021
@pothos pothos deleted the kai/networkd-unmanaged-lo branch May 17, 2021 13:27
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request May 17, 2021
…nterface

This pulls in a change in the systemd network unit to ignore the
loopback interface instead of managing its state which sometimes causes
the address to be lost.
flatcar/init#40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants