AP search and Connection Methods for WiFi in Linux

Source: Internet
Author: User


Wpa_supplicant-dwext-ieth1-C/etc/wpa_supplicant.conf &
Wpa_cli save_config
Wpa_cli reconfigure
Wpa_cli list_networks
Wpa_cli status
Wpa_cli remove_network 0
Wpa_cli-ieth1 scan // search for Wireless Networks
Wpa_cli-ieth1 scan_results // Display Search Results
Wpa_cli-ieth1 add_network

For example:
Wpa_cli-ieth1 add_network
Wpa_cli-ieth1 set_network 1 SSID "test_ip"
Wpa_cli-ieth1 set_network 1 key_mgmt none
Wpa_cli-ieth1 set_network 1 wep_key0 "2223344"
Wpa_cli-ieth1 set_network 1 wep_tx_keyidx 0
Wpa_cli-ieth1 select_network 1
Wpa_cli-ieth1 enable_network 1
Wpa_cli-ieth1 quit
Wpa_cli-ieth1 dhclient eth1

Wpa_supplicant-dwext-ieth1-C/etc/wpa_supplicant.conf &
Wpa_cli-ieth1
Add_network (assume returns 1)
Set_network 1 SSID "test_ip"
Set_network 1 key_mgmt none
Set_network 1 wep_key0 "123456" // "your AP passwork" (if Usting ASCII, it need double quotation marks, if using hex, then don't need the double quotation marks)
Set_network 1 wep_tx_keyidx 0
Select_network 1 (optional, remember, if you are connecting with another AP, you should select it to disable the another)
Enable_network 1
Quit
Dhclient eth1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.