ITMan Documents

This Weblog Just Created For Document Sysadmin Challenges

Netplan Static IP Address

Configuring Netplan for Static IP Address on Ubuntu

vim /etc/netplan/01-netcfg.yaml
network:
  version: 2
  renderer: networkd
  ethernets:
    ens160:
      dhcp4: no
      addresses: [192.168.1.224/24]
      gateway4: 192.168.1.1
      nameservers:
              addresses: [192.168.1.1]
              search: [example.com]
      optional: true

Last updated on 26 Oct 2019
Published on 23 Nov 2018