Disable IPv6 (Ubuntu 16.04.5)

Step 1. Check disable_ipv6 file ( 0 means working)

$ sudo cat /proc/sys/net/ipv6/conf/all/disable_ipv6  
0

Step 2. Edit that file and reload it

$ sudo vi /etc/sysctl.conf  

net.ipv6.conf.all.disable_ipv6 = 1  
net.ipv6.conf.default.disable_ipv6 = 1  
net.ipv6.conf.lo.disable_ipv6 = 1  

$ sudo sysctl -p

Leave a Reply

Your email address will not be published. Required fields are marked *