I'm trying to achieve the equivalent of the ip command below via networkd without success.
ip route add default via fe80::1 dev eth0
My networkd configuration looks like below and brings up the network successfully apart from the default ipv6 routing. I've tried adding and removing GatewayOnLink=yes without any success. Running the command above after startup brings up ipv6 connectivity but I would prefer to do this via networkd configuration.
/etc/systemd/network/00-eth0.network ---- [Match] Name=eth0 [Network] DHCP=no DNS=22.214.171.124 [Address] Label=static-ipv4 Address=X.X.X.X/32 Peer=Y.Y.Y.Y [Address] Label=static-ipv6 Address=X:X:X:X::1/64 [Route] Gateway=fe80::1 Gateway=Y.Y.Y.Y GatewayOnlink=yes
This is for a Hetzner cloud server, I don't have any other IPV6 enabled machines to rule out something specific about their setup. Systemd is version 238 running on coreos.