贵州省民政厅领导班子:ubuntu 关闭ipv6

来源:百度文库 编辑:九乡新闻网 时间:2024/05/03 20:33:48
open /etc/sysctl.conf

add the following lines to the end of the file:
#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

You can check whether IPv6 is enabled on your machine with the followingcommand:

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

A return value of 0 means IPv6 is enabled, a value of 1 means disabled (that’swhat we want).