

Now verify all the available network interfaces again, the ens33 Ethernet interface should now be connected to the local network and have an IP address as shown in the screenshot below. Then use the following netplan command to apply the most recent network changes. The address attribute of the interface is expected to have a sequence entry, such as or (for more information, please refer to the netplan man page).


Important: If the YAML file was not created by the release installer, you can use this command to generate the required configuration for the renderer.

As shown in the figure, use vim to open the netplain configuration file. In this example, we configure a static IP for the ens33 Ethernet network interface. You can use the ifconfig command to list all connected network interfaces in the system, as shown in the figure.įrom the output of the above command, we have 2 interfaces connected to the Ubuntu system: 1 Ethernet interface and loopback interface. List all active network interfaces on Ubuntuįirst, you need to determine the network interface to be configured. We will explain how to use the Netplan utility to configure a network static or dynamic IP address for a network interface in Ubuntu 18.04. It reads the network configuration described in /etc/netplan/*.ymal, and can store the configuration of all network interfaces in these files. It can be used as an interface to the kernel together with NetworkManager and systemd-networkd network daemons (called renderers, you can choose which one to use). It allows you to use YAML abstraction to configure network interfaces. Netplan is a new command line network configuration utility introduced in Ubuntu 17.10 for easy management and configuration of network settings in Ubuntu systems.
