Linux diable ipv6
eth1 Link encap:Ethernet HWaddr 00:15:C5:EF:74:1C
inet addr:192.168.102.22 Bcast:192.168.102.255 Mask:255.255.255.0
inet6 addr: fe80::215:c5ff:feef:741c/64 Scope:Link
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address
tcp 0 576 ::ffff:192.168.102.22:22 ::ffff:192.168.12.100:3339 ESTABLISHED
tcp 0 0 ::ffff:192.168.102.22:80 ::ffff:192.168.102.25:36479 TIME_WAIT
tcp 0 0 ::ffff:192.168.102.22:80 ::ffff:192.168.102.25:36503 TIME_WAIT
vi /etc/modprobe.conf,加入以下两行参数,
alias ipv6 off
• Debian kernel 2.4:
|
• Debian kernel 2.6/Ubuntu ("official" method)/Fedora Core (method 1):
|
• Debian kernel 2.6/Ubuntu (alternate method):
|
• RHEL/CentOS:
|
• RHEL/CentOS/Fedora Core (method 2)/Mandriva (method 1):
|
• SuSE 9.0:
|
• SuSE 9.1/9.2/9.3/10.0 ("official" method):
|
• SuSE 9.1/9.2/9.3/10.0 (alternate method)/Mandriva (method 2)/Slackware:
|
• Gentoo:
|
NOTES:
- In distros using /etc/modprobe.conf, beware that you might get overriden by /etc/modprobe.conf.local or by/etc/modprobe.d/*.
- If you disable IPv6, I suppose you don‘t need tunnels either. You could also add there:
install sit0 /bin/true
- A last "anti-IPv6" issue: don‘t forget the old trick of checking if your Firefox has IPv6 disabled:
- CTRL+L, about:config (Enter)
- Filter by ipv6.
- Set network.dns.disableIPv6 to true.
摘于:http://blog.chinaunix.net/uid-7654720-id-1742032.html
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。