linux服务器,针对某一客户优化网速

web服务器,自己公司用网通线路访问速度很好。在同一城市,同在网通线路的客户却速度极慢。
tracert得到客户公司网关地址后,可以用以下方法专门针对客户公司网络优化链接速度。

route add -net  202.91.0.0   netmask 255.255.0.0 gw 122.xxx.xxx.225

可以在/etc/rc.local加入/etc/wtiproute.sh脚本。把需要优化的地址都加进去。然后重启服务器。

参照:客户公司路由图:
Tracing route to www.xxxxx.com.cn [122.xxx.xxx.236]
over a maximum of 30 hops:

1 <1 ms <1 ms <1 ms 192.168.2.1
2 1 ms 1 ms 1 ms 202.91.190.161
3 * * * Request timed out.
4 * 18 ms 1 ms 218.106.167.217
5 * * * Request timed out.
6 * 2 ms 1 ms 121.101.208.253
7 * * * Request timed out.
8 * * * Request timed out.
9 2 ms 2 ms 2 ms 61.148.156.233
10 2 ms 2 ms 2 ms 61.148.157.25
11 3 ms 2 ms 2 ms 202.96.12.157
12 33 ms 32 ms 33 ms 219.158.16.58
13 40 ms 41 ms 40 ms 221.x.x.x
14 64 ms 77 ms 41 ms 221.x.x.x
15 43 ms 43 ms 43 ms 58.x.x.x
16 139 ms 138 ms 139 ms 122.x.x.236

Trace complete.

[ 貌似不一定管用 有待进一步研究 ]

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Time limit is exhausted. Please reload CAPTCHA.