You are not logged in.

#1 2012-05-08 11:12:14

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

[SOLVED] sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding

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

#2 2012-05-08 11:17:09

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: [SOLVED] sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding

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

#3 2012-05-08 11:34:37

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: [SOLVED] sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding

+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

#4 2012-05-08 11:38:32

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: [SOLVED] sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding

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

#5 2012-05-08 11:47:56

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: [SOLVED] sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding

Problem still here

Offline

#6 2012-05-08 12:18:00

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding

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

#7 2012-05-08 12:32:21

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: [SOLVED] sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding

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

#8 2012-05-08 15:54:29

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: [SOLVED] sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding

Yes, this solved! Thanks!

Offline

#9 2012-05-08 19:03:52

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [SOLVED] sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding

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

#10 2012-05-08 19:12:26

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: [SOLVED] sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding

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

#11 2012-05-10 13:18:43

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: [SOLVED] sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding

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

#12 2012-05-11 01:00:32

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: [SOLVED] sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding

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

#13 2012-05-11 10:12:17

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: [SOLVED] sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding

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

#14 2023-07-31 14:29:32

jmorals78
Member
Registered: 2023-07-31
Posts: 1

Re: [SOLVED] sysctl: cannot stat /proc/sys/net/ipv6/conf/all/forwarding

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

Board footer

Powered by FluxBB