免费注册 查看新帖 |

Chinaunix

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

大家帮忙分析下 我的服务器网络问题,到底什么原因? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-15 10:56 |只看该作者 |倒序浏览
----重起-----不正常时的 配置
[root@dell2850 root]# dmesg |grep eth0 外网卡
divert: allocating divert_blk for eth0
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth0: e1000_watchdog: NIC Link is Up 10 Mbps Full Duplex
[root@dell2850 root]# dmesg |grep eth1
divert: allocating divert_blk for eth1
e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth1: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex

-----重起----------正常的时的配置
[root@dell2850 root]# dmesg |grep eth0
divert: allocating divert_blk for eth0
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex
[root@dell2850 root]# dmesg |grep eth1
divert: allocating divert_blk for eth1
e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth1: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex

重起网卡发现一个错误:
service network restart
Jul  4 21:11:46 dell2850 ifup: Cannot get driver information: Operation not supported一条特殊信息 需要注意。问题依旧

出现问题时 外网卡 eth0无法提供服务。也无法通过 SSH连接,但可以通过内网卡连接。

在外面PING 外网卡 ping 不通

重起服务器 就可以好一段时间 1-10天吧,然后又不行了

需要其它信息的跟贴我既发上来,在线等!

论坛徽章:
0
2 [报告]
发表于 2008-07-15 11:07 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
3 [报告]
发表于 2008-07-15 11:48 |只看该作者

wwwwwwwwwwwwwwwwwwwww

全111111111111111111111wwwwwwwwwww

[ 本帖最后由 hyran 于 2008-7-15 12:04 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2008-07-15 12:04 |只看该作者
下面是运行正常时 的结果。可以发现
eth0 异常: RX packets:5017432 errors:499 dropped:0 overruns:0 frame:359

[root@dell2850 root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:43:E8:16:6F  
          inet addr:210.113.106.229  Bcast:210.113.106.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5017432 errors:499 dropped:0 overruns:0 frame:359
          TX packets:6058210 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:776923991 (740.9 Mb)  TX bytes:2105691683 (2008.1 Mb)
          Base address:0xecc0 Memory:dfae0000-dfb00000

eth1      Link encap:Ethernet  HWaddr 00:11:43:E8:16:70  
          inet addr:192.168.10.229  Bcast:192.168.168.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:124966 errors:0 dropped:0 overruns:0 frame:0
          TX packets:107464 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:19541507 (18.6 Mb)  TX bytes:13299961 (12.6 Mb)
          Base address:0xdcc0 Memory:df8e0000-df900000

[root@dell2850 root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:43:E8:16:6F  
          inet addr:210.113.106.229  Bcast:210.113.106.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5362523 errors:521 dropped:0 overruns:0 frame:375
          TX packets:6476707 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:831103519 (792.6 Mb)  TX bytes:2552131687 (2433.9 Mb)
          Base address:0xecc0 Memory:dfae0000-dfb00000

eth1      Link encap:Ethernet  HWaddr 00:11:43:E8:16:70  
          inet addr:192.168.10.229  Bcast:192.168.168.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:134414 errors:0 dropped:0 overruns:0 frame:0
          TX packets:115468 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:20973094 (20.0 Mb)  TX bytes:14223984 (13.5 Mb)
          Base address:0xdcc0 Memory:df8e0000-df900000

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:43660 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43660 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:14674020 (13.9 Mb)  TX bytes:14674020 (13.9 Mb)

[ 本帖最后由 hyran 于 2008-7-15 12:06 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2008-07-15 14:26 |只看该作者
change another eth

论坛徽章:
0
6 [报告]
发表于 2008-07-15 15:02 |只看该作者
又发现一个 特殊的现象.
对外网卡异常 进行系统日志分析
[root@dell2850 root]# tail -1000 /var/log/messages |grep e1
Jul 14 15:56:37 dell2850 kernel:     ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:pio, hdd:pio
Jul 14 15:56:37 dell2850 kernel: blk: queue f64cbe18, I/O limit 4294967295Mb (mask 0xffffffffffffffff)
Jul 14 15:56:38 dell2850 kernel: e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
Jul 14 15:56:38 dell2850 kernel: e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection

7月14日下午15:35出服务器问题后重起的日志 出现 eth0 100M 就会正常。
Jul 14 15:56:38 dell2850 kernel: e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex
Jul 14 15:56:38 dell2850 kernel: e1000: eth1: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex

7月14 晚上 NIC LINK DOWN了 第一次起来就还是100M,自己重起了 可以看到后来变10M了。这个期间 服务器没报警 从流量上看 一直到10点是正常的,8点多有一段PING不通的现象.
Jul 14 20:01:45 dell2850 kernel: e1000: eth0: e1000_watchdog: NIC Link is Down
Jul 14 20:01:49 dell2850 kernel: e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex
Jul 14 20:02:41 dell2850 kernel: e1000: eth0: e1000_watchdog: NIC Link is Down
Jul 14 20:02:53 dell2850 kernel: e1000: eth0: e1000_watchdog: NIC Link is Up 10 Mbps Full Duplex

7月15早发现问题 从流量看 后半夜就不正常了。第一次重起服务器后 日志如下
Jul 15 07:52:44 dell2850 kernel: e1000: eth1: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex
eth0 直接就是10M 此时 服务器依然不正常。
Jul 15 07:52:51 dell2850 kernel: e1000: eth0: e1000_watchdog: NIC Link is Up 10 Mbps Full Duplex
Jul 15 07:55:26 dell2850 kernel: e1000: eth0: e1000_watchdog: NIC Link is Up 10 Mbps Full Duplex
Jul 15 08:00:46 dell2850 kernel:  BIOS-e820: 00000000fee00000 - 00000000fee10000 (reserved)
Jul 15 08:00:46 dell2850 kernel:     ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:pio, hdd:pio
Jul 15 08:00:46 dell2850 kernel: blk: queue f6572e18, I/O limit 4294967295Mb (mask 0xffffffffffffffff)

Jul 15 08:00:46 dell2850 kernel: e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
Jul 15 08:00:46 dell2850 kernel: e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
Jul 15 08:00:46 dell2850 kernel: e1000: eth1: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex
eth0 依然 10M
Jul 15 08:00:53 dell2850 kernel: e1000: eth0: e1000_watchdog: NIC Link is Up 10 Mbps Full Duplex
Jul 15 08:27:39 dell2850 kernel:  BIOS-e820: 00000000fee00000 - 00000000fee10000 (reserved)
Jul 15 08:27:39 dell2850 kernel:     ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:pio, hdd:pio
Jul 15 08:27:39 dell2850 kernel: blk: queue f6572e18, I/O limit 4294967295Mb (mask 0xffffffffffffffff)

关掉防火墙,第二次重起 正常了。一直到现在访问 正常 但ifconfig也有 错误的包 和FRAME(见前面的帖子)
Jul 15 08:27:39 dell2850 kernel: e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
Jul 15 08:27:39 dell2850 kernel: e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
Jul 15 08:27:39 dell2850 kernel: e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex
Jul 15 08:27:39 dell2850 kernel: e1000: eth1: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex


第二次重起后的检查结果
[wuyt@dell2850 wuyot]$ dmesg  |grep e1
    ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:pio, hdd:pio
blk: queue f6572e18, I/O limit 4294967295Mb (mask 0xffffffffffffffff)
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex
e1000: eth1: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex

问题总结: 只要是出现Eth0 10M 就肯定不正常。出现100M就正常。
很奇怪的是eth1 每次都是100M
难道跟流量有关系么,注意ETH1为内网卡流量小。
我估计问题:网线 或者交换机端口 问题象 二楼说的 或者网卡问题。.或者驱动问题。大家继续发言啊.

论坛徽章:
0
7 [报告]
发表于 2008-07-16 08:51 |只看该作者
好像是网卡或者网线松动的原因吧,因为从日志里看的话,网卡有时候是10M的速率,有时候是100M的速率,在网线连接不太稳定的时候,容易出现此类情况的!

论坛徽章:
0
8 [报告]
发表于 2008-07-16 11:54 |只看该作者
感谢 回答的朋友!

同事去机房了,发现了端口指示灯不正常.
换网线和端口了,目前已正常 感兴趣的 继续关注
我随时发帖 告诉大家情况

论坛徽章:
0
9 [报告]
发表于 2008-07-16 15:46 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
10 [报告]
发表于 2008-07-16 16:23 |只看该作者
之前 有时 也能持续3-5天正常的,所以现在判断问题 过早.听我后续报道吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP