I’m trying to setup systemd-networkd instead of NetworkManager simply because I prefer it as a network management system.
I have the following setup in my configuration.nix:
systemd.network.enable = true;
systemd.network.networks."10-lan" = {
matchConfig.Name = "enp2s0";
##DHCP Config
networkConfig = {
# start a DHCP Client for IPv4 Addressing/Routing
DHCP = "ipv4";
# accept Router Advertisements for Stateless IPv6 Autoconfiguraton (SLAAC)
IPv6AcceptRA = true;
};
# make the routes on this interface a dependency for network-online.target
linkConfig.RequiredForOnline = "yes";
};
The network starts well enough and is running, but, for some reason, when I run networkctl I get:
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 enp2s0 ether routable failed
It’s quite possible that, since networking is actually working and the machine is online, this doesn’t matter at all, but it bugs me to have something that looks so much like an error and I’d rather fix it than leave it like that just because it works.