4

I would like to turn my interface on, using nmcli command. Command nmcli device connect wlp2s0 does not work for me, it gives me this error : Error: Failed to add/activate new connection: A 'wireless' setting is required if no AP path was given.

Any ideas ? Thanks.

John Ronald
  • 1,816
  • 3
  • 15
  • 29

1 Answers1

6

according to man page

   nmcli radio {all | wifi | wwan} [ARGUMENTS...]

   Show radio switches status, or enable and disable the switches.

   wifi [on | off]
       Show or set status of Wi-Fi in NetworkManager. If no arguments are supplied, Wi-Fi
       status is printed; on enables Wi-Fi; off disables Wi-Fi.

   wwan [on | off]
       Show or set status of WWAN (mobile broadband) in NetworkManager. If no arguments are
       supplied, mobile broadband status is printed; on enables mobile broadband, off
       disables it.

   all [on | off]
       Show or set all previously mentioned radio switches at the same time.

nmcli radio wifi on

PRATAP
  • 22,460