Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure Wireless Network Card under linux system

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to configure the wireless network card under the linux system". In the daily operation, I believe that many people have doubts about how to configure the wireless network card under the linux system. The editor consulted all kinds of materials and sorted out the simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to configure the wireless network card under the linux system". Next, please follow the editor to study!

The general idea of the work is as follows:

Use iwconfig to power on the wireless network card and find the wireless network in the area

Connect to the appropriate wireless network

Enable the wireless network card through ifconfig and get the IP (if using DHCP)

Note:

Assuming that wireless is recognized as wlan0, if your Nic is not recognized as wlan0, you can modify it during operation.

Concrete process

1. Power on the wireless network card

Iwconfig wlan0 txpower on

The signal light on the wireless network should be on.

two。 List the wireless networks in the area

Iwlist wlan0 scan

3. Suppose 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, enter the command

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

4. If normal, enter

Iwconfig wlan0

You can see the parameters of the normal connection.

5. Enable wireless network card

Ifconfig wlan0 up

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

Dhclient wlan0

Or

Dhcpcd wlan0

7. Now the wireless network card should be able to use normally.

PS:

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

The graphical network manager is System- > Preferences- > Network Connections. After opening the program, click the wireless network project and click add to add a new wireless network. Give an arbitrary Connection Name. Enter the name of the infinite network in SSID. Select an appropriate encryption type in wireless security. Enter the password for the infinite network in key.

No other fields are modified. After execution, you should be able to link to the unlimited network. You can use the iwconfig wlan0 command to see if the wireless network is connected correctly.

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 correctly linking the 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

At this point, the study on "how to configure a wireless network card under the linux system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report