标签:work html netplan dhcp add 配置 yam aml 静态
包括Ubuntu 18.04和18.10,设置为静态IP及DNS。
sudo vim /etc/netplan/50-cloud-init.yaml
network: ethernets: enp4s0: addresses: [192.168.1.15/24] //IP地址 gateway4: 192.168.1.1 //网关 nameservers: addresses: [114.114.114.114, 202.96.128.86] //DNS dhcp4: no optional: no version: 2
sudo netplan apply
标签:work html netplan dhcp add 配置 yam aml 静态
原文地址:https://www.cnblogs.com/maluscalc/p/10612465.html