LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 816|回复: 1

网络问题 搞了好久还是搞不定

[复制链接]
发表于 2006-8-26 03:09:06 | 显示全部楼层 |阅读模式
系统内核:
mc:/etc/init.d# uname -r
2.4.27-2-386

服务器ELL PowerEdge 2850 双千兆集成网卡
网卡信息如下:
mc:/etc/init.d#ifconfig

eth0      Link encap:Ethernet  HWaddr 00:13:72:61:C8:C3
          inet addr:210.34.143.101  Bcast:210.34.143.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25459 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13302 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:25834122 (24.6 MiB)  TX bytes:1114244 (1.0 MiB)
          Base address:0xdcc0 Memory:fe6e0000-fe700000

eth1      Link encap:Ethernet  HWaddr 00:13:72:61:C8:C4
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Base address:0xccc0 Memory:fe4e0000-fe500000

lo        Link encapocal Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1576 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1576 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:122899 (120.0 KiB)  TX bytes:122899 (120.0 KiB)

其中只有第一块网卡有接网线 速度是100M的 IP地址为210.34.143.101

interfaces文件内容如下:
# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 210.34.143.101
network 210.34.143.0
netmask 255.255.255.0
broadcast 210.34.143.255
gateway 210.34.143.1

装完初始系统发现如下问题

其他网段比如说219.228.228.*都可以PING通服务器而且几乎没什么延迟
如:
Reply from 210.34.143.101 :bytes=32 time<1 TTL=64
Reply from 210.34.143.101 :bytes=32 time<1 TTL=64
Reply from 210.34.143.101 :bytes=32 time<1 TTL=64
Reply from 210.34.143.101 :bytes=32 time<1 TTL=64

同网段其它机器ping时显示信息如下:
Reply from 210.34.143.101 :bytes=32 time=1 TTL=64
Request timeout
Reply from 210.34.143.101 :bytes=32 time<1 TTL=64
Reply from 210.34.143.101 :bytes=32 time<1 TTL=64

Reply from 210.34.143.101 :bytes=32 time=3 TTL=64
Reply from 210.34.143.101 :bytes=32 time<1 TTL=64
Reply from 210.34.143.101 :bytes=32 time<1 TTL=64
Reply from 210.34.143.101 :bytes=32 time<1 TTL=64

Reply from 210.34.143.101 :bytes=32 time<1 TTL=64
Reply from 210.34.143.101 :bytes=32 time=5 TTL=64
Reply from 210.34.143.101 :bytes=32 time<1 TTL=64
Reply from 210.34.143.101 :bytes=32 time<1 TTL=64
有时设置连不通

但只要在服务器段ping下这网段里随便一个可用IP
那同网段内机子再ping服务器就短时间正常 过段时间又出现上面那种情况

刚有APT install 了个内核2.6.8-12-em64t-p4-smp 问题依旧

这个问题好奇怪 连续搞了一周还没搞定 今天搞到现在半夜了还没理出个头绪  
google 了好久 找到个症状相试的

http://bbs.chinaunix.net/viewthread.php?tid=675375

可惜也没解决办法 希望高人指点  谢谢!
发表于 2006-8-26 10:22:54 | 显示全部楼层
你说的这台机子究竟是啥服务器?路由、DNS、NIS等说明白点,你的网络环境也含混不清,你这台服务器是在内网还是直接连接外网?说明白才好具体解答。
既然有双网段,用一块网卡需要绑定两个ip地址,这个坛子里有贴讨论的,要么就把另一块网卡用起来就简单多了,为啥不用呢?
看看iptables的使用,针对你自己的具体情况自己配置一下应该能解决。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表