ubuntu18.04设置静态IP
作者:互联网
添加网卡配置
sudo vim /etc/netplan/01-network-manager-all.yaml
network:
ethernets:
ens33:
dhcp4: no
addresses: [192.168.8.166/24]
gateway4: 192.168.8.1
nameservers:
addresses:
- 192.168.8.1
- 8.8.8.8
- 114.114.114.114
version: 2
renderer: networkd
sudo netplan apply
标签:8.1,addresses,静态,IP,sudo,192.168,8.8,ubuntu18.04,network 来源: https://www.cnblogs.com/greene/p/15579433.html