I can not connect to wifi when centos starts

Issues related to configuring your network
Post Reply
mikefy
Posts: 1
Joined: 2017/11/06 02:19:20

I can not connect to wifi when centos starts

Post by mikefy » 2017/11/06 02:31:26

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!

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: I can not connect to wifi when centos starts

Post by hunter86_bg » 2017/11/08 19:49:07

Setup your wifi via the NetworkManager.service

sidusnare
Posts: 10
Joined: 2017/11/15 18:19:49

Re: I can not connect to wifi when centos starts

Post by sidusnare » 2017/11/15 20:10:25

After installing NetworkManager, your connections are in /etc/NetworkManager/system-connections/
You can add connections with

Code: Select all

nmcli con add
You can use this as a template to compare your connections to

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

Post Reply