免费注册 查看新帖 |

Chinaunix

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

Linux6用作路由器,转发速度慢,为何? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-07-01 10:10 |只看该作者 |倒序浏览
带了6个192.168的网段,流量不是很大。只是启用了ip forward,但是发现ping值过大而且不稳定,从小于1到70ms左右变动,查看系统资源使用情况,不是太大,抓了几个包,也没有发现病毒的痕迹。请问可能是什么原因?

论坛徽章:
0
2 [报告]
发表于 2004-07-01 10:21 |只看该作者

Linux6用作路由器,转发速度慢,为何?

你用什么网卡?

论坛徽章:
0
3 [报告]
发表于 2004-07-01 10:28 |只看该作者

Linux6用作路由器,转发速度慢,为何?

D-link530

[root@gateway rc.d]# ifconfig | more
eth0      Link encap:Ethernet  HWaddr 00:05:5D:F5:50:65  
          inet addr:192.168.0.4  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:36650772 errors:0 dropped:0 overruns:0 frame:0
          TX packets:35389028 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:2885587918 (2751.9 Mb)  TX bytes:2351009530 (2242.0 Mb)
          Interrupt:10 Base address:0xd000

eth0:0    Link encap:Ethernet  HWaddr 00:05:5D:F5:50:65  
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:10 Base address:0xd000

eth0:1    Link encap:Ethernet  HWaddr 00:05:5D:F5:50:65  
          inet addr:192.168.2.4  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:10 Base address:0xd000

eth0:2    Link encap:Ethernet  HWaddr 00:05:5D:F5:50:65  
          inet addr:192.168.4.4  Bcast:192.168.4.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:10 Base address:0xd000

eth0:3    Link encap:Ethernet  HWaddr 00:05:5D:F5:50:65  
          inet addr:192.168.5.4  Bcast:192.168.5.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:10 Base address:0xd000

eth0:4    Link encap:Ethernet  HWaddr 00:05:5D:F5:50:65  
          inet addr:192.168.8.4  Bcast:192.168.8.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:10 Base address:0xd000

eth0:5    Link encap:Ethernet  HWaddr 00:05:5D:F5:50:65  
          inet addr:210.15.*.*(一个公网IP)  Bcast:210.15.*.*  Mask:255.255.255.224
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:10 Base address:0xd000

eth0:6    Link encap:Ethernet  HWaddr 00:05:5D:F5:50:65  
          inet addr:192.168.9.4  Bcast:192.168.9.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:10 Base address:0xd000

eth0:7    Link encap:Ethernet  HWaddr 00:05:5D:F5:50:65  
          inet addr:192.168.6.4  Bcast:192.168.6.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:10 Base address:0xd000

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

论坛徽章:
0
4 [报告]
发表于 2004-07-01 10:33 |只看该作者

Linux6用作路由器,转发速度慢,为何?

Reply from 192.168.0.4: bytes=32 time=31ms TTL=254
Request timed out.
Reply from 192.168.0.4: bytes=32 time=32ms TTL=254
Reply from 192.168.0.4: bytes=32 time=40ms TTL=254
Reply from 192.168.0.4: bytes=32 time=28ms TTL=254
Reply from 192.168.0.4: bytes=32 time=28ms TTL=254
Reply from 192.168.0.4: bytes=32 time=27ms TTL=254
Reply from 192.168.0.4: bytes=32 time=5ms TTL=254
Request timed out.
Reply from 192.168.0.4: bytes=32 time=12ms TTL=254
Reply from 192.168.0.4: bytes=32 time=32ms TTL=254
Reply from 192.168.0.4: bytes=32 time=21ms TTL=254
Reply from 192.168.0.4: bytes=32 time=19ms TTL=254
Reply from 192.168.0.4: bytes=32 time=13ms TTL=254

论坛徽章:
0
5 [报告]
发表于 2004-07-01 10:35 |只看该作者

Linux6用作路由器,转发速度慢,为何?

NND,看样子是网卡的问题了。换了一台机器,用的是3COM的网卡,返回值立刻正常了,一般都是小于1,但是偶有丢包。

论坛徽章:
0
6 [报告]
发表于 2004-07-01 10:38 |只看该作者

Linux6用作路由器,转发速度慢,为何?

Reply from 192.168.0.4: bytes=32 time=2ms TTL=63
Reply from 192.168.0.4: bytes=32 time=1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time=1ms TTL=63
Request timed out.
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Request timed out.
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time=1ms TTL=63
Reply from 192.168.0.4: bytes=32 time=1ms TTL=63
Reply from 192.168.0.4: bytes=32 time=2ms TTL=63
Request timed out.
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Request timed out.
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time=2ms TTL=63
Reply from 192.168.0.4: bytes=32 time=1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time=1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time=1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63

论坛徽章:
0
7 [报告]
发表于 2004-07-01 10:43 |只看该作者

Linux6用作路由器,转发速度慢,为何?

我用Intel服务器专用的,什么都不丢。
用530tx做服务器网卡,只要流量一大,马上挂了。

论坛徽章:
0
8 [报告]
发表于 2004-07-01 11:09 |只看该作者

Linux6用作路由器,转发速度慢,为何?

新旧服务器交替的瞬间。

Reply from 192.168.0.4: bytes=32 time=135ms TTL=254
Reply from 192.168.0.4: bytes=32 time=125ms TTL=254
Reply from 192.168.0.4: bytes=32 time=124ms TTL=254
Reply from 192.168.0.4: bytes=32 time=122ms TTL=254
Reply from 192.168.0.4: bytes=32 time=149ms TTL=254
Reply from 192.168.0.4: bytes=32 time=99ms TTL=254
Reply from 192.168.0.4: bytes=32 time=152ms TTL=254
Reply from 192.168.0.4: bytes=32 time=144ms TTL=254
Reply from 192.168.0.4: bytes=32 time=137ms TTL=254
Reply from 192.168.0.4: bytes=32 time=106ms TTL=254
Request timed out.
Reply from 192.168.0.4: bytes=32 time=2ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time=1ms TTL=63
Reply from 192.168.0.4: bytes=32 time=1ms TTL=63
Reply from 192.168.0.4: bytes=32 time<1ms TTL=63
Reply from 192.168.0.4: bytes=32 time=1ms TTL=63

论坛徽章:
0
9 [报告]
发表于 2004-07-01 11:58 |只看该作者

Linux6用作路由器,转发速度慢,为何?

呵呵,网卡真的很重要哦。

论坛徽章:
0
10 [报告]
发表于 2004-07-01 12:13 |只看该作者

Linux6用作路由器,转发速度慢,为何?

NND,还是错了,新机器一抱过去又是老问题了,最后再换,发现是一台联想D-link24口交换机的问题,换成Cisco的2950之后,两台机器都是返回值小于1,真它NND。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP