• 请不要在回答技术问题时复制粘贴 AI 生成的内容
rizon
V2EX  ›  程序员

Linux 命令行下 怎么修改 wifi 的优先级别

  •  
  •   rizon ·
    othorizon · Mar 7, 2019 · 2394 views
    This topic created in 2651 days ago, the information mentioned may be changed or developed.

    我发现设备总会自动切换 wifi,使用 nmcli up 命令切换到新的之后,好像又会自动变回来?

    请问怎么设置 wifi 的优先级别?

    1 replies    2019-03-08 03:26:34 +08:00
    weyou
        1
    weyou  
       Mar 8, 2019 via Android   ❤️ 4
    nmcli connection modify "your-wifi-name" connection.autoconnect-priority 20
    最后的数字设置的越大优先级越高,可以为负数,默认加入的 wifi 优先级是 0
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5701 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 01:42 · PVG 09:42 · LAX 18:42 · JFK 21:42
    ♥ Do have faith in what you're doing.