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