Virtual Networks
A guide of how to create virtual networks with the new ubuntu netplan
Setting up a network
This example uses a pre-created vNet of the server provider. Two servers are connected to the same vnet. However, this is only the interface. Every other setting must be done manually.
Finding the interface and enable it
Addressing a static IP and a subnet
Setting it to the config
The previous settings are temporary. To make it static update the configuration found in /etc/netplan/[somefile].yml
.
The file should look similar to this:
/etc/netplan/[file].yml
We will now add our vnet.
/etc/netplan/[file].yml
Then apply the "netplan"
Last updated
Was this helpful?