Ubuntu Wireless network connection in command line

Source: Internet
Author: User

After installed the the graphical card driver in Ubuntu, the GNOME desktop is not working anymore, needs to install and s Etup the Wireless network command line, herewith the procedure,


1, scan the available WiFi network,

sudo iwlist scan

2, receive the WiFi network password

Wpa_passphrase Yourssid Yourwifipassword

The result is similar as:

Network={ssid= "Yourssid" #psk = "Yourwifipassword" Psk=fe727aa8b64ac9b3f54c72432da14faed933ea511ecab1 5BBC6C52E7522F709A}

3, edit the/etc/network/interfaces

sudo vim/etc/network/interfaces

My configuration is as:

Auto Wlan0allow-hotplug wlan0       gateway 192.168.2.1       WPA-PSK "The password PSK just generated"       wpa-ssid " Yourssid "

4, restart the network and Wlan0

sudo/etc/init.d/networking restart

sudo ifdown wlan0sudo ifup wlan0


5, problem encountered, Canno access the external network

Ping 8.8.8.8 failed,

Ping www.google.com failed.

Ping the local area network successful,

Found the network go through the Wired interface eth0, deleted the eth0 configuration in The/etc/network/interfaces, then Restart the network service and wlan0, problem resolved.



Ubuntu Wireless network connection in command line

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.