You are not logged in.

#1 2018-07-25 16:51:16

bjo
Member
Registered: 2011-09-10
Posts: 83

systemd-networkd: IPv6 default route via host route

Hi,

today I moved a Arch VM to another provider and it only 10 IPv6. On the "preinstalled" Ubuntu the IPv6 had /64 prefixes and a host route to the gateway (which lies in the /48). I searched around but only found issues with IPv4-hostroutes.

I tried to accoplish the same with a systemd-networkd config, but had no luck:

[Match]
Name=ens3

[Route]
Destination=2a02:e00:fff0::1/128

[Network]
Address=2a02:e00:fff0:21a::1/128
Gateway=2a02:e00:fff0::1

systemd-networkd sets the host route to 2a02:e00:fff0::1, but afterwards complains it cannot set it as default route because "no route to host".

Any ideas how to tell systemd-networkd it knows the route?

Last edited by bjo (2018-07-25 16:51:39)

Offline

#2 2018-07-26 08:19:56

gdl
Member
Registered: 2015-04-18
Posts: 4

Re: systemd-networkd: IPv6 default route via host route

The gateway in IPv6 is always the router's link-local address.
I don't understand why you would need to specify a route to your network.
Try with something like this:

[Match]
Name=ens3

[Network]
Address=2a02:e00:fff0:21a::1/128
Gateway=fe80::xxxxxxxxxxxx --> here is your router's link-local address. Find it with "ip -6 neighbor"

Offline

Board footer

Powered by FluxBB