I need to disable IPv6 redirect in my system (a router), and I got this error:

sysctl -w net.ipv6.conf.all.send_redirects=0
sysctl: cannot stat /proc/sys/net/ipv6/conf/all/send_redirects: No such file or directory

root@hostname:~$ uname -a
Linux hostname 4.4.0-131-generic #157-Ubuntu SMP Thu Jul 12 15:51:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  • Please provide the results of uname -a into the question. – Rinzwind Aug 8 '19 at 6:35
  • @Rinzwind I add the uname -a info, thx – Zack Tang Aug 8 '19 at 12:00

sysctl: cannot stat /proc/sys/net/ipv6/conf/all/send_redirects: No such file or directory

That means you have ipv6 or even send redirects disabled somewhere (probably in Networkmanager). Enable it and the file gets created and you can then alter it.

Altering /etc/sysctl.conf yourself is also possible.


is the setting. 1 is active, 0 is inactive.

  • I added net.ipv6.conf.all.send_redirects = 0 at the end of /etc/sysctl.conf, and it's not working. – Zack Tang Aug 9 '19 at 1:23

Kernel doesn't support send_redirects for IPv6.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.