The general idea of linux wireless network card command configuration is as follows: Use iwconfig to enable the power of the wireless network card, and find the wireless network in the region to connect to the corresponding wireless network www.2cto.com to enable the wireless network card through ifconfig, and specify or obtain the IP # Turn on the wireless network card power iwconfig wlan0 txpower on # list the wireless network iwlist wlan0 scan in the region
# If you want to connect to the network MyHome (that is, the network where essid is MyHome), enter the command iwconfig wlan0 essid "MyHome" www.2cto.com # If the network is encrypted, the password is 0123456789, enter the command iwconfig wlan0 essid "MyHome" key 0123-4567-89 # If it is normal, enter the following command to view the parameters of the normal connection.
Iwconfig wlan0 # enable the network ifconfig wlan0 up for the wireless network adapter # If DHCP is used to obtain the IP address, use dhclient or dhcpcd
Ip dhclient wlan0 # Or dhcpcd wlan0 # The Wireless Network Adapter should be ready for use now