LinuxSir.cn,穿越时空的Linuxsir!

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

modconf去掉ipv6后遇到的问题(莫名其妙啊,求救)

[复制链接]
发表于 2006-4-14 09:44:24 | 显示全部楼层 |阅读模式
我第一次使用modconf,以为很简单,就用modconf把ipv6模块给remove了,因为我听说域名解析慢是因为ipv6模块引起的。
但是问题出现了,当我重新启动之后发现ipv6居然还在,并且我网卡的IP地址没有了。路由信息没有了。晕倒啊!!!!!

/etc/init.d/networking start
提示我/etc/network/interfaces文件加载怎么样怎么样的,
我查看/etc/network/interfaces文件,内容还在,非常正常。

我用modconf看了半天也不知道到底应该做什么好,
只好ifconfig 和 route命令 生配了个IP和网关上网求救于各位啊!!!!

帮我想想是什么原因,最好能告诉我modconf怎么用,还有怎么查看自己的硬件配置获得正确的硬件信息?

谢谢谢谢~~~~
发表于 2006-4-14 11:13:22 | 显示全部楼层
cat /etc/network/interfaces
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-14 11:56:24 | 显示全部楼层

如下

cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 172.16.2.111
        netmask 255.255.255.0
        network 172.16.2.0
        broadcast 172.16.2.255
        gateway 172.16.2.100
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 202.106.0.20
        dns-nameservers 202.106.196.115
        dns-search localdomain
就是不能加载它。必须每次通过
ifconfig eth0 172.16.2.111 netmask 255.255.255.0 up
route add -net 0.0.0.0 netmask 0.0.0.0 gw 172.16.2.100
命令手工加上去才能上网。
回复 支持 反对

使用道具 举报

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

本版积分规则

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