Netplan Yaml File

Netplan is the new way on setting up the network in Ubuntu 18.04. The yaml file is located in /etc/netplan/filename.yaml, the contents of this file needs to be formatted correctly.


  version: 2

  renderer: networkd



     dhcp4: no

     addresses: []



       search: []

       addresses: []


To Apply the configuration run the command mentioned below, if the file is not formatted correctly, netplan will provide the exact location of the error in the yaml file.

netplan apply