1
KaLUG 討論版 / Debian - 如何關掉 IPV6
« 於: 2012-04-25 10:53 »
原文 http://wiki.debian.org/DebianIPv6
1. 在 /etc/sysctl.d/ 新增一個檔案 disableipv6.conf ,裡面打一行 net.ipv6.conf.all.disable_ipv6=1 下次開機就會把 IPV6 關掉。
2. 把 /etc/hosts 裡面關於 IPV6 的部份 備註起來
如下,基本上見到 ip6 前面都打 # 就好了!
然後重開機就好了!
引用
1.Disable ipv6 in kernel : echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/disableipv6.conf will disable ipv6 at next reboot.
引用
2.You will probably need to comment-out any IPv6 address in /etc/hosts (especially the one for loopback) otherwise ssh will fail to forward ports (or you must always use -4 to ssh).
1. 在 /etc/sysctl.d/ 新增一個檔案 disableipv6.conf ,裡面打一行 net.ipv6.conf.all.disable_ipv6=1 下次開機就會把 IPV6 關掉。
2. 把 /etc/hosts 裡面關於 IPV6 的部份 備註起來
如下,基本上見到 ip6 前面都打 # 就好了!
代碼: [選擇]
]# The following lines are desirable for IPv6 capable hosts
#::1 localhost ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
#ff02::3 ip6-allhosts
然後重開機就好了!