Use your wireless network adapter-for later viewing

Source: Internet
Author: User
Tags get ip

1. the driver and iwconfig-tools have been installed.


2. Check whether the wireless network card is enabled. Use iwconfig to view the name of the local wireless network card. For example, wlan0.


3. Find the wireless network iwlist wlan0 scanning. Here we can also use sudo iwlist scanning to search for the wireless network with each Nic.


4. Use the Essid (such as TP-link) to set the interface,

Iface wlan0 Inet DHCP # or static, understand

Wireless-Essid TP-Link

Wireless-Key S: ABC # Set the password here if you have a password.

For temporary use, you can also set

Iwconfig wlan0 Essid TP-link key ABC


5. if an access point using WEP Key (encryption key: On) needs to know not only the WEP-Key of the Access Point, but also the key type (hexadecimal/plain text ), WEP System Format (Open/restricted ). 5.

For WEP-Key type, In hex format, the key is represented by a hexadecimal number, while in plain text (ASCII) mode, the key is represented by ASCII characters, s: prefix is required for use.

For WEP systems, Open Systems accept plaintext data frames, while restricted (restricted) systems discard plaintext data frames.

Note: Some translate restricted into "shared"


For example, you can use the following command to configure an open WEP access point in hexadecimal format:

Iwconfig eth1 Essid comcat_team open 23f2a

Use plain text and restricted WEP access points:

Iwconfig eth1 Essid comcat_team restricted S: rayslx


6. Common commands

Activate wireless interfaces

Iwconfig wlan0 up (it seems that this command does not work, you can use ifup wlan0)

View Nic status

Iwconfig wlan0

Get IP Address

Dhclient wlan0

Related Article

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.