ubuntu18.04网卡配置静态ip

cd /etc/netplan/
vim 50-cloud-init.yaml

network:
    version: 2
    ethernets:
       ens3:
              addresses:
                      - 192.168.1.134/24
              gateway4: 192.168.1.1
              nameservers:
                      addresses:
                              - 192.168.1.160
netplan apply
上一篇:Ubuntu20.04 网卡配置


下一篇:Ubuntu 18.04配置静态IP地址