Ubuntu 12.04 cannot connect to a wireless network

Source: Internet
Author: User

  1. Build a network configuration file

    Wpa_passphrase SSID passwd > net.conf

  2. Configuring the NIC
    IfconfigWlan0 192.168.1.2Netmask255.255.255.0# Configure network card address
    Route add default GW192.168.1.1# Configure the default gateway
    IwconfigWlan0Txpower on                                                   # Turn on the wireless card
    IwconfigWlan0EssidSSID# Set the wireless network SSID
    IfconfigWlan0Up                                                                     #启动Wlan0


  3. Wpa_supplicant-i wlan0 - c net.conf -dwext # Connect to a wireless network


The above problem stems from my deletion pdnsd, causes all network unreachable, its reason deletes pdnsd when simultaneously deletes the Network-manager and the Network-manager-gnome package, after the network reinstall these two packages can solve.


Note: 1. The above italic part should be modified according to the individual situation

2. You can connect to the wireless network at this time, the following questions can be queried online

3. This method applies to WPA-encrypted wireless networks, which are not normally encrypted or unencrypted in this range

Ubuntu 12.04 cannot connect to a wireless network

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.