In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the CentOS7 command line how to link wifi, the article is very detailed, has a certain reference value, interested friends must read it!
1. First, switch to the super administrative user
[user@localhost] $su root
2. Check the currently available network cards. The ones marked in red are the network cards. Not all of them are the same.
[root@localhost] $iw dev
Phy#0
Interface wlp2s0
Ifindex 3
Wdev 0x1
Addr a4:db:30:84:4b:1c
Type managed
The above is the print information of the unconnected network, and if it is already connected, it is as follows:
[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
Ssid is the name of the broadcast channel, that is, your wireless network signal, and the broadcast channel is the last
3. View the initial status before the connection
[root@ localhost] # ifconfig wlp2s0
Wlp2s0: flags=4098
< BROADCAST,MULTICAST>Mtu 1500
Ether 60:d8:19:cc:74:84 txqueuelen 1000 (Ethernet)
RX packets 13547 bytes 13381624 (12.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12659 bytes 1974514 (1.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
4. Test whether the network has been linked
[root@ localhost] # iw wlp2s0 link
Not connected.
5. Obtain SSID
[root@ localhost] # iw wlp2s0 scan | grep SSID
Command failed: Network is down (- 100)
The wireless network is not activated, activate it first.
[root@ localhost] # ifconfig wlp2s0 up
[root@ localhost] # ifconfig wlp2s0
Wlp2s0: flags=4099
< UP,BROADCAST,MULTICAST>Mtu 1500
Ether 60:d8:19:cc:74:84 txqueuelen 1000 (Ethernet)
RX packets 13547 bytes 13381624 (12.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12659 bytes 1974514 (1.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
6. View 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
7. Connect to the wireless network
[root@localhost] # wpa_supplicant-B-I wlp2s0-c mtu 1500
Inet 192.168.168.139 netmask 255.255.255.0 broadcast 192.168.168.255
Inet6 fe80::62d8:19ff:fecc:7484 prefixlen 64 scopeid 0x20
Ether 60:d8:19:cc:74:84 txqueuelen 1000 (Ethernet)
RX packets 13567 bytes 13386147 (12.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12682 bytes 1979923 (1.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
The above is all the contents of the article "how to Link wifi on the CentOS7 Command Line". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.