Ubuntu14.04 connect to the wired network and wireless network under command line, and ubuntu14.04 Wireless Network

Source: Internet
Author: User

Ubuntu14.04 connect to the wired network and wireless network under command line, and ubuntu14.04 Wireless Network

The Network Manager of the ubuntu Network Manager was inexplicably unable to connect to the wireless Network, so it began to solve this problem yesterday:

I. Uninstall

1. step 1 uninstall Network-Manager (I did not pay attention to the Case sensitivity of the specific letters. If Network-Manager fails, replace it with network-manager and uninstall it, then the fan-shaped network connection pattern in the upper right corner disappears)

Run the following command on the terminal: sudo apt-get remove Network-Manager.

2. Connection Methods for wired and wireless network interfaces

2. Step 2 (for the procedure of operating a wired network card, assume that the identification of the wired network card in the system is eth0 ):

2.1 disable a wired NIC:

Command under the terminal: sudo ifconfig eth0 down

2.2 restart a wired NIC:

Command under the terminal: sudo ifconfig eth0 up

2.3 obtain the IP address through dhclient

Terminal command: sudo dhclient eth0)

 

2. Step 2 (for the procedure of operating the wireless network card, assume that the wired network card is identified as wlan0 in the system ):

2.1 disable a wired NIC:

Command under the terminal: sudo ifconfig wlan0 down

2.2 restart a wired NIC:

Command under the terminal: sudo ifconfig wlan0 up

2.3 configure the wpa_supplicant.conf configuration file

2.5 use wpa_supplicant to connect to a hotspot

2.4 obtain the IP address through dhclient

Command under the terminal: sudo dhclient wlan0

Not complete...

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.