Debian网络不断重启


0

我的eth1网络接口不断重启。谷歌搜索这表明,那 这个 类似于我的问题。 在那里提出的解决方案是重启服务器或rmmod和modprobe r8169驱动程序。或者安装较新的内核版本,也需要重启服务器。我目前正在运行2.6.32-5-686。

我的问题是,这是一台远程机器,我目前没有任何物理访问权限。根硬盘使用LUKS加密,据我记得,我必须在启动时输入LUKS密码,因为我可以再次进行远程访问。我不确定这里是因为这台机器被用作服务器并且已经使用了一年左右。

kern.log:

Oct 15 17:16:02 myMachine kernel: [30591427.202495] r8169 0000:04:00.0: eth1: link down
Oct 15 17:16:04 myMachine kernel: [30591428.879283] r8169 0000:04:00.0: eth1: link up
Oct 15 17:16:04 myMachine kernel: [30591429.201723] r8169 0000:04:00.0: eth1: link down
Oct 15 17:16:06 myMachine kernel: [30591430.787878] r8169 0000:04:00.0: eth1: link up
Oct 15 17:19:31 myMachine kernel: [30591636.017630] r8169 0000:04:00.0: eth1: link down
Oct 15 17:19:33 myMachine kernel: [30591637.655754] r8169 0000:04:00.0: eth1: link up
Oct 15 17:20:38 myMachine kernel: [30591702.701311] r8169 0000:04:00.0: eth1: link down
Oct 15 17:20:40 myMachine kernel: [30591704.391792] r8169 0000:04:00.0: eth1: link up
Oct 15 17:21:18 myMachine kernel: [30591742.604183] r8169 0000:04:00.0: eth1: link down
Oct 15 17:21:19 myMachine kernel: [30591744.267207] r8169 0000:04:00.0: eth1: link up
Oct 15 17:24:17 myMachine kernel: [30591921.506034] r8169 0000:04:00.0: eth1: link down
Oct 15 17:24:18 myMachine kernel: [30591923.180357] r8169 0000:04:00.0: eth1: link up

我在想

rmmod r8169; sleep 30; modprobe r8169

但我不知道这是否合理地确定重新启动网络驱动程序和我的网络,或者是否还需要做其他事情以确保网络在重新启动后重新启动 rmmod

Answers:


1

你的代码只是重新启动驱动程序,但我认为重启后网络将无法使用。

你还应该添加类似的东西 invoke-rc.d networking restart 在它之后


谢谢。我会尝试,但不断重新启动已经消失了(我不明白为什么),我将尝试下次我有物理访问服务器。
FlyingFoX

不要忘记,它可以是硬件,而不是软件问题(坏电缆,死开关/网卡等)
Alexander Kudrevatykh
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.