Friday, August 3, 2012

How to disable IPV6 in Ubuntu

How to disabled IPV6

First, check to see if you are running IPV6(there is more than just one way to check):
ip a | grep inet
netstat -tupln

Try blacklisting: /etc/modprobe.d/blacklist.conf add this to the file(have to restart):
blacklist ipv6

/etc/sysctl.conf add this to the file and then run "sudo sysctl -p":
net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

/etc/default/grub and then run "sudo update-grub2":
GRUB_CMDLINE_LINUX="ipv6.disable=1"

Always check your work:


No comments:

Post a Comment

Please make suggestions :)