How to solve the problem that centos7 cannot find the wireless network?
1. Switch to the super user
[Oscar@localhost 桌面]$ su root
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
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
3 .Enable wireless card
[root@localhost Oscar]# ip link set wlp2s0 up
4. Check wireless network card connection status
[Oscar@localhost 桌面]$ iw wlp2s0 link Not connected. (表示没有任何连接)
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
6. Connect to the wireless network
[root@localhost 桌面]# wpa_supplicant -B -i wlp2s0 -c <(wpa_passphrase "liylr" "useradmin") Successfully initialized wpa_supplicant
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
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
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!