欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2022-06-06 16:08:49
...

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:

[email protected]:~$ sudo systemctl  stop NetworkManager.service  
[email protected]:~$ sudo systemctl  disable  NetworkManager.service

4. 重启网络服务:

sudo systemctl  restart  networking.service

OVER!