论坛风格切换切换到宽版
  • 2292阅读
  • 4回复

[问题求助]路由器ping外网丢包.帮忙看看是那里的原因?(已解决) [复制链接]

上一主题 下一主题
离线ac2004.
 
发帖
2062
C币
-60745
威望
376
贡献值
1
银元
-1
铜钱
4591
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
以下是PIN.G网易的丢包情况..
Reply from 220.181.28.52: bytes=32 time=.63ms TTL=.52           鲜花

R.equest timed out.          婚庆

Reply f.rom 220.181.28.52.: bytes=32 time=76ms TTL=52.

Re.ply from 220.181.28.52: bytes=32 time=72ms TTL.=52电影

Reply from 220.18.1.28.5.2: bytes=32 time=80ms TTL=52[成人用品]

Reply from 220.18.1.28.52: bytes=32 time=61ms .TTL=52域名

Reply from 220.181..28.52: bytes.=32 time=72ms TTL=52    健康

Reply from 220.181.28.52: bytes=32 time=70ms. TTL.=52    外汇

Request .timed out..

Reply from 220.181.28.52: bytes=32 time.=82ms TTL=.52    外汇

Request t.imed out..

Reply from 220..181.28.52: bytes=32 time=76ms TT.L=52.

Reply from 220.181.28.52: byte.s=32 time=76m.s TTL=52.

Reply from 220.181..28.52: bytes=32 ti.me=68ms TTL=52投资

Reply from 220.181.28.52: bytes=3.2 time=79ms TTL.=52.

Request tim.ed out.外贸

Reply from 220.181.28.52: bytes=32 time=70m..s TTL=52             电子

Reply from 220.1.81..28.52: bytes=32 time=75ms TTL=52(        游戏          )

Reply from 220.181.28..52: bytes=32 time=81.ms TTL=52.

Reply fr.om 220.181.28.52: bytes=32 time=85ms TTL.=52.

Reply from 220.181.28.52.: bytes=32 time=69.ms TTL=52投资

Reply from 220.181.28.52: bytes=.32 time=67ms TTL=5.2<性病>

Reply from 220.181.28.52: bytes=32 time=80ms .T.TL=52电脑

Reply from 220.181.28.52: byte.s=32 time=.81ms TTL=52.

Requ.est timed out..

Reply from 22.0.181.28.52: bytes=32 time=6.8ms TTL=52外贸

Reply from 220..181..28.52: bytes=32 time=77ms TTL=52.
复制代码

路由器脚本:

#!/bin/bash

echo 1 > /proc/sys/net/ipv4/.ip_forwar.d学习

/sbin/modprobe. ip_conntrack_ft.p电脑

/sb.in/modprobe ip_nat_ftp(        游戏          )

/sb.in./iptables -F -t filter[成人用品]

/sbin/iptables -F -t .nat教育

/sb.in/iptables -P. INPUT DROP.

/.sbin/.iptables -P OUTPUT ACCEPT          婚庆

/sbin/i.ptables -P FORWARD ACCEP.T    健康

/sbin/iptables -t nat -P .PREROUT.ING ACCEPT--- 印刷

/sbin/iptables -t nat -P POSTROUTI.NG AC.CEPT教育

/sbin/iptables -t .nat -P OUTPUT ACCEPT.--- 印刷



# ALLOW A.L.L IN PRIVATE NET           女人

/sbin/iptables -A INPUT -i eth.1. -j ACCEPT[成人用品]



# K.EEP CONNECTIONS教育

/sbin/iptables -A INPUT .-m state --state ESTABLISHED,RELATED -j ACCE.PT外贸



# NAT

/sbin/i.ptables -t nat -A POST.ROUTING -s 192..168.0.0/24 -o eth0 -j SNAT --to 210.113.*.*[成人用品]
复制代码

网络连接情况:

[.odsnlrbq@route etc]$ /usr/bin/sar -n DEV 2 .1             电子

L.inux 2.4.21-27.0.2.EL (.route)    健康

IFACE   rxpck/s   txpck/s   rxbyt/s   txbyt/s   rxcm.p/s   txcmp/s . rxmcst/s电影

.  .     lo      0.00      0.00      0.00      0.00      0.00      0.00.      0.00.

      eth0.   2479.05   2587.84 15123.6.5.54 666432.43      0.00      0.00      0.00--- 印刷

   .   eth1   2591.89   2231.76 667495.95 1.484487.84      0.0.0      0.00      0.00虚拟主机



Average:      .  .IFACE   rxpck/s   txpck/s   rxbyt/s   txbyt/s   rxcm.p/s   txcmp/s  rxmcst/s.

Average:           lo      0.00      0.00      0.00      0.00      0.0.0     . 0.00  .    0.00健康

Average:   .      eth.0   2479.05   2587.84 1512365.54 666432.43      0.00      0..00      0.00[成人用品]

Average:       . . eth1   2591.89   2231.76 667495.95 1484487.84     . 0.00      0.00      0.00.
复制代码
[ 本帖最后由 jk0wg 于. 2007-12-1 03:25 编.辑 ].

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线南芝恋.
发帖
2174
C币
-262562
威望
390
贡献值
1
银元
-1
铜钱
4808
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
内网接口的状态:

eth1      Link encap:Ethernet  HWaddr 00:0A:EB:97:5A:E5

          inet addr:192.168.0.254  Bcast:192.168.0.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:1860887 errors:0 dropped:0 overruns:0 frame:0

          TX packets:1618328 errors:0 dropped:0 overruns:2 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:429213171 (409.3 Mb)  TX bytes:1185293554 (1130.3 Mb)

          Interrupt:11 Base address:0xf000
复制代码
外网接口的状态:
eth0      Link encap:Ethernet  HWaddr 00:8:*:*:*:*

          inet addr:220.*.*.*  Bcast:220.*.*.*  Mask:255.255.255.252

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:2142420 errors:0 dropped:0 overruns:0 frame:0

          TX packets:2032082 errors:0 dropped:0 overruns:3 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:1366911528 (1303.5 Mb)  TX bytes:471374061 (449.5 Mb)

          Interrupt:12 Base address:0xd000
复制代码


感觉数据很大. 不知道是否正常??

[ 本帖最后由 jk0wg 于 2007-12-1 02:01 编辑 ]

发帖
2067
C币
-235797
威望
384
贡献值
1
银元
-2
铜钱
4645
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
找到原因了.  内网有人下载东西. 最后通过限速后.正常了.

离线ms1029.
发帖
2173
C币
-234903
威望
422
贡献值
1
银元
-3
铜钱
4955
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
LZ用什么限速的?tc还是其它软件?可否介绍一下!

离线大狼.
发帖
1986
C币
4898
威望
372
贡献值
0
银元
-1
铜钱
4528
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-13


QUOTE:原帖由 lxw2016 于 2007-12-1 15:42 发表
LZ用什么限速的?tc还是其它软件?可否介绍一下!

我用的是白金老大的方法:

http://linux.chinaunix.net/bbs/v ... ;highlight=platinum
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个