Then change the dhcp4 value to no, and configure the static IP address details, including DNS and Gateway addresses as shown below. The device type can be ethernets, bonds, bridges, or vlans. Some may be named 01-netcfg.yaml, 50-cloud-init.yaml, etcs.Īfter editing the file above, run the commands below to open the network configuration file for the network interfaces. The network configuration file will differ from setup to setup. You’ll probably find one or two YAML files in this directory. Netplan configuration files are stored in the /etc/netplan directory and have the extension. Ubuntu uses a ‘Predictable Network Interface Names’ that, by default, start with en.
When you use NetworkManager as the renderer, you will use the NetworkManager GUI to manage the interfaces. The new interfaces configuration file now lives in the /etc/netplan directory. NetworkManager is mostly used on Desktop machines while the Systemd-networkd is used on servers without a GUI.
Netplan currently supports two renderers NetworkManager and Systemd-networkd. Since the release of Ubuntu 17.10, Netplan is now the default network configuration tool to manage network settings replacing the configuration file /etc/network/interfaces that was used in previous versions.
If you’re not going to be using a dedicated system for IP management, then configuring individual system with unique IP address may be your next option.