Melting

clash 怎么设置网卡的优先级

  •  
  •   Melting · Oct 22, 2024 · 3044 views
    This topic created in 582 days ago, the information mentioned may be changed or developed.

    情况是这样的,在有线网络下电脑上开启 clash verge 后,各个节点的延迟都很低,然后在连接 wifi 后,节点延迟就变高了,应该是 wifi 信号不好导致的,但是又有连 wifi 的需求

    想问大佬们,clash 是怎么工作的,才会有这样的现象,有线连接的优先级应该是比 wifi 高的,通过查看电脑网卡的跃点数也确实如此,clash 有设置通过什么网卡这样的配置?

    9 replies    2024-10-24 02:42:58 +08:00
    jatsz
        2
    jatsz  
       Oct 22, 2024
    这个不是 Clash 决定的,是网卡本身和路由决定的。假定你是 Windows ,使用 route print 命令,可以看到路由表和 Metrics 栏位,Metrics 是优先级。路由表是使用那张网卡处理对应子网。

    Clash 使用 Tun 模式会虚拟一张网卡。
    Melting
        3
    Melting  
    OP
       Oct 22, 2024
    @jatsz 是 windows 下使用 Tun mode ,运行 route print 信息是这样的
    0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.199 281
    0.0.0.0 0.0.0.0 192.168.3.1 192.168.3.220 45 // ?感觉是这个 Metrics 导致的
    192.168.1.199 255.255.255.255 On-link 192.168.1.199 281 // 有线连接
    192.168.3.220 255.255.255.255 On-link 192.168.3.220 301 // wifi
    Angel2104
        4
    Angel2104  
       Oct 22, 2024
    无线网卡 右键属性 v4 高级-接口跃点数 加高一点
    Angel2104
        5
    Angel2104  
       Oct 22, 2024
    0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.199 281
    0.0.0.0 0.0.0.0 192.168.3.1 192.168.3.220 45+280 wifi 网卡的跃点数加到比有线高
    Melting
        6
    Melting  
    OP
       Oct 22, 2024
    @Angel2104 确实可以了,看来就是自动模式下跃点数的问题,学到了,感谢
    itechify
        7
    itechify  
    PRO
       Oct 22, 2024
    两张网卡,我是这样搞的
    有线内网(也能外上网,特殊网站配置了出口白名单)
    无线 WIFI 外网
    1 ,设置网卡优先级,wifi 比有线的跳跃数低 10
    2 ,局域网网段设置指定网卡网关 IP
    3 ,特殊域名要走有线上外网的,通过 interface-name 指定网卡名称
    itechify
        8
    itechify  
    PRO
       Oct 22, 2024
    @oneisall8955 跳跃数是在 0.0.0.0/0 网段调整
    JensenQian
        9
    JensenQian  
       Oct 24, 2024
    你换成 singbox ,
    singbox 可以绑定网卡的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3264 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 11:29 · PVG 19:29 · LAX 04:29 · JFK 07:29
    ♥ Do have faith in what you're doing.