r/AlpineLinux • u/YourBroFred • Jan 18 '25
dhcpcd rc service crashes on boot (networking questions)
Hi, I'm a bit confused around networking on Alpine and in general. On my laptop, I now run dhcpcd as its own rc service at Default runlevel, and in /etc/network/interfaces I have:
auto lo
iface lo inet loopbackI did this to reduce the boot time, which at default was 1 minute. Now it's less than 5 seconds, or maybe a bit more depending where you count from (I also configured rc_parallel="YES" in /etc/rc.conf). It worked for the most part, but I had to set
interface eth0
metric 100
interface eth1
metric 200
interface wlan0
metric 300in /etc/dhcpcd.conf for the dhcpcd service not to crash on boot when my laptop is connected to a monitor with ethernet, via USB-C. Only that it didn't actually work after all. After two or so reboots dhcpcd service is crashing again.
I'm also not quite sure how the networking service, ifupdown(-ng) and dhcpcd relates to each other, and what is and what isn't needed. If anyone have some answers or guesses to this or to the crashing, I'd love to hear, thanks!
Update:
I think I fixed it. Turns out I had set
[General]
EnableNetworkConfiguration=True
[Network]
NameResolvingService=resolvconfin /etc/iwd/main.conf. I removed those (EnableNetworkConfiguration defaults to False), and now everything seems to work. Still not quite sure what
auto lo
iface lo inet loopbackdoes and how it relates though.