免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 6643 | 回复: 10
打印 上一主题 下一主题

[网络管理] CentOS 5.1 断网问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-22 09:15 |只看该作者 |倒序浏览
我使用的是 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服务定时执行的问题。

论坛徽章:
0
2 [报告]
发表于 2009-12-22 10:54 |只看该作者
NETDEV WATCHDOG: eth0: transmit timed out

这个似乎是你的网卡有问题哦。

论坛徽章:
0
3 [报告]
发表于 2009-12-22 11:39 |只看该作者

回复 #2 yangjie_sz 的帖子

不会吧。是不是驱动有问题?

论坛徽章:
0
4 [报告]
发表于 2009-12-22 11:44 |只看该作者
你的网卡是主板集成的吧, r8169
应该不会是驱动的问题,这些集成网卡的支持 CentOS 5.1 应该是很完善的了。

论坛徽章:
0
5 [报告]
发表于 2009-12-22 12:13 |只看该作者

回复 #4 yangjie_sz 的帖子

嗯。是网卡集成的。

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
6 [报告]
发表于 2009-12-22 14:33 |只看该作者
下载网卡驱动安装下吧

论坛徽章:
0
7 [报告]
发表于 2009-12-22 17:39 |只看该作者
把没用的服务都关掉,使用IPv6了吗?没用的话也关掉。
再试试。

论坛徽章:
0
8 [报告]
发表于 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

论坛徽章:
0
9 [报告]
发表于 2009-12-30 09:08 |只看该作者

回复 #8 killfen 的帖子

没人知道嘛。

论坛徽章:
0
10 [报告]
发表于 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP