Connecting VM to the Internet.
For Ubuntu 22.04, 20.04 and 18.04
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: no
dhcp6: no
addresses:
- address/32
nameservers:
addresses:
- 208.67.222.222
- 208.67.220.220
routes:
- to: 0.0.0.0/0
via: 144.217.253.254
on-link: true
match:
macaddress: maddressLast updated