Live Chat Software by Kayako
Configuring Networking for a VM Running Ubuntu 18.04
Posted by Thang Le Toan on 05 August 2018 08:29 AM
With OVH US Failover IPs, connecting your virtual machines to the Internet can be a breeze. Follow this tutorial to configure networking on your Ubuntu 18.04 VM.
Configuring Network Settings in an Ubuntu 18.04 VM
As of Ubuntu 17.x, Canonical has implemented the use of Netplan for easy-to-use network configuration.
To configure the network interface, open the
sudo vim /etc/netplan/01-netcfg.yaml
Edit the file to make it appear as follows:
# This file describes the network interfaces available on your system
In this file, replace the following pieces of information as instructed:
ip addr list
Now apply the Netplan settings with the following command:
sudo netplan apply
To test that the VM is fully connected to the Internet, ping example.com. If you get a response, you are good to go. If you do not, restart your VM and attempt the ping again.
Having read this article, you should be familiar with the steps that are required to configure the network settings on an Ubuntu 18.04 VM.