LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 966|回复: 1

关闭IPv6之后,一切都变慢了???

[复制链接]
发表于 2006-11-27 22:51:34 | 显示全部楼层 |阅读模式
按照下面的关闭了IPv6(中文为自己翻译的,E文为原文),一切都变慢了,启动慢了,登陆很慢,打开任何应用程序那个是慢的,上网好像快了一点点,为什么???


关闭IPv6特性
FC6比以前的版本支持更多IPv6。就像你以前不用IPv6.如果你想去掉支持IPv6的功能,你需要做以下几步!

这可能会提高DNS域名解析的速度
编辑 /etc/sysconfig/network.(需要重启)
$sudo gedit /etc/sysconfig/network

更改:
NETWORKING_IPV6=yes
为:
NETWORKING_IPV6=no

关闭内核IPv6协议栈
编辑
/etc/modprobe.conf

$sudo gedit /etc/modprobe.conf

增加下面两行需要重启)
alias net-pf-10 off
alias ipv6 off

关闭IPv6防火墙
停止ipv6防火墙
$ sudo /etc/init.d/ip6tables stop
清除防火墙规则:                                                             [确定]
把 chains 设置为 ACCEPT 策略:filter   [确定]
正在卸载 ip6tables 模块:                                     [确定]

关闭以后使用IPv6防火墙
$ sudo /sbin/chkconfig --level 35 ip6tables off




Disable IPv6 Features

FC6 has the most IPv6 support than in previous releases. Most likely you do not use IPv6. If you wish to eliminate the slight extra resources consumed by enabling IPv6, then you may do the following steps.

This may speed up your DNS lookup times when using the internet.

Disable IPv6 Networking Support

Edit /etc/sysconfig/network. (A reboot will be required)

[mirandam@charon ~]$ sudo gedit /etc/sysconfig/network

Change:
NETWORKING_IPV6=yes

To:
NETWORKING_IPV6=no

Disable IPv6 Protocol Stack for Kernel

Edit /etc/modprobe.conf.

[mirandam@charon ~]$ sudo gedit /etc/modprobe.conf

Add the following 2 lines: (A reboot will be required)

alias net-pf-10 off
alias ipv6 off

Disable IPv6 Firewall

Stop ipv6 firewall:

[mirandam@charon ~]$ sudo /etc/init.d/ip6tables stop
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading ip6tables modules:                               [  OK  ]

Turn ipv6 firewall off during future usage:

[mirandam@charon ~]$ sudo /sbin/chkconfig --level 35 ip6tables off
发表于 2006-11-28 00:27:46 | 显示全部楼层
呵呵
看看你的 /etc/hosts 文件
把它改为:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表