# /etc/netplan/01-netcfg.yaml netplan configuration file network: version: 2 ethernets: eth0: optional: true dhcp4: no addresses: [192.168.1.231/24] gateway4: 192.168.1.1 nameservers: addresses: [192.168.1.1, 8.8.8.8]