1. 先获取网卡名称
ifconfig -a
2. 配置IP
sudo vim /etc/network/interfaces
3. DNS设置
vi /etc/resolvconf/resolv.conf.d/base
nameserver 114.114.114.114
4. 重启电脑
reboot
ifconfig -a
sudo vim /etc/network/interfaces
vi /etc/resolvconf/resolv.conf.d/base
nameserver 114.114.114.114
reboot
本文标题:ubuntu 16 设置静态IP
本文链接:https://www.haomeiwen.com/subject/eyfgyctx.html
网友评论