Thursday, June 8, 2017
Disable IPv6 on Ubuntu
Disable IPv6 on Ubuntu
Edit your /etc/sysctl.conf file and add the following to the bottom:
#disable ipv6Or you can use the following script:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
echo "#disable ipv6" | sudo tee -a /etc/sysctl.confFor this changes to take effect you must reboot your system.
echo "net.ipv6.conf.all.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
After rebooting you can check if IPv6 has been disabled with the following command:
cat /proc/sys/net/ipv6/conf/all/disable_ipv60 means its enabled and 1 - disabled.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.