V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
AtlantisZ

修改跃点实现有线无线宽带的叠加,时有效时无效,陷入了沉思....

  •  
  •   AtlantisZ · Jan 9, 2016 · 3476 views
    This topic created in 3762 days ago, the information mentioned may be changed or developed.


    @echo off
    echo.
    echo               ╭─────────╮
    echo   ╭─────┤   internet 加速   ├─────╮
    echo   │          ╰─────────╯          │
    echo   │     仅支持不超过五路 internet 负载均衡     │
    echo   │                                          │
    echo   │         msn: [email protected]        │
    echo   ╰─────────────────────╯
    echo.
    echo 请以管理员身份运行此批命令
    echo.
    echo 运行此命令前:
    echo ------请先把各网卡连通 internet
    echo ------请先行用 ipconfig /all 查看各网卡对应网关情况
    echo.
    setlocal EnableDelayedExpansion
    
    rem 获取网卡信息-----------------------------------------
    for /f "delims=" %%i in ('route print ^| find "..."') do (
    set /a n+=1
    set line!n!=%%i
    )
    echo.
    
    rem 获取网关信息-----------------------------------------
    set m=1 & set o=1
    :getinter
    for /f "tokens=2 delims==" %%i in ('set line%m%') do set line%m%=%%i
    set yn=
    set /p yn=!line%m%! 是 internet 通路吗[直接回车默认 n][y/n]?:
    if "%yn%" == "y" (
    for /f "tokens=1,* delims=. " %%i in ("!line%m%!") do set interface%o%=%%i
    set /p gateway%o%=...........网关[直接回车默认 192.168.1.1]:
    if "#!gateway%o%!" == "#" set gateway%o%=192.168.1.1
    set /a o+=1
    )
    set /a m+=1
    if %m% leq %n% goto getinter
    

    尝试了一波批处理实现负载均衡的,,昨天试有线不能用了,,

    今天尝试,一直只能读出一个在上网的网卡...开始是无线网卡读不出来,之后是以太网卡读不出来

    4 replies    2016-01-12 20:28:40 +08:00
    AtlantisZ
        1
    AtlantisZ  
    OP
       Jan 9, 2016
    ![QQ 截图 20160109151830.png]( https://ooo.0o0.ooo/2016/01/09/5690b4ed0dbdd.png)
    ...
    dream7758521
        2
    dream7758521  
       Jan 11, 2016 via Android
    关注一下
    KenGe
        3
    KenGe  
       Jan 12, 2016
    关注
    同样希望可以双网卡工作
    AtlantisZ
        4
    AtlantisZ  
    OP
       Jan 12, 2016
    @KenGe 修改跃点,可以多线程下载和上传时有效,但是有时会失效
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4975 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 09:50 · PVG 17:50 · LAX 02:50 · JFK 05:50
    ♥ Do have faith in what you're doing.