Ubuntu Server 20.04 set static IP with netplan

First check if you have file

If the file exists, make sure, you have following content in it.


Replace all content with

In above cause is your static IP address. is the gateway. eth0 is network interface name.

Now try the chnages with

If all good, you can make changes permanent with

See IP

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published.