You are not logged in.

#1 2014-05-29 19:15:27

breiti
Member
Registered: 2014-03-10
Posts: 5

systemd-networkd default IPv6 route

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

#2 2014-05-30 05:43:41

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: systemd-networkd default IPv6 route

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

#3 2014-05-30 16:44:42

breiti
Member
Registered: 2014-03-10
Posts: 5

Re: systemd-networkd default IPv6 route

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

#4 2014-06-12 19:13:48

Gentoo64
Member
Registered: 2012-02-14
Posts: 4
Website

Re: systemd-networkd default IPv6 route

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

Board footer

Powered by FluxBB