關閉 Linux Kernel 的 IPv6 支援
IPv6 (Internet Protocol Version 6) 多年來一直無法順利推動,本港的 ISP 更不在話下。但大部份 Linux Distro 的 kernel 都預設支援 IPv6,直接影響了網絡效能。以下方法可關閉 IPv6 支援:
Debian / Ubuntu
1. 開啟 /etc/modprobe.d/aliases
2. 裡面有一行是 “alias net-pf-10 ipv6″
3. 將以上一行用以下兩行取代:
alias net-pf-10 off
alias ipv6 off
Red Hat
1. 開啟 /etc/modprobe.conf
2. 加入這一行:
alias net-pf-10 off
更改以上檔案後,需要重新啟動系統才會生效。我在數部 CentOS 及 Fedora 主機關閉 IPv6 後,Resolve IP 的時間明顯加快了。
1 Comment »
RSS feed for comments on this post. TrackBack URL
Leave a comment
You must be logged in to post a comment.
HI Chris
I am tim and here is the updated setting
RHEL/CentOS:
* In /etc/modprobe.conf, make sure you have
alias net-pf-10 off
alias ipv6 off
* Reboot.
http://beranger.org/index.php?article=1127&page=3k