How to solve centos7 cannot find wireless network

WJ
Release: 2020-06-02 16:11:19
Original
8029 people have browsed it

How to solve centos7 cannot find wireless network

How to solve the problem that centos7 cannot find the wireless network?

1. Switch to the super user

[Oscar@localhost 桌面]$ su root
Copy after login

2. Query the available wireless network cards, where red is the network card number

[Oscar@localhost 桌面]$ iw dev
phy#0
   Interface wlp2s0
       ifindex 3
       wdev 0x1
       addr a4:db:30:84:4b:1c
       type managed
Copy after login

Note that if you successfully connect to the network, it should look like this. The ssid is the name of the broadcast channel, which is your wireless network signal. The broadcast channel is the last one

[root@localhost 桌面]# iw dev
phy#0
   Interface wlp2s0
       ifindex 3
       wdev 0x1
       addr a4:db:30:84:4b:1c
       ssid liylr
       type managed
       channel 11 (2462 MHz), width: 40 MHz, center1: 2452 MHz
Copy after login

3 .Enable wireless card

[root@localhost Oscar]# ip link set wlp2s0 up
Copy after login

4. Check wireless network card connection status

[Oscar@localhost 桌面]$ iw wlp2s0 link
Not connected.    (表示没有任何连接)
Copy after login

5. Check all available wireless network signals

[root@localhost 桌面]# iw wlp2s0 scan | grep SSID
   SSID: USER-20150101NS_Network_2
    SSID: Tenda_17BEF8
    SSID: PC-20140723DBVC_Network_1
    SSID: 123
    SSID: Tenda_0A6410
    SSID: xiaohui
    SSID: Tenda_51E4F0
    SSID: Nobody Can
    SSID: TP-LINK_3C479
    SSID: FUCK YOU
    SSID: Tenda_046260
    SSID: Tenda_188E80
    SSID: liylr
    SSID: XIAORUAN
Copy after login

6. Connect to the wireless network

[root@localhost 桌面]# wpa_supplicant -B -i wlp2s0 -c <(wpa_passphrase "liylr" "useradmin")
Successfully initialized wpa_supplicant
Copy after login

Note: liylr is the wifi signal to be connected to, useradmin is the password of the wireless network, please replace it.

7. Assign an IP address (control the network card through dhclient to perform network operations to obtain the IP)

[root@localhost 桌面]# dhclient wlp2s0
Copy after login

8. View the wireless network card address information, which is represented by the IP address The network connection is successful and you can surf the Internet

[root@localhost 桌面]# ip addr show wlp2s03: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether a4:db:30:84:4b:1c brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.101/24 brd 192.168.1.255 scope global dynamic wlp2s0
      valid_lft 7195sec preferred_lft 7195sec
    inet6 fe80::a6db:30ff:fe84:4b1c/64 scope link
      valid_lft forever preferred_lft forever
Copy after login

Related reference:centOS tutorial

The above is the detailed content of How to solve centos7 cannot find wireless network. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template