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...