You are not logged in.

#1 2015-04-19 23:14:05

weirddan455
Member
Registered: 2012-04-15
Posts: 213

Systemd update broke my network because I don't have ipv6

I use a custom 4.0 kernel and I don't have ipv6 compiled into it because I don't use it.  This worked fine in systemd 218 but with 219 systemd-networkd throws a hissy fit and refuses to bring up my network interface at all.  Luckily I still have the Arch kernel installed so I was able to boot into that to use the network.  This is also how I know for sure it's because of my kernel configuration.  Is there any workaround for this?

Apr 19 18:02:25 arch systemd[1]: Starting Network Service...
Apr 19 18:02:25 arch systemd-networkd[318]: Enumeration completed
Apr 19 18:02:25 arch systemd-networkd[318]: enp7s0          : Cannot configure IPv6 forwarding for interface: No such file or directory
Apr 19 18:02:25 arch systemd-networkd[318]: enp7s0          : enp7s0          : could not bring up interface: Address family not supported by protocol
Apr 19 18:02:25 arch systemd-networkd[318]: enp7s0          : enp7s0          : could not set route: Network is unreachable
Apr 19 18:02:25 arch systemd-networkd[318]: enp7s0          : link configured
Apr 19 18:02:25 arch systemd[1]: Started Network Service.

Last edited by weirddan455 (2015-04-19 23:18:06)

Offline

#2 2015-04-19 23:58:14

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: Systemd update broke my network because I don't have ipv6

I have a few (Gentoo style) workarounds.

- Recompile systemd-219 to exclude its support for ipv6. This would require reading a lot of systemd documentation.
- Recompile kernel to include its support for ipv6. since you're already familiar with custom kernels this would be the easiest. If I were to do it, this would make me annoyed (I also have a perfect fit of a kernel for my system).
- Change your init. This is officially unsupported under Arch, but not impossible.

As you can see systemd likes to say "My way, or the high way".
for a more suble/gentle solutions wait more replies.

Offline

#3 2015-04-20 05:36:19

weirddan455
Member
Registered: 2012-04-15
Posts: 213

Re: Systemd update broke my network because I don't have ipv6

Those all seem pretty drastic methods haha.  I'm actually on the network now with my custom kernel by simply manually bringing up the interface and adding the default route with the "ip" command.  So it's not some integral part of systemd that's breaking, just the systemd-networkd.service that automatically brings my interface up at boot.

I was also able to reproduce this bug on the stock Arch kernel by adding "ipv6.disable=1" to the APPEND line in my bootloader to simulate no ipv6 support in the kernel.

I think I'll file a bug report with systemd as this definitely looks like a regression to me.  In the mean time I'll just disable systemd-networkd and use netctl instead to bring up my network.

Offline

#4 2015-04-20 10:13:45

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Systemd update broke my network because I don't have ipv6

Similar (if not the same) bug already filled https://bugs.freedesktop.org/show_bug.cgi?id=90103

It will probably take some time until the devs get around to it.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2015-04-20 10:22:41

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,420
Website

Re: Systemd update broke my network because I don't have ipv6

Recompiling systemd without feature X should just be about adding the right configure flag (./configure --help).

Have you tried setting dhcp=ip4 or IPForward=ipv4 ?

http://www.freedesktop.org/software/sys … twork.html

Last edited by Alad (2015-04-20 10:23:25)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#6 2015-04-20 18:20:28

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Systemd update broke my network because I don't have ipv6

If one is using static ip configuration dhcp=ip4 doesn't help and IPForward=ipv4 is an unrelated setting.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#7 2015-04-20 18:30:09

weirddan455
Member
Registered: 2012-04-15
Posts: 213

Re: Systemd update broke my network because I don't have ipv6

R00KIE wrote:

Similar (if not the same) bug already filled https://bugs.freedesktop.org/show_bug.cgi?id=90103

It will probably take some time until the devs get around to it.

Yea that's the same bug I'm running into.  I don't suppose making an account to add a "me too" would help anything.  Thanks for the find though.  Saved me from writing a duplicate report.

R00KIE wrote:

If one is using static ip configuration dhcp=ip4 doesn't help and IPForward=ipv4 is an unrelated setting.

And yea I'm using static IP.  Looks like systemd-networkd is a lost cause until they fix it.

Last edited by weirddan455 (2015-04-20 18:30:46)

Offline

#8 2015-04-20 20:02:35

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Systemd update broke my network because I don't have ipv6

Adding a me too would do no good (would just add noise), but you can still create an account and add yourself to the cc list so you can follow any replies. Later if the problem is solved for the OP but not for you then you can say something since you see what is apparently the same problem.

As a temporary workaround you can use a service file to bring the network up and configure the ip, not ideal but should work.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#9 2015-04-20 21:14:23

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,420
Website

Re: Systemd update broke my network because I don't have ipv6

R00KIE wrote:

If one is using static ip configuration dhcp=ip4 doesn't help and IPForward=ipv4 is an unrelated setting.

Well the error message did say

Cannot configure IPv6 forwarding for interface: No such file or directory

If you have already tried to no success, I'll be silent. smile


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#10 2015-04-21 07:57:31

weirddan455
Member
Registered: 2012-04-15
Posts: 213

Re: Systemd update broke my network because I don't have ipv6

Alad wrote:
R00KIE wrote:

If one is using static ip configuration dhcp=ip4 doesn't help and IPForward=ipv4 is an unrelated setting.

Well the error message did say

Cannot configure IPv6 forwarding for interface: No such file or directory

If you have already tried to no success, I'll be silent. smile

That's a good point.  I just tried and it didn't work though hmm

I did get netctl set up and that's running just fine for me as a replacement for systemd-networkd.

Offline

#11 2015-04-22 11:17:58

gen2arch
Member
Registered: 2013-05-16
Posts: 202

Re: Systemd update broke my network because I don't have ipv6

-- mod note: this was merged in from its own thread.  Trilby --

Hi

I updated to systemd 219-5 and afterwards networking was completely broken on my system.
I used to start networking by using the systemd-networkd service.
When trying to start this now, I get the following error:

could not bring up interface: Address family not supported by protocol

This is perhaps related to my command line kernel option

ipv6.disable=1

I also tried "ipv6.disable_ipv6=1" or omitting this option completely, but nothing worked.

Is systemd-networkd incompatible with this option or is it just a bug?

Thanks for your help

gen2arch

Last edited by Trilby (2015-04-22 12:16:53)

Offline

#12 2015-04-22 11:36:44

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Systemd update broke my network because I don't have ipv6

Offline

#13 2015-04-22 12:16:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,417
Website

Re: Systemd update broke my network because I don't have ipv6

Mod note: merged in posts 11+12.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#14 2015-04-24 08:21:16

enihcam
Member
From: Internet
Registered: 2009-12-20
Posts: 221

Re: Systemd update broke my network because I don't have ipv6

Same issue here on my archlinux-based NAS router without ipv6 support. According to documentation, I changed the configuration but it does not work.

external.network:

[Match]
Name=e*

[Network]
DHCP=no
LinkLocalAddressing=no
IPForward=no ##forward to ppp0, not here##

[DHCP]
UseDNS=false
UseMTU=false

internal.network

[Match]
Name=w*

[Link]
MTUBytes=1480

[Network]
DHCP=no
Address=192.168.1.1/24
LinkLocalAddressing=ipv4
IPForward=ipv4

[DHCP]
UseDNS=false
UseMTU=false

Offline

#15 2015-04-24 18:51:54

Kotrfa
Member
Registered: 2012-10-25
Posts: 213

Re: Systemd update broke my network because I don't have ipv6

Same problem here.

Quick solution for me was to delete ipv6.disable=1 from kernel command line.

Last edited by Kotrfa (2015-04-26 13:11:49)

Offline

#16 2015-04-25 15:53:39

pejobo
Member
Registered: 2015-04-25
Posts: 7

Re: Systemd update broke my network because I don't have ipv6

> Quick solution is to delete ipv6.disable=1 from kernel command line.

No solution for me, my router has no ipv6. I configured a static profile as described here: https://wiki.archlinux.org/index.php/Dh … ic_profile

Offline

#17 2015-05-10 00:22:41

Freso
Member
From: Denmark
Registered: 2011-09-09
Posts: 42
Website

Re: Systemd update broke my network because I don't have ipv6

I've created a small custom "edit" to the systemd-networkd.service unit. Place the following code snippet in "/etc/systemd/system/systemd-networkd.service.d/ip-link-set-up.conf" (see also https://wiki.archlinux.org/index.php/Sy … n_snippets ) and be sure to change "eno1" to whatever your own network interface is called. You should be able to repeat the "ExecStartPost" line multiple times if you have several interfaces need starting.

[Service]
ExecStartPost=/usr/bin/ip link set eno1 up

Machines: Kotake. Tael, Farore
PKGBUILDs: in AUR, at BitBucket

Offline

#18 2015-06-24 09:49:05

Freso
Member
From: Denmark
Registered: 2011-09-09
Posts: 42
Website

Re: Systemd update broke my network because I don't have ipv6

Sorry about the necro-posting, but I thought I'd mention that https://bugs.freedesktop.org/show_bug.cgi?id=90103 has been fixed for systemd 221 which is now in [core], so if anyone else in the thread (or subscribed to it) have had hacks in place to circumvent this, these hacks can be removed again.


Machines: Kotake. Tael, Farore
PKGBUILDs: in AUR, at BitBucket

Offline

Board footer

Powered by FluxBB