How to configure wifi in CLI mode in centos

Raym3112

New Member
Joined
Oct 25, 2019
Messages
1
Reaction score
0
Credits
0
Hi,

I want to know the steps to configure WIFI on linux in CLI mode. I have install Centos 7 on my laptop and it works well except for the WIFI module.
Please let me know the step to configure wifi from command line.
 


Try this...

nmcli dev show

This should show your Wifi hardware type.

nmcli conn show

This should show if you have any Wifi connections setup.

nmcli dev wifi list

This should show any WiFi SSIDs you can connect to.
 
To connect to Wifi you can do this...

nmcli radio

This will show if your wifi radio is turned on.

nmcli dev

This will list your NIC hardware (including the Lan)

nmcli device wifi list

This will list any SSIDs nearby you can connect to.

nmcli dev [wifi] connect [SSID-Name] password [wireless-password]

example: nmcli dev wlp3s0 connect LINUXWIFI password $ecretP@ss save yes autoconnect yes

The last two flags are optional depending on it you want to automatically re-connect at startup.
 

Members online


Latest posts

Top