Melting

clash 怎么设置网卡的优先级

  •  
  •   Melting · Oct 22, 2024 · 3945 views
    This topic created in 744 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
    jatsz
    Oct 22, 2024
    2
    这个不是 Clash 决定的,是网卡本身和路由决定的。假定你是 Windows ,使用 route print 命令,可以看到路由表和 Metrics 栏位,Metrics 是优先级。路由表是使用那张网卡处理对应子网。

    Clash 使用 Tun 模式会虚拟一张网卡。
    Melting
    Melting
    OP
    Oct 22, 2024
    3
    @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
    Angel2104
    Oct 22, 2024
    4
    无线网卡 右键属性 v4 高级-接口跃点数 加高一点
    Angel2104
    Angel2104
    Oct 22, 2024
    5
    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
    Melting
    OP
    Oct 22, 2024
    6
    @Angel2104 确实可以了,看来就是自动模式下跃点数的问题,学到了,感谢
    itechify
    itechify
    Oct 22, 2024
    7
    两张网卡,我是这样搞的
    有线内网(也能外上网,特殊网站配置了出口白名单)
    无线 WIFI 外网
    1 ,设置网卡优先级,wifi 比有线的跳跃数低 10
    2 ,局域网网段设置指定网卡网关 IP
    3 ,特殊域名要走有线上外网的,通过 interface-name 指定网卡名称
    itechify
    itechify
    Oct 22, 2024
    8
    @oneisall8955 跳跃数是在 0.0.0.0/0 网段调整
    JensenQian
    JensenQian
    Oct 24, 2024
    9
    你换成 singbox ,
    singbox 可以绑定网卡的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5597 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 02:31 · PVG 10:31 · LAX 18:31 · JFK 21:31
    ♥ Do have faith in what you're doing.