1 minute read

Wireless network

nmcli : wifi

  • radio wifi [on|off]
  • [on|off]를 생략하면 상태를 보여준다.
obo@obo-900X3L:~$ nmcli radio
WIFI-HW  WIFI     WWAN-HW  WWAN    
enabled  enabled  enabled  enabled 
obo@obo-900X3L:~$ nmcli r wifi
enabled
  • device
    • 예전걸 복습을 해볼까! wlpls0 이면 무선 랜이고, PCI 버스 중 1 번째의 슬롯 0번째이다!
      obo@obo-900X3L:~$ nmcli dev
      DEVICE  TYPE      STATE        CONNECTION   
      wlp1s0  wifi      connected    I  you 3000 
      enp2s0  ethernet  unavailable  --           
      lo      loopback  unmanaged    -- 
    
      ## wifi 강도도 알 수 있다..!
      obo@obo-900X3L:~$ nmcli dev wifi
      *   SSID                  MODE   CHAN  RATE       SIGNAL  BARS  SECURITY  
          OBO's iPhone          Infra  6     54 Mbit/s  84      ▂▄▆█  WPA2      
      *   I  you 3000          Infra  1     54 Mbit/s  81      ▂▄▆█  WPA2      
          iptime_w              Infra  8     54 Mbit/s  55      ▂▄__  WPA2      
          --                    Infra  1     54 Mbit/s  47      ▂▄__  WPA2      
          comsil02              Infra  7     54 Mbit/s  37      ▂▄__  WPA2      
          U+Net998B             Infra  6     54 Mbit/s  35      ▂▄__  WPA2      
          --                    Infra  1     54 Mbit/s  29      ▂___  WPA1      
          SK_WiFi4ABA           Infra  1     54 Mbit/s  29      ▂___  WPA1 WPA2 
          --                    Infra  3     54 Mbit/s  29      ▂___  WPA2      
          haruka704             Infra  6     54 Mbit/s  29      ▂___  WPA2      
          MGBKJE                Infra  9     54 Mbit/s  29      ▂___  WPA2      
          U+NetEA3F             Infra  11    54 Mbit/s  29      ▂___  WPA2      
          --                    Infra  11    54 Mbit/s  29      ▂___  WPA2      
          SK_WiFiGIGAFCD0_2.4G  Infra  11    54 Mbit/s  29      ▂___  WPA1 WPA2 
    
  • connect
    • dev wifi connect <SSID|BSSID> [password <pass>]
      obo@obo-900X3L:~$ sudo nmcli dev wifi connect "OBO's iPhone" password 12345678
      [sudo] password for obo: 
      Device 'wlp1s0' successfully activated with '18b35b5c-bcb2-4b76-be51-dffd662fe61a'.
    
      nmcli d disconnect wlan0
    

Categories:

Updated: