Home Operation and Maintenance CentOS What to do if centos7 wifi is not available

What to do if centos7 wifi is not available

Jan 17, 2022 am 11:26 AM
centos7 wifi

centos7 WiFi unavailable solution: 1. Enter the command line window; 2. Manually activate the network card through "ls ifcfg-eno16777736 ifdown-eth ifdown-post...".

What to do if centos7 wifi is not available

The operating environment of this article: CentOS7 system, Dell G3 computer.

centos7 What should I do if my wifi is not available?

CentOS7 cannot connect to wifi after installation

##Installed I installed CentOS7 but found that I couldn't connect to wifi!

The symptoms are as follows: Click to turn on wifi in the graphical interface, but every time you click on it, it immediately turns off, and the wifi list is empty. .

After searching online for a long time, I posted my solution process below. I hope it will be useful to everyone.

CentOS7 does not activate the network card by default when the installation is completed, so the network card must be manually activated in the command line. As follows:

[root@localhost /]# cd /etc/sysconfig/network-scripts
[root@localhost network-scripts]# ls
ifcfg-eno16777736       ifdown-eth   ifdown-post
... ... 
[root@localhost network-scripts]#
Copy after login
Explanation: (There are too many files listed in the ls command, I replaced them with ellipses) Because the configuration of the network card in Linux is in the network-scripts folder, so we need to put it in this directory Modify the configuration file about the network card, then the question arises, which file is the configuration file of the network card? ?

Did you notice the file list listed in ls? There is an ifcfg-enoXXX.. (XXX replaces a number). This "enoXXXXX" is the name of your network card. Use a text editor to edit this Configuration file (you can open it using nano or vim).

The content after opening is as follows:

HWADDR=00:0C:29:B9:0A:53
TYPE=Ethernet
BOOTPROTO=dhcp
... ...
NAME=enoXXXXX
UUID=....
ONBOOT=yes
Copy after login
Attention, I have omitted many options, and the main ones are listed in the value.

The NAME option is the name of the network card, TYPE is the type of network card, here is Ethernet.

What we want to modify is the ONBOOT option. What we see may be ONBOOT=no, just change it to ONBOOT=yes, save and exit, restart the network

service network restart
Copy after login
and then Can connect to the Internet.

But, do you think the problem is solved like this! ! ! ! No. . .

When I executed the "ls" command according to the online method, the file "ifcfg-enoXXXX" did not appear at all. This file did not exist at all! !

Does it mean that my computer does not have a network card? Or the driver is not installed? No, no, this is obviously impossible. . . .

Later I went out to smoke a cigarette. . . Suddenly I understood

My computer is a laptop, and it does not have a network cable socket, not a desktop. In other words, the computer only has a wireless network card and no Ethernet card. And "ifcfg-enoXXXX" is a configuration file for the Ethernet card. There is not even an Ethernet card, let alone an ifcfg-enoXXX configuration file.

So let’s configure the computer’s wireless network card file now.

#iw dev 
phy#0
    Interface wlo1
        ifindex 2
        ...
        ...
        channel 1 (2412 MHz), width:40 MHz, center1: 2422 MHz
Copy after login
iw dev command can view the information of the computer's wireless network card. The wireless network card number is behind the Interface. Remember it (my network card number is wlo1).

# ip link set wlo1 up
Copy after login
This is to activate the wireless network interface

# ip link show wlo1
2 wlo1:<BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT qlen 1000 link/ether 68:07:15:c3:6f:ef brd ff:ff:ff:ff:ff:ff
Copy after login
This can check whether the interface is successfully activated. If there is UP in <>, it means the interface is successfully activated.

#iw wlo1 link
Copy after login
This shows whether the wireless network is connected, but generally it is not connected at this time: not connect.

#iw wlo1 scan | grep SSID
Copy after login
Scan available wifi

# wpa_supplicant -B -i wlo1 -c <(wpa_passphrase "填写你要连接的wifi的名字" "输入wifi的密码")
Copy after login
Then it will show that your connection is successful

# dhclient wlo1
Copy after login
This is used to obtain the IP allocation. After I entered this name, it took a long time to execute Time

# ip addr show wlo1
Copy after login
Tested whether the IP was successfully obtained from the router. I had no problem with this step and it was successful.

Finally switch to the graphical interface, everything is done and you can go online! !

Recommended tutorial: "

centos tutorial"

The above is the detailed content of What to do if centos7 wifi is not available. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What to do if the HP printer cannot connect to wifi - What to do if the HP printer cannot connect to wifi What to do if the HP printer cannot connect to wifi - What to do if the HP printer cannot connect to wifi Mar 06, 2024 pm 01:00 PM

When many users use HP printers, they are not familiar with what to do if the HP printer cannot connect to wifi. Below, the editor will bring you solutions to the problem of HP printers not connecting to wifi. Let us take a look below. Set the mac address of the HP printer to automatically select and automatically join the network. Check to change the network configuration. Use dhcp to enter the password to connect to the HP printer. It shows that it is connected to wifi.

CentOS7 various version image download addresses and version descriptions (including Everything version) CentOS7 various version image download addresses and version descriptions (including Everything version) Feb 29, 2024 am 09:20 AM

When loading CentOS-7.0-1406, there are many optional versions. For ordinary users, they don’t know which one to choose. Here is a brief introduction: (1) CentOS-xxxx-LiveCD.ios and CentOS-xxxx- What is the difference between bin-DVD.iso? The former only has 700M, and the latter has 3.8G. The difference is not only in size, but the more essential difference is that CentOS-xxxx-LiveCD.ios can only be loaded into the memory and run, and cannot be installed. Only CentOS-xxx-bin-DVD1.iso can be installed on the hard disk. (2) CentOS-xxx-bin-DVD1.iso, Ce

Steps to enter CentOS 7 emergency repair mode Steps to enter CentOS 7 emergency repair mode Jan 13, 2024 am 09:36 AM

Open the centos7 page and appear: welcome to emergency mode! afterloggingin, type "journalctl -xb" to viewsystemlogs, "systemctlreboot" toreboot, "systemctldefault" to tryagaintobootintodefaultmode. giverootpasswordformaintenance(??Control-D???): Solution: execute r

Why can't I connect to Wi-Fi in Windows 10? Why can't I connect to Wi-Fi in Windows 10? Jan 16, 2024 pm 04:18 PM

When we use the win10 operating system to connect to a wifi wireless network, we will find a prompt that the wifi network cannot be connected and is restricted. For this kind of problem, I think you can try to find your own network in the Network and Sharing Center, and then make a series of adjustments. Let’s take a look at the specific steps to see how the editor did it~Why can’t Win10 connect to wifi? Method 1: 1. Right-click the wireless WIFI icon in the notification area at the bottom of the computer screen, select “Open Network and Internet Settings”, and then Click the "Change Adapter Options" button. 2. In the pop-up network connection interface, look for the wireless connection named "WLAN", right-click again, and select "Close" (or "Disable"). 3. Wait

How to set password rules in centos7? How to set password rules in centos7 How to set password rules in centos7? How to set password rules in centos7 Jan 07, 2024 pm 01:17 PM

Set password rules for security reasons Set the number of days after which passwords expire. User must change password within days. This setting only affects created users, not existing users. If setting to an existing user, run the command "chage -M (days) (user)". PASS_MAX_DAYS60#Password expiration time PASS_MIN_DAYS3#Initial password change time PASS_MIN_LEN8#Minimum password length PASS_WARN_AGE7#Password expiration prompt time Repeat password restriction use [root@linuxprobe~]#vi/etc/pam.d/system-auth#nearline15:

Solution to Win11 unable to display WiFi Solution to Win11 unable to display WiFi Jan 29, 2024 pm 04:03 PM

WiFi is an important medium for us to surf the Internet, but many users have recently reported that Win11 does not display WiFi, so what should we do? Users can directly click on the service under the search option, and then select the startup type to change to automatic or click on the network and internet on the left to operate. Let this site carefully introduce to users the analysis of the problem of Win11 computer not displaying the wifi list. Method 1 to resolve the problem that the Wi-Fi list cannot be displayed on the win11 computer: 1. Click the search option. 3. Then we change the startup type to automatic. Method 2: 1. Press and hold win+i to enter settings. 2. Click Network and Internet on the left. 4. Subsequently

How to solve the problem of not being able to connect to Wifi after updating Win11_How to solve the problem of not being able to connect to Wifi after updating Win11 How to solve the problem of not being able to connect to Wifi after updating Win11_How to solve the problem of not being able to connect to Wifi after updating Win11 Mar 20, 2024 pm 05:50 PM

Windows 11 system is currently the system that attracts the most attention. Many users have upgraded to Win 11. Many computer operations can only be completed after being connected to the Internet. But what should you do if you cannot connect to wifi after updating to Win 11? The editor will tell you about the update below. Solution to the problem of not being able to connect to wifi after win11. 1. First, open the Start menu, enter &quot;Settings&quot; and click &quot;Troubleshooting&quot;. 2. Then select &quot;Other Troubleshooting&quot; and click Run on the right side of the Internet connection. 3. Finally, the system will automatically help you solve the problem of unable to connect to wifi.

What is the reason why the wifi function cannot be turned on? Attachment: How to fix the wifi function that cannot be turned on What is the reason why the wifi function cannot be turned on? Attachment: How to fix the wifi function that cannot be turned on Mar 14, 2024 pm 03:34 PM

Nowadays, in addition to data and wifi, mobile phones have two ways to access the Internet, and OPPO mobile phones are no exception. But what should we do if we can’t turn on the wifi function when using it? Don't worry yet, you might as well read this tutorial, it will help you! What should I do if my phone’s wifi function cannot be turned on? It may be because there is a slight delay when the WLAN switch is turned on. Please wait 2 seconds to see if it is turned on. Do not click continuously. 1. You can try to enter "Settings>WLAN" and try to turn on the WLAN switch again. 2. Please turn on/off airplane mode and try to turn on the WLAN switch again. 3. Restart the phone and try to see if WLAN can be turned on normally. 4. It is recommended to try restoring factory settings after backing up data. If none of the above methods solve your problem, please bring the purchased

See all articles