You are not logged in.
Hey all,
I think it started happening since the last kernel update or something, but I'm getting an error message during boot:
sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding: doesn't exist
Obviously this is related to the IPv6 support being built in directly the kernel, as the Wiki says. I don't need IPv6 so I disable it (otherwise my connection is really laggy) so according to the Wiki, I have added
ipv6.disable=1
to my kernel line in /boot/grub/menu.lst.
Why is this message occuring and how can I 'solve' this?
EDIT: Other people (using kernel-netbook) are experiencing the same: https://bbs.archlinux.org/viewtopic.php … 0#p1098410
Last edited by Unia (2012-05-13 20:56:37)
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
I just tried the other Wiki suggestion, by removing ipv6.disable=1 and adding ipv6.disable_ipv6=1 instead and now the error is gone. According to the Wiki IPv6 is active now, but not assigning any adresses to my applications.
Why does disabling the IPv6 altogether result in this message? I think that's a 'cleaner' solution.
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
+1
with that line the problem is gone.
But i did not use ipv6.disable=1 before...so is it a kernel problem? I disabled ipv6 through networkmanager.
EDIT: no, that line did not solved for me, that message is here again!
Last edited by nierro (2012-05-08 11:37:32)
Offline
Try enabling it in Networkmanager and then adding the kernel option?
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Problem still here
Offline
Just for the sake of testing, does the message disappear if you comment out the following line in /etc/sysctl.conf?
net.ipv6.conf.all.forwarding = 0
Burninate!
Offline
If I add ipv6.disable=1 again (instead of ipv6.disable_ipv=1, because then it doesn't show) and then edit /etc/sysctl.conf, then the message is not here either.
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Yes, this solved! Thanks!
Offline
In case it was not clear:
The error originates from sysctl, and the problem is that sysctl is trying to write to a file that does not exist. The reason it does not exist is that you have disabled the ipv6 subsystem, and to fix it you can just tell sysctl to stop writing to that file (edit /etc/sysctl.conf).
Offline
I see. So should we edit the wiki to include this information, or is this behaviour not supposed to happen and should we wait for some sort of fix?
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Anyone? I'd like to get this solved and perhaps add this to the Wiki so others can benefit as well.
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
I haven't seen this error and I haven't commented the line in sysctl.conf either. I disabled ipv6 by using
net.ipv6.conf.all.disable_ipv6 = 1
in sysctl.conf rather than adding the option to the kernel command line.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Thanks, that seems to be the cleanest way indeed.
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Seen this error today. It was due to /etc/sysctl.conf having the entries in there about IPv6. Once removed the error went away.
Entries removed:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.default.accept_ra = 0
To disable ipv6 I went with this instead:
vi /etc/sysctl.d/disableipv6.conf
Added:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
systemctl restart systemd-sysctl
Offline