A
A
Andrew2015-06-18 03:58:23
Computer networks
Andrew, 2015-06-18 03:58:23

How to make automatic WiFi connection on CentOS 7 server?

I connected to WiFi under the control of the server CentOS, everything is fine here, but the problem is, when the computer is restarted, everything flies, that is, the network interface is cut off, you need to do ifconfig wlan0 up and carry out the rest of the connection manipulations, which is not very pleasant.
I found instructions on the Internet, but when it came to

We simplify the process by creating an entry in the /etc/network/interfaces path that looks like this:

it turned out that I do not have such a path /etc/network/interfaces...
Tell me, how can I make it so that the connection on reboot is automatic in CentOS 7?
Encryption - WPA2, the router distributes IP automatically

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Disen, 2015-06-18
@Disen

Try in /etc/sysconfig/network-scripts/ifcfg-wlan0 (instead of wlan0 - your interface name):
ONBOOT=yes

E
Ergil Osin, 2015-06-20
@Ernillew

/etc/network/interfaces - path for Debian-based distributions. Debian, Ubuntu and other mints.
See how to kosherly raise Wi-Fi in RH-based using the same wpa_supplicant.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question