Wireless Card Configuration
This page was last changed by Linux wiki user chenxing on November 27, 2008 (Thursday) 09:28. On the basis of 1233456 of the work.
This article describes how to manually configure a wireless network card in the Linux command line interface. Most of the current popular distributions support easy configuration with graphical interface Network-manager without the use of the original method described in this article.
The following are instructions for configuring a wireless network in command line state using commands such as Iwconfig and Ifconfig. The previous question is that the wireless card driver has been properly installed and correctly identified by the system.
General Ideas
The general idea of work is as follows:
Use Iwconfig to turn on the power of the wireless card and find the wireless network in the area
Connect to the appropriate wireless network
Enable the wireless network card via Ifconfig and obtain the IP (if DHCP is used)
Attention:
Assuming that the wireless is recognized as WLAN0, if your network card is not recognized as wlan0, you can make the appropriate modifications during the operation.
Specific process
1. Turn on the wireless card power
Iwconfig Wlan0 Txpower on
2. List the wireless networks in the area
Iwlist wlan0 Scan
3. Assuming that you want to connect to a network myhome (that is, Essid is a myhome network), then enter the command
Iwconfig wlan0 Essid "MyHome"
If the network is encrypted and the password is 0123456789, enter the command
Iwconfig wlan0 Essid "MyHome" key 0123-4567-89
4. If normal, enter
Iwconfig Wlan0
You can see the parameters that are properly connected.
5. Enable the wireless card
Ifconfig wlan0 up
6. If you are using DHCP to obtain IP, then use dhclient or DHCPCD to obtain the IP
Dhclient Wlan0
Or
DHCPCD Wlan0
7. Now the wireless card should be able to use the normal
Linux under Link Wireless network