systemd-networkd fails to add default gateway

Post Reply
mad_ady
Posts: 9049
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 595 times
Been thanked: 573 times
Contact:

systemd-networkd fails to add default gateway

Post by mad_ady »

I'm running Ubuntu 20.04, kernel 4.9 on my HC4 (Hardkernel's release) and ever since I've first booted it I've noticed it fails to get an IPv4 default gateway. IPv6 internet works correctly. I'm assigning IPs via DHCP.
I did some packet captures on the DHCP server to make sure the router gives away a default gateway, and everything seems correct.
I've dug around systemd-networkd for a while, enabling debugging (https://superuser.com/questions/1187633 ... d-networkd)
and checking out similar reports (https://github.com/systemd/systemd/issues/1982), but it didn't help.
I tried out netplan with networkd backend and I still didn't get a default gateway and then I installed NetworkManager (sudo apt-get install network-manager), rebooted and now I do get a default ipv4 gateway...

So - I leave this as a warning for others hitting the same problem... Must be something triggered by my environment (my DHCP server also injects some static routes).
These users thanked the author mad_ady for the post:
odroid (Mon Jan 04, 2021 10:24 am)

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 0 guests