手动配置 WIFI无线网络 (Ubuntu 16.04)

1. 修改 /etc/network/interfaces,添加无线网卡配置:

auto wlan0
iface wlan0 inet dhcp
wpa-ssid myssid
wpa-psk mypassword
dns-nameservers 192.168.0.1
2.

使用  static dns:

sudo rm /etc/resolv.conf 
sudo vi /etc/resolv.conf
添加:
nameserver 192.168.0.1

3. 先 disable NetworkManager:

charles@china:~$ sudo systemctl  stop NetworkManager.service  
charles@china:~$ sudo systemctl  disable  NetworkManager.service

4. 重启网络服务:

sudo systemctl  restart  networking.service

OVER!

你可能感兴趣的:(Linux)