LinuxSir.cn,穿越时空的Linuxsir!

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

烦人gentoo自动断线问题

[复制链接]
发表于 2010-7-13 21:41:29 | 显示全部楼层 |阅读模式
不知是升级过还是什么原因了,最近gentoo经常用一段时间后就会自动开网络连接,而且net.eth0也不能重启:
localhost init.d # ./net.eth0 restart
* Caching service dependencies ...                                     [ ok ]
* Bringing down interface eth0
*   Stopping dhcpcd on eth0 ...                                        [ ok ]
*   Removing addresses
* Bringing up interface eth0
*   dhcp ...
*     Running dhcpcd ...
dhcpcd[538]: version 5.2.6 starting
dhcpcd[538]: eth0: waiting for carrier
dhcpcd[538]: eth0: carrier acquired
dhcpcd[538]: eth0: rebinding lease of 192.168.1.100
dhcpcd[538]: eth0: broadcasting for a lease
dhcpcd[538]: timed out
dhcpcd[538]: allowing 8 seconds for IPv4LL timeout
dhcpcd[538]: timed out                                                  [ !! ]
* ERROR: net.eth0 failed to start

重新启动电脑都不行,把路由和ADSL的电源拔掉过一会再插上电源后运行net.eth0又可连网。第一次开机时网络是可自动连接上的。
请问是什么原因造成的?以前没这个问题的。Google过没结果

路由+ADSL
发表于 2010-7-13 22:14:44 | 显示全部楼层
cat /etc/conf.d/net上来
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-7-13 22:39:29 | 显示全部楼层
localhost init.d # cat /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
config_eth0=( "dhcp" )
回复 支持 反对

使用道具 举报

发表于 2010-7-13 23:05:58 | 显示全部楼层
加上DNS试试
dns_servers_eth0=( "192.168.1.100" )
还是
dns_servers_eth0=( "192.168.1.1" )
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-7-22 13:08:23 | 显示全部楼层
实践证明,还不行,不过我觉得最奇怪的是,如果断线后,ADSL和路由不断电,就算把电脑重启切换到Fedora都不能连上网。请问有谁可帮帮忙,看看是怎么一回事?
回复 支持 反对

使用道具 举报

发表于 2010-7-22 15:10:02 | 显示全部楼层
过热吗??呵呵..
一般这个时候,我都是先看能不能连上路由..而路由有没有自动拨号..再ping一下dns,或者干脆抓包看看..
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-7-22 22:11:55 | 显示全部楼层
Post by Mie;2104622
过热吗??呵呵..
一般这个时候,我都是先看能不能连上路由..而路由有没有自动拨号..再ping一下dns,或者干脆抓包看看..

刚才又断了,拔掉路由电源一会又好了:(
现在打台风了,气温已降了点,估计不是这个原因。
水平有限,如何知道dns的地址?
抓包更没这个水平了。
过两天找一下路由的说明书,重新设置一下看看行不行。
小声问一下,会不会是被黑了?
回复 支持 反对

使用道具 举报

发表于 2010-7-26 01:29:19 | 显示全部楼层
用wireshark抓包吧
回复 支持 反对

使用道具 举报

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

本版积分规则

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