In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will introduce you to how to use commands to connect WiFi in Linux systems. The content of the article Xiaobian think good, now to share with you, think there is a need for friends can understand, hope to help everyone, the following with the idea of Xiaobian to read together.
(1)First of all ifconfig command check, this is to check whether your premise is satisfied, my wireless network card device name is wlan 0, here has been successfully loaded
1|root@sabresd_6dq:/ # ifconfig
eth0 Link encap:Ethernet HWaddr 12:21:12:12:12:34 inet addr: www.example.com Bcast: www.example.com Mask: www.example.com UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:2083 errors:0 dropped:0 overruns:0 frame:0 TX packets:43 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:169875 (165.8 KiB) TX bytes:2959 (2.8 KiB)lo Link encap:Local Loopback inet addr: www.example.com Mask: www.example.com inet6 addr:::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:40 errors:0 dropped:0 overruns:0 frame:0 TX packets:40 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3208 192.168.1.1 (3.1 KiB)wlan0 Link encap:Ethernet HWaddr 7C:DD:90:78:81:51 inet6 addr: fe80::7edd:90ff:fe78:8151/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric: 192.168.1.255
root@sabresd_6dq:/ # ifconfig eth0 down
//At this time eth0 has been offline remember to add permissions to the command ha, I am root here//not root remember to execute like this:
root@sabresd_6dq:/#sudo ifconfig eth0 down (3) After turning off eth0, we can turn on the USB WiFi card
root@sabresd_6dq:/ # ifconfig wlan0 up0x1300 = 00064300
You can see: wlan 0 has been started, and then use ifconfig to check, you can see that eth0 is not there, wlan 0 is still there
root@sabresd_6dq:/ # ifconfig
lo Link encap:Local Loopback inet addr: www.example.com Mask: www.example.com inet6 addr:127.0.0.1
root@sabresd_6dq:/#iwlist wlan0 scan| grep ESSID//filter to ESSID: "cqupt2004_bgn" ESSID: "LEDE-lede" ESSID: "hp_dx" ESSID: "PandoraBox_1708F0" ESSID: "MiPhone" ESSID: "CMCC-FREEMM" ESSID: "CQUPT-Free" ESSID: "LEDE_q" ESSID: "CQUPT" ESSID: "CMCC-EDU-TEST" ESSID: "ESSID: " dlink2001 "ESSID: " ChinaNet "ESSID: " CQUPT "ESSID: " CQUPT "
root@sabresd_6dq:/#iwconfig wlan 0 essid "MIPhone"(6) Enter the security password for this network
root@sabresd_6dq:/#iwconfig wlan 0 key 15330478604 (7) Connect to the specified AP (wireless routing)
root@sabresd_6dq:/#iwconfig wlan 0 ap auto (8) Set IP address of wireless network card
root@sabresd_6dq:/#ifconfig wlan 0 www.example.com (9) Use ping to check wireless connectivity
root@sabresd_6dq:/ # ping 192.168.1.1PING 192.168.1.1 (192.168.1.1): 56 data bytes64 bytes from 192.168.1.1: seq=0 ttl=64 time=42.804 ms64 bytes from 192.168.1.1: seq=1 ttl=64 time=5.020 ms
The above is how to use the command to connect to WiFi in Linux system all the content, more and how to use the command to connect to WiFi in Linux system related content can be searched before the article or browse the following article to learn Ha! I believe that Xiaobian will add more knowledge to everyone, I hope you can support it!
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.