链路聚合脚本 合并带宽,解决并网问题

2010年8月1日 分类: 网来往事

这几天翻出一块闲置的网卡,感觉有点浪费,卖又卖不出去,于是乎折腾起链路聚合啦~!

 

 

链路聚合是什么鸟东西。。链路聚合简单的说就是并网。你有两条或以上的线路,可以通过特定的方式使流量均匀的走两条线路,从而合并带宽,比如2条2M线路合并后理论速度就成了4M。但是实际上,合并后速度是非线性提升的。

参考了wlanbbs某前辈的脚本,用的route命令做的链路均分,可惜不够智能,于是稍稍优化了一下,做成批处理发布出来,欢迎测试!有疑问请跟帖哦!

环境部署:首先你必须有2条线路并都已经成功连接,线路网段不能相同,比如WAN1用192.168.0.1,WAN2用192.168.1.1,而不可共用192.168.0.1。

连接完毕后,运行本脚本,根据提示操作即可。脚本支持双相同ISP合并,也支持1电信1网通合并,采用不同的聚合规则。

设置后会有短暂的断线是正常的,如果是不同ISP,聚合后可以找同一个文件,从电信和网通服务器同时下载,看看速度会不会非线性叠加,或者从路由端获取实时通信包数据,看流量有没有均分成功。

应用后,当某条线路自动断线,系统会自动切换到另一条线路。如果要撤销聚合,在选择add或者delete的时候,选择delete即可。重启后也是会自动取消聚合的。

有更多问题,请跟帖。

 

附:

脚本下载地址:链路聚合脚本 V1.1 公测版

另外,有一款程序叫做 FNet Gateway SOHO 也是可以实现相同功能,不过在win7似乎失效了,而且CPU占用也非常高。有条件的XD可以下载测试。

标签: ,

23 条评论 于 “链路聚合脚本 合并带宽,解决并网问题”

  1. 2010年8月1日20:50
    1
    Google Chrome 5.0.375.125 Google Chrome 5.0.375.125 Windows XP Windows XP
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4

    好高深啊。

  2. 2010年8月1日22:35
    2
    Firefox 3.6.8 Firefox 3.6.8 Windows 7 Windows 7
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 GTB7.1

    呃。。灵丫。。你是专门倒腾网卡的么

    • 灵曦
      2010年8月2日10:40
      3
      Maxthon 2.0 Maxthon 2.0 Windows 7 Windows 7
      Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Maxthon 2.0)

      没,我倒腾无线的

  3. 2010年8月1日23:17
    4
    Google Chrome 6.0.472.14 Google Chrome 6.0.472.14 Windows 7 Windows 7
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.14 Safari/534.3

    到哪裡去找兩條線路啊

    • 2010年8月2日10:25
      5
      Firefox 3.6.6 Firefox 3.6.6 Windows 7 Windows 7
      Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.6) Gecko/20100625 AlexaToolbar/alxf-1.54 Firefox/3.6.6 QQDownload/1.7

      我这儿到是有个非3G的手机,所以并网后估计也不会快多少。。前提是可以拔号及宽带并网。。
      ———-
      热。。。

      • 灵曦
        2010年8月2日10:39
        6
        Maxthon 2.0 Maxthon 2.0 Windows 7 Windows 7
        Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Maxthon 2.0)

        这个脚本不行,不过文章最后说的那个程序可以

        • 2010年8月2日10:47
          7
          Firefox 3.6.6 Firefox 3.6.6 Windows 7 Windows 7
          Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.6) Gecko/20100625 AlexaToolbar/alxf-1.54 Firefox/3.6.6 QQDownload/1.7

          好吧。。我用win7。。
          ———-
          热。。。

    • 灵曦
      2010年8月2日10:41
      8
      Maxthon 2.0 Maxthon 2.0 Windows 7 Windows 7
      Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Maxthon 2.0)

      这个容易,俺蹭到的

  4. 2010年8月2日09:38
    9
    Firefox 3.6.3 Firefox 3.6.3 Windows XP Windows XP
    Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.3) Gecko/20100401 AlexaToolbar/alxf-1.54 Firefox/3.6.3

    话说,灵仙mm很爱倒腾网络设备。

  5. 2010年8月2日12:28
    10
    Internet Explorer 8.0 Internet Explorer 8.0 Windows 7 Windows 7
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; aff-kingsoft-ciba; staticlogin:product=cboxf09&act=login&info=ZmlsZW5hbWU9UG93ZXJ3b3JkMjAwOU94Zi4yNTI2

    没看懂啊,只知道2m+2m=4m罢了。

  6. 2010年8月2日22:07
    11
    Internet Explorer 8.0 Internet Explorer 8.0 Windows 7 Windows 7
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; Alexa Toolbar)

    你的博客我喜欢。不错不错啊!

  7. 2010年8月3日15:03
    12
    Firefox 3.6.6 Firefox 3.6.6 Windows XP Windows XP
    Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6

    不知道天翼的校园宽带可不可以

  8. 2010年8月14日13:28
    13
    TheWorld Browser TheWorld Browser Windows XP Windows XP
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; QQDownload 661; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; MEGAUPLOAD 3.0; MEGAUPLOAD 2.0; TheWorld)

    试问两个不同速率的网络,如1m+2m会怎样

    • 灵曦
      2010年8月14日13:38
      14
      Maxthon 2.0 Maxthon 2.0 Windows 7 Windows 7
      Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Maxthon 2.0)

      大于2M小于3M

  9. 2010年9月16日22:02
    15
    Opera 10.70 Opera 10.70 Windows XP Windows XP
    Opera/9.80 (Windows NT 5.1; U; zh-cn) Presto/2.6.30 Version/10.70

    灵丫,在哪混呢现在?怎么没见你在雷锋群了啊? /chijing /chijing /chijing /chijing /chijing /chijing

    • 灵曦
      2010年9月16日22:06
      16
      Maxthon 2.0 Maxthon 2.0 Windows 7 Windows 7
      Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Maxthon 2.0)

      有点忙,准确的说是连博客也没更新了。。

  10. 2010年9月16日22:04
    17
    Opera 10.70 Opera 10.70 Windows XP Windows XP
    Opera/9.80 (Windows NT 5.1; U; zh-cn) Presto/2.6.30 Version/10.70

    很好奇你到底几岁啊?????技术水平这么牛。。。很受打击。 /nnmm /nnmm /nnmm /nnmm /nnmm

    • 灵曦
      2010年9月16日22:06
      18
      Maxthon 2.0 Maxthon 2.0 Windows 7 Windows 7
      Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Maxthon 2.0)

      哦呵呵呵~~末日不哭~~

  11. 2010年9月23日17:42
    19
    Google Chrome 7.0.529.0 Google Chrome 7.0.529.0 Windows 7 Windows 7
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.8 (KHTML, like Gecko) Chrome/7.0.529.0 Safari/534.8

    我更喜欢用带双wan口的路由器来实现这个功能~~~

    • 灵曦
      2010年9月23日17:43
      20
      Maxthon 2.0 Maxthon 2.0 Windows 7 Windows 7
      Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Maxthon 2.0)

      原理一样的。。那玩意贵~~~

  12. 2010年9月23日19:46
    21
    Firefox 3.6.10 Firefox 3.6.10 Windows XP Windows XP
    Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10

    哇··传说中的双线承载··只在学校的网络中心里见过··
    家用交换好像很少见有双WAN口··
    硬件要怎么实现啊?

    • 灵曦
      2010年9月23日20:03
      22
      Maxthon 2.0 Maxthon 2.0 Windows 7 Windows 7
      Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Maxthon 2.0)

      硬件也可以通过把LAN口模拟做WAN口实现2-4条线路聚合

  13. yuehchai
    2011年9月17日16:53
    23
    Safari 5.1 Safari 5.1 Mac OS X  10.6.8 Mac OS X 10.6.8
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50

    校园网+电信2Mb,很难搞⋯⋯

coeus

/qy /sy /hx /hp /cj /hz /yang more »