How to configure wireless network card under linux system?

  
                  

This article describes how to manually configure a wireless network card in the Linux command line interface. Most distributions that are currently popular support configuration with the graphical interface's network-manager without the original method described in this article.

The following describes how to configure the wireless network in the command line state using commands such as iwconfig and ifconfig. The premise is that the wireless network card driver has been properly installed and correctly identified by the system
.

General thinking The general idea of ​​the work is as follows:

Use iwconfig to turn on the wireless network card and find the wireless network in the area. Connect to the corresponding wireless network. Enable the wireless network card through ifconfig and obtain the IP address. (If using DHCP) Note: Assume that the wireless is recognized as wlan0. If your network card is not recognized as wlan0, you can make corresponding changes during operation.

Specific Process 1. Turn on the wireless network card power

iwconfig wlan0 txpower on

The wireless network signal should be on.

2. List the wireless network in the area

iwlist wlan0 scan

3. Assuming you want to connect to the network MyHome (that is, the network where essid is MyHome), enter the command

iwconfig wlan0 essid "MyHome"

If the network is encrypted and the password is 0123456789, then enter the command

iwconfig wlan0 essid "MyHome" key 0123-4567 -89

4. If it is normal, type

iwconfig wlan0

to see the parameters of the connection.

5. Enable wireless network card

ifconfig wlan0 up

6. If you are using DHCP to obtain IP, then use dhclient or dhcpcd to get ip

dhclient Wlan0

or

dhcpcd wlan0

7. The wireless card should now work properly.

PS:

If you can't connect to the Internet right now. Then click on the network icon. Choose to link to a hidden wireless network. Enter the name of the network found.

The graphical network manager is System->Preferences->Network Connections. After opening the program, click on the wireless network project and click add to add a new wireless network. Give any Connection Name. Enter the name of the unlimited network in the SSID. Choose a suitable encryption type in wireless security. Enter the password for the unlimited network in key.

Other fields are not modified. After execution, you should be able to link to an unlimited network. You can use the iwconfig wlan0 command to see if the wireless network is properly connected.

The output of the wireless network is not properly linked:

iwconfig wlan0 wlan0 IEEE 802.11abg ESSID: off/any Mode: Managed Access Point: Not-Associated Tx-Power=0 dBm Retry long limit: 7 RTS thr:off Fragment thr:off Power Management:off

Output after correct connection of wireless network:

iwconfig wlan0 wlan0 IEEE 802.11abg ESSID:"LilyHomeRout" Mode:Managed Frequency: 2.437 GHz Access Point: 00:23:CD:22:1A:A8 Bit Rate=54 Mb/s Tx-Power=0 dBm Retry long limit:7 RTS thr:off Fragment thr:off Power Management:off Link Quality=65 /70 Signal level=-45 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0

Copyright © Windows knowledge All Rights Reserved