You are not logged in.
Hi,
i try to assign a static IPv4 and IPv6 address to my interface using systemd-networkd. I use the following .network-File:
[Match]
Name=enp4s0
[Network]
DHCP=false
DNS=8.8.8.8
DNS=8.8.4.4
DNS=2001:4860:4860::8888
DNS=2001:4860:4860::8844
[Address]
Address=176.57.141.235/24
[Route]
Gateway=176.57.141.1
[Address]
Address=2a00:e440:0:19::2/64
[Route]
Gateway=2a00:e440:0:19::1
My interface gets both IPs, a (default) route is setup for IPv4 and a route for IPv6 is also setup. But there is no default route for IPv6 which means IPv6 is working after issuing the following command:
ip -6 route add default via 2a00:e440:0:19::1
How can i configure this in systemd-networkd?
Offline
I don't know if this applies to the default route for IPv6, but I know that IPv6 support in systemd-networkd is not yet complete. So it may just be that they haven't gotten around to it yet. Maybe tomegun will find this thread and be able to actually answer your question.
Offline
I discovered that the following is logged in journalctl:
May 30 18:40:53 host systemd-networkd[23889]: Could not append RTA_GATEWAY attribute: Operation not supported
May 30 18:40:53 host systemd-networkd[23889]: enp4s0: could not set routes: Operation not supported
May 30 18:40:53 host systemd-networkd[23889]: enp4s0: failed
Any idea what this does mean?
Offline
I used to have the same issue and it's fixed now. Got fixed in 213 I think, just update to the latest version of systemd.
Offline