Disabling IPv6 on -Ubuntu

Check IPv6(disabled or enabled), with
rajeshp@ubuntu:~$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6
0                           //Enabled
Disabled IPv6 with the following lines in /etc/sysctl.conf:-
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Above, using command line(CLI):-

rajeshp@ubuntu:~$ echo "#Disable ipv6" | sudo tee -a /etc/sysctl.conf
rajeshp@ubuntu:~$ echo "net.ipv6.conf.all.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
rajeshp@ubuntu:~$ echo "net.ipv6.conf.default.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
rajeshp@ubuntu:~$ echo "net.ipv6.conf.lo.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
Reactivate the above configuration by, executing :-
rajeshp@ubuntu:~$ sysctl -p

rajeshp@ubuntu:~$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6
1                          //Disabled

Comments

Popular posts from this blog

Xmanager RHEL 6 xclock :command not found -- Resolved

Racktable on ubuntu installation

RPM Tit-Bits ;-)