Ubuntu 16.10 禁止IPv6
step 01
append the following snippets to file /etc/sysctl.conf
#disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
step 02
make it take effect, execute command as root
sudo sysctl -p
Good luck :-)