Line command:Cat/proc/net/dev See what is eht wlan what may not be eth0 eth1 but eth3432213213
Configuring the/etc/network/interfaces File
sudo nano/etc/network/interfaces
Uto Lo//indicates the use of localhostiface eth0 inet DHCP//indicates that if there is a network card ech0, then use DHCP to obtain an IP address (this network card is the local network card, not the WiFi network card) Auto Wlan0//Indicates if there is a WLAN device, Using the WLAN0 device name Allow-hotplug wlan0//indicates that the WLAN device can be hot-swappable iface wlan0 inet DHCP//indicates that if there is a WLAN Nic Wlan0 (that is, the WiFi network card), the IP address is obtained with DHCP Wpa-ssid "Your WiFi Name"//indicates the connection SSID name WPA-PSK "Your WiFi password"//means to connect WiFi network, use WPA-PSK authentication method, authentication password
sudo
/etc/init
.d
/networking
restart
sudo
The service networking restart
#跟上面行的作用一样。
ifconfig command can see the WLAN0 device and has an IP address (connected).
Sometimes you need to perform sudo ifdown wlan0 and sudo ifup wlan0 to work, and if not, sudo reboot it.
Raspberry Pi 2 + ubuntu rtl8188 wlan0 eth0 Nodevice