双系统下,debian不能上网的问题
我的机器网卡是技嘉P35主板自带的Realtek8111B/8168,安装了windowsserver2003和Debian4.0(etch)双系统启动,用的是Grub。上网用的是上海有线通,dhcp方式的。我基本上每天晚上7点左右开电脑,这时候灵异的现象就发生了:当我一开机就直接进入Debian的时候,可以通过dhcp自动获取IP然后正常上网,然后再重启电脑,再次进入Debian,还是可以通过dhcp获取IP正常上网,但是,我晚上只要重启电脑进入过一次windows,然后再重新启动电脑进入Debian,就怎么也不能在Debian下通过dhcp获取IP了,就不能上网了。(但是不管怎么重启,在windows下始终是可以上网的),真是奇怪了啊,我已经观察了3天了,天天都是如此。
debian:/#uname-r
2.6.18-4-686
debian:/#lsmod|less
......
r8169283600
......
我的/etc/network/interfaces:
#Thisfiledescribesthenetworkinterfacesavailableonyoursystem
#andhowtoactivatethem.Formoreinformation,seeinterfaces(5).
#Theloopbacknetworkinterface
autolo
ifaceloinetloopback
#Theprimarynetworkinterface
autoeth0
ifaceeth0inetdhcp
debian:/#dmesg
......
eth0:RTL8168b/8111bat0xf881c000,00:1a:4d:45:af:12,IRQ169
......
r8169:eth0:linkdown
......
r8169:eth0:linkdown
......
ADDRCONF(NETDEV_UP):eth0:linkisnotready
......
debian:~#dhclient
InternetSystemsConsortiumDHCPClientV3.0.4
Copyright2004-2006InternetSystemsConsortium.
Allrightsreserved.
Forinfo,pleasevisithttp://www.isc.org/sw/dhcp/
ListeningonLPF/eth0/00:1a:4d:45:af:12
SendingonLPF/eth0/00:1a:4d:45:af:12
SendingonSocket/fallback
DHCPDISCOVERoneth0to255.255.255.255port67interval4
DHCPDISCOVERoneth0to255.255.255.255port67interval4
DHCPDISCOVERoneth0to255.255.255.255port67interval6
DHCPDISCOVERoneth0to255.255.255.255port67interval6
DHCPDISCOVERoneth0to255.255.255.255port67interval12
DHCPDISCOVERoneth0to255.255.255.255port67interval14
DHCPDISCOVERoneth0to255.255.255.255port67interval15
NoDHCPOFFERSreceived.
Noworkingleasesinpersistentdatabase-sleeping.
debian:~#/etc/init.d/networkingrestart
Reconfiguringnetworkinterfaces...InternetSystemsConsortiumDHCPClientV3.0.4
Copyright2004-2006InternetSystemsConsortium.
Allrightsreserved.
Forinfo,pleasevisithttp://www.isc.org/sw/dhcp/
ListeningonLPF/eth0/00:1a:4d:45:af:12
SendingonLPF/eth0/00:1a:4d:45:af:12
SendingonSocket/fallback
InternetSystemsConsortiumDHCPClientV3.0.4
Copyright2004-2006InternetSystemsConsortium.
Allrightsreserved.
Forinfo,pleasevisithttp://www.isc.org/sw/dhcp/
ListeningonLPF/eth0/00:1a:4d:45:af:12
SendingonLPF/eth0/00:1a:4d:45:af:12
SendingonSocket/fallback
DHCPDISCOVERoneth0to255.255.255.255port67interval4
DHCPDISCOVERoneth0to255.255.255.255port67interval8
DHCPDISCOVERoneth0to255.255.255.255port67interval13
DHCPDISCOVERoneth0to255.255.255.255port67interval15
DHCPDISCOVERoneth0to255.255.255.255port67interval14
DHCPDISCOVERoneth0to255.255.255.255port67interval7
NoDHCPOFFERSreceived.
Noworkingleasesinpersistentdatabase-sleeping.
done.
=========================我是分割线==================================
我自己找到答案了:解决方法是进入windows后再想进入debian的话,不能“重启”,而要先“关机”,然后要断电,我这里就是把插线板上的开关关掉,然后再打开,再开机,进入debian,就可以上网了。问了我们技术部的老大,他说网卡在不断电的情况下会一直记录着“一些信息”的,具体细节他也忘记了,我想就是在windows下上网的时候网卡记录的这个“一些信息”在搞鬼,它在影响debian着debian系统通过dhcp方式获取ip。具体硬件和底层的东西我也不懂,现在这样也算是解决问题了。希望对碰到类似问题的朋友有所帮助。