Virtual Networks
A guide of how to create virtual networks with the new ubuntu netplan
Setting up a network
Finding the interface and enable it
ifconfig -a
ifconfig eth1 upAddressing a static IP and a subnet
ifconfig eth1 10.0.1.2/24Setting it to the config
network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
- 10.10.10.2/24
gateway4: 10.10.10.1
nameservers:
search: [mydomain, otherdomain]
addresses: [10.10.10.1, 1.1.1.1]Last updated
Was this helpful?