Linux under Link Wireless network

Source: Internet
Author: User

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

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.