WPA_CLI and Wpa_supplicant Use, configure wireless AP name and password, static IP address

Source: Internet
Author: User
Tags bssid

Configure static IP method sharing:
Enter the following command from the serial command line:

1. Add a wireless network access point (AP) and its password:
# wpa_cli-p/data/misc/wpa_supplicant
WPA_CLI v0.5.11
Copyright (c) 2004-2008, Jouni Malinen and contributors

This program is a free software. You can distribute it and/or modify it
Under the terms of the GNU general public License version 2.

Alternatively, this software is distributed under the terms of the
BSD License. See README and COPYING for more details.


Selected interface ' eth0 '

Interactive mode

> Add_network
0
> Set_network 0 SSID "Camct_backup"
Ok
> Set_network 0 key_mgmt NONE
Ok
>
>
> Set_network 0 wep_key0 12345678901234567890123456
Ok
> Binder:release 1142:1142 transaction 2748 out, still active
Select_network 0
Ok
<2>ctrl-event-state-change Id=-1 state=2
>status
bssid=00:00:00:00:00:00
Ssid=camct_backup
Id=0
pairwise_cipher=wep-104
group_cipher=wep-104
Key_mgmt=none
wpa_state=completed

2. Configure the IP address:

#wpa_supplicant-dwext-ieth0-c/data/misc/wifi/wpa_supplicant.conf-b
Command explanation:
Parameter-B stands for the background run,-ieth0 represents the use of device Eth0,-dwex to represent the NIC chip is the wex,-c specified configuration file.

View Configuration
#wpa_cli-P/data/misc/wpa_supplicant
>Status                                                                      bssid=00:00:00:00:00:00                                                             ssid=camct_backup                                                                  id=0                                                                                pairwise_cipher=wep-104                                                             group_cipher=wep-104                                                              
Key_mgmt=none
wpa_state=completed
Configure IP:
#ifconfig eth0 192.168.177.33
Then look at the configuration and see ip_address=192.168.177.33

WPA_CLI and Wpa_supplicant Use, configure wireless AP name and password, static IP address

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.