<div dir="ltr"><div>I'd like to understand the rational behind defaulting to scope universe instead of scope link. <a href="https://github.com/systemd/systemd/blob/master/src/network/networkd-route.c#L71">https://github.com/systemd/systemd/blob/master/src/network/networkd-route.c#L71</a></div><div><br></div><div>I have a NIC configured through DHCP. The DHCP server sends two routes, one to the router, and the other to the rest of the LAN:</div><div><br></div><div><div># cat leases/3 | grep ROUTES</div><div>ROUTES=<a href="http://192.168.0.1/32,0.0.0.0">192.168.0.1/32,0.0.0.0</a> <a href="http://192.168.0.0/24,192.168.0.1">192.168.0.0/24,192.168.0.1</a></div></div><div><br></div><div>systemd was able to add the first route, as this:</div><div><br></div><div># ip route show</div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">192.168.0.1 dev eth1 proto dhcp metric 1024</span><br></div><div><!--
--><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">And it failed to add the second, getting error "Network is unreachable". I think the kernel rejects it because it _doesn't know how to reach the router_, in this case 192.168.0.1, as I read somewhere that the route has to be configured link local.</span></div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">I understand that systemd is smart enough to add a link local route to the router, _if the router IP is included in the DHCP lease_. Unfortunately my DHCP server doesn't do so, and I don't see any RFC mandates that.</span></div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></span></div><div><!--
--><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">I am trying to see if we can update our server implementation, but on the other hand I'd like to understand why systemd chose RC_SCOPE_UNIVERSE as its default?</span></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best,</div><div>Daniel</div></div></div>
</div>