This article covers how to set up your network interface using Netplan and NMTUI. Setting up the network interfaces is one of the most basic step that every system administrator and server engineers have to do to make it accessible over the network.
Netplan is based on YAML based configuration system that makes configuration process very simple. Netplan has replaced the old configuration file /etc/network/interfaces that we previously used for configuring network interfaces in Ubuntu.
To Restart the network service
1. Once all the configurations are successfully applied, restart the Network-Manager service by running the following command:
$ sudo systemctl restart network-manager
2. If you are using a Ubuntu Server, instead use the following command:
$sudo systemctl restart system-networkd
To Verify IP address
Now to verify if the new configurations are successfully applied, run the following command to verify the IP address:
$ ip a
The Netplan default configuration file is under the directory /etc/netplan.
You can find that using the following command:
$ ls /etc/netplan/
To view the content of Netplan network configuration file, run the following command:
$ cat /etc/netplan/*.yaml