Chinaunix

标题: CentOS 5.1 断网问题 [打印本页]

作者: killfen    时间: 2009-12-22 09:15
标题: CentOS 5.1 断网问题
我使用的是 CentOS 5.1 出现了断网情况。大概十几个小时一次。就连接不了,必需使用server network restart重启才能正常
下面是出现两次时的日志

Dec 21 14:45:46 localhost : error getting update info: Cannot find a valid baseurl for repo: base
Dec 21 15:46:00 localhost : error getting update info: Cannot find a valid baseurl for repo: base
Dec 21 16:34:09 localhost restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) Invalid argument
Dec 21 16:46:12 localhost : error getting update info: Cannot find a valid baseurl for repo: base
Dec 21 17:12:19 localhost restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) Invalid argument
Dec 21 17:32:18 localhost restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) Invalid argument
Dec 21 17:46:25 localhost : error getting update info: Cannot find a valid baseurl for repo: base
Dec 21 18:21:46 localhost avahi-daemon[3006]: Withdrawing address record for 192.168.20.11 on eth0.
Dec 21 18:21:46 localhost avahi-daemon[3006]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.20.11.
Dec 21 18:21:46 localhost avahi-daemon[3006]: iface.c: interface_mdns_mcast_join() called but no local address available.
Dec 21 18:21:46 localhost avahi-daemon[3006]: Interface eth0.IPv4 no longer relevant for mDNS.
Dec 21 18:21:46 localhost avahi-daemon[3006]: Withdrawing address record for fe80::6ef0:49ff:fe44:2873 on eth0.
Dec 21 18:21:46 localhost avahi-daemon[3006]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::6ef0:49ff:fe44:2873.
Dec 21 18:21:46 localhost avahi-daemon[3006]: iface.c: interface_mdns_mcast_join() called but no local address available.
Dec 21 18:21:46 localhost avahi-daemon[3006]: Interface eth0.IPv6 no longer relevant for mDNS.
Dec 21 18:21:47 localhost kernel: r8169: eth0: link up
Dec 21 18:21:48 localhost avahi-daemon[3006]: New relevant interface eth0.IPv6 for mDNS.
Dec 21 18:21:48 localhost avahi-daemon[3006]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::6ef0:49ff:fe44:2873.
Dec 21 18:21:48 localhost avahi-daemon[3006]: Registering new address record for fe80::6ef0:49ff:fe44:2873 on eth0.
Dec 21 18:21:51 localhost avahi-daemon[3006]: New relevant interface eth0.IPv4 for mDNS.
Dec 21 18:21:51 localhost avahi-daemon[3006]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.20.11.
Dec 21 18:21:51 localhost avahi-daemon[3006]: Registering new address record for 192.168.20.11 on eth0.

第二次
Dec 21 15:46:00 localhost : error getting update info: Cannot find a valid baseurl for repo: base
Dec 21 16:34:09 localhost restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) Invalid argument
Dec 21 16:46:12 localhost : error getting update info: Cannot find a valid baseurl for repo: base
Dec 21 17:12:19 localhost restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) Invalid argument
Dec 21 17:32:18 localhost restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) Invalid argument
Dec 21 17:46:25 localhost : error getting update info: Cannot find a valid baseurl for repo: base
Dec 21 18:21:46 localhost avahi-daemon[3006]: Withdrawing address record for 192.168.20.11 on eth0.
Dec 21 18:21:46 localhost avahi-daemon[3006]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.20.11.
Dec 21 18:21:46 localhost avahi-daemon[3006]: iface.c: interface_mdns_mcast_join() called but no local address available.
Dec 21 18:21:46 localhost avahi-daemon[3006]: Interface eth0.IPv4 no longer relevant for mDNS.
Dec 21 18:21:46 localhost avahi-daemon[3006]: Withdrawing address record for fe80::6ef0:49ff:fe44:2873 on eth0.
Dec 21 18:21:46 localhost avahi-daemon[3006]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::6ef0:49ff:fe44:2873.
Dec 21 18:21:46 localhost avahi-daemon[3006]: iface.c: interface_mdns_mcast_join() called but no local address available.
Dec 21 18:21:46 localhost avahi-daemon[3006]: Interface eth0.IPv6 no longer relevant for mDNS.
Dec 21 18:21:47 localhost kernel: r8169: eth0: link up
Dec 21 18:21:48 localhost avahi-daemon[3006]: New relevant interface eth0.IPv6 for mDNS.
Dec 21 18:21:48 localhost avahi-daemon[3006]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::6ef0:49ff:fe44:2873.
Dec 21 18:21:48 localhost avahi-daemon[3006]: Registering new address record for fe80::6ef0:49ff:fe44:2873 on eth0.
Dec 21 18:21:51 localhost avahi-daemon[3006]: New relevant interface eth0.IPv4 for mDNS.
Dec 21 18:21:51 localhost avahi-daemon[3006]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.20.11.
Dec 21 18:21:51 localhost avahi-daemon[3006]: Registering new address record for 192.168.20.11 on eth0.
Dec 21 10:42:47 localhost kernel: Kernel logging (proc) stopped.
Dec 21 10:42:47 localhost kernel: Kernel log daemon terminating.
Dec 21 10:42:48 localhost exiting on signal 15
Dec 21 10:42:48 localhost syslogd 1.4.1: restart.
Dec 21 10:42:48 localhost kernel: klogd 1.4.1, log source = /proc/kmsg started.
Dec 21 10:43:25 localhost smartd[3077]: System clock time adjusted to the past. Resetting next wakeup time.
Dec 21 11:27:17 localhost kernel: usb 4-1: USB disconnect, address 2
Dec 21 13:57:42 localhost restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) Invalid argument
Dec 21 16:26:24 localhost restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) Invalid argument
Dec 21 17:49:43 localhost restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) Invalid argument
Dec 22 01:55:44 localhost kernel: NETDEV WATCHDOG: eth0: transmit timed out
Dec 22 01:55:44 localhost kernel: r8169: eth0: link up
Dec 22 08:35:23 localhost kernel: usb 5-2: new low speed USB device using uhci_hcd and address 2
Dec 22 08:35:23 localhost kernel: usb 5-2: configuration #1 chosen from 1 choice
Dec 22 08:35:23 localhost kernel: input: Dell Dell USB Keyboard as /class/input/input2
Dec 22 08:35:23 localhost kernel: input: USB HID v1.10 Keyboard [Dell Dell USB Keyboard] on usb-0000:00:1d.3-2
Dec 22 08:38:25 localhost kernel: r8169: eth0: link up
Dec 22 08:38:54 localhost restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) Invalid argument

我只能初步的判断是有个 restorecond服务定时执行的问题。
作者: yangjie_sz    时间: 2009-12-22 10:54
NETDEV WATCHDOG: eth0: transmit timed out

这个似乎是你的网卡有问题哦。
作者: killfen    时间: 2009-12-22 11:39
标题: 回复 #2 yangjie_sz 的帖子
不会吧。是不是驱动有问题?
作者: yangjie_sz    时间: 2009-12-22 11:44
你的网卡是主板集成的吧, r8169
应该不会是驱动的问题,这些集成网卡的支持 CentOS 5.1 应该是很完善的了。
作者: killfen    时间: 2009-12-22 12:13
标题: 回复 #4 yangjie_sz 的帖子
嗯。是网卡集成的。
作者: chenyx    时间: 2009-12-22 14:33
下载网卡驱动安装下吧
作者: marsaber    时间: 2009-12-22 17:39
把没用的服务都关掉,使用IPv6了吗?没用的话也关掉。
再试试。
作者: killfen    时间: 2009-12-28 15:46
eth0      Link encap:Ethernet  HWaddr 6C:F0:49:44:B0C  
          inet addr:192.168.20.11  Bcast:192.168.20.255  Mask:255.255.255.0
          inet6 addr: fe80::6ef0:49ff:fe44:b0dc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18060 errors:0 dropped:2275652269 overruns:0 frame:0
          TX packets:38113 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1155318 (1.1 MiB)  TX bytes:9532499 (9.0 MiB)
          Interrupt:233 Base address:0x2000

发现在很多DROPPED
作者: killfen    时间: 2009-12-30 09:08
标题: 回复 #8 killfen 的帖子
没人知道嘛。
作者: killfen    时间: 2009-12-30 09:11
标题: 把IPV6功能屏蔽,网络没有断过,
现在我把IPV6功能屏蔽,网络没有断过,
但丢包的现象还是存在。
eth0      Link encap:Ethernet  HWaddr 6C:F0:49:44:B0C  
          inet addr:192.168.20.11  Bcast:192.168.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:83463881 errors:0 dropped:931072404 overruns:0 frame:0
          TX packets:81569767 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:416742974 (397.4 MiB)  TX bytes:2650043157 (2.4 GiB)
          Interrupt:233
作者: xudonglee    时间: 2011-01-13 16:18
啥啊都是
这个得是vim /etc/yum.repos.d/CentOS-Base.repo
请参考




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2