sudo nano /etc/netplan/00-installer-config.yaml
- Copy and paste (or type) the following then, edit it where needed. The spaces/indentions, version number, etc matter. Each indention is 2 spaces.
network: version: 2 ethernets: ens290: addresses: [172.16.0.50/24] gateway4: 172.16.0.1 nameservers: addresses: [8.8.8.8, 8.8.4.4]
- When you're finished press CTRL+X
- Press Y to save, then press enter for the file name (keep the file name)
- Reboot with sudo shutdown -r now
When the server boots up, login and try to ping the gateway then try to ping one of the DNS servers.