SHARE
TWEET

Untitled

a guest Oct 15th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Set wi-fi connection priorities
  2.  
  3. To list current priorities
  4.  
  5. ```bash
  6. $ nmcli -f autoconnect-priority,name c
  7. AUTOCONNECT-PRIORITY  NAME
  8. 0                     Blake5Net            
  9. 0                     Caffe Ubuntu      
  10. 0                     Caffe Ubuntu Guest      
  11. 0                     Fire Hotspot          
  12. 0                     JET & Mishka            
  13. 0                     La Marzocco          
  14. 0                     Le_MX                
  15. 0                     MobileLab            
  16. 0                     xfinitywifi          
  17. ```
  18. Tip: If you have a very long list, you may want to sort them by priority:
  19.  
  20. ```bash
  21. nmcli -f autoconnect-priority,name c | tail -n +2 | sort -nr
  22. ```
  23.  
  24. #### How to set a network as preferred
  25.  
  26. ```bash
  27. nmcli connection modify "Caffe Ubuntu" connection.autoconnect-priority 10
  28. ```
  29.  
  30. #### Note that you can use any number you want for the priority. A larger number moves the network to the top of the list.
  31.  
  32. How to set a network as a last resort
  33.  
  34. ```bash
  35. nmcli connection modify "xfinitywifi" connection.autoconnect-priority -10
  36. ```
  37.  
  38. Negative priority values are lower than the default of 0, which means they will be tried last, if no other known WiFi network can be found. Note that, due to a bug in some versions of nmcli, you may see negative numbers listed as huge positive numbers like 4294967286. Don't worry about this as it will still work fine.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top