I can not connect to wifi when centos starts
I can not connect to wifi when centos starts
Hi guys, I've installed centos7 on my 7 years old laptop. But it can't connect to Wifi automatically when it starts. I dont want to install GUI, the laptop is too old to run it, so I want to use the command line to setup this. I also read this https://wiki.centos.org/zh/HowTos/Laptops/WpaSupplicant, but it can not connect either. Would some guys can tell me how to setup step by step.... I've worked on it for 2 days. Thank you guys so much!
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: I can not connect to wifi when centos starts
Setup your wifi via the NetworkManager.service
Re: I can not connect to wifi when centos starts
After installing NetworkManager, your connections are in /etc/NetworkManager/system-connections/
You can add connections with
You can use this as a template to compare your connections to
You can add connections with
Code: Select all
nmcli con add
Code: Select all
[connection]
id=MYNETWORKNAME
uuid=########-####-####-#####-#############
type=802-11-wireless
permissions=group:users:;
[802-11-wireless]
ssid=MYSSID
mode=infrastructure
security=802-11-wireless-security
[802-11-wireless-security]
key-mgmt=wpa-psk
psk=MYSPECIALPASSWORD
[ipv4]
method=auto
route-metric=2000
[ipv6]
method=auto