Ubuntu Server wireless network card Internet article
Recently, when installing the latest version of Ubuntu server, found that can not be networked, using the ifconfig-a command query, found no WLAN port, search a certain degree found that the following two blog can solve the LZ problem, hereby collate records.
This article reproduced the following two blog posts, thanks to two bloggers for their help.
"Ubuntu Server 14.04.4 Wireless card is not enabled, Wlan0 port is not found"
"Ubuntu Server 14.04.1 installation can use wireless, after installation can not use wireless problem"
Ubuntu server By default is not enabled wireless network card, think of the actual server can have wireless network card, hehe. So we need to manually enable the wireless card, the difficulty is here.
Using the Ifconfig command, there is no WLAN port, but using
sudo lshw-numeric-class network
sudo ifconfig-a
You can find the Wlan0 port, in fact, Ubuntu server does not enable the wireless network card by default, only need to change the configuration file to enable the wireless card.
1, install Wpasupplicant. Since the Ubuntu 10.04 Server has integrated this package, there is no need to install it. If it is a different version of Ubuntu Server, you can install it using the following command:
#apt-get Install Wpasupplicant
2, generate no line by the key. This step is based on the SSID and password of your wireless network to generate the configuration files that the WLAN needs. The order is as follows:
#wpa_passphrase Wireless network SSID wireless network password > profile name
For example, your wireless network SSID is Tp-link, the password is 123456, the generated configuration file name is/etc/wpa_config.conf, so enter:
#wpa_passphrase Tp-link 123456 >/etc/wpa_config.conf
Note that the/etc/wpa_config.conf file name can be taken at random, but please be careful not to have duplicate names.
3, set up a wireless network. Edit the/etc/network/interfaces file to add the WLAN to:
#vim/etc/network/interfaces
Add in the inside:
Auto Wlan0
iface wlan0 inet DHCP
wpa-conf/etc/wpa_config.conf
Note If your router does not have DHCP turned on, you will need to manually configure the address, netmask, Gateway, network, and broadcast parameters, not to mention here. The other is wpa-conf followed by the key profile name you just generated.
If you do not need to use a wired network, you can disable the wired network together, the auto eth0 will be commented out.
4, restart the computer. According to my actual operating results, the configuration is good, although the wireless card is enabled, but the driver does not seem to load the whole. Therefore, you will need to reboot the Ubuntu server to fully enable the wireless network card.
At this point, Ubuntu server can also use the wireless network card to connect to the wireless router Internet. Ubuntu Server wired network card internet article
Reference Bowen "Ubuntu under the Eth0 network card information is missing" after ifconfig only show lo, did not see Eth0
Configure Network card information
sudo vi/etc/network/interfaces
Auto Lo
Iface Lo inet Loopback
Auto Eth0
Iface eth0 inet DHCP
Turn on the ETH0 network card
Enter command line: ifconfig eth0 up #开启eth0
eth0 is displayed after ifconfig, but "inet/address/Broadcast/mask/" is not displayed
sudo dhclient eth0 #更新IP地址
ifconfig eth0