Your IP is: 3.80.177.176

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.

network:

  version: 2

  renderer: networkd

  ethernets:

    enp2s0f0:

     dhcp4: false

     addresses: [10.1.2.10/24]

     gateway4: 10.1.2.1

     nameservers:

       search: [ezref.info]

       addresses: [10.1.2.1]

 

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