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.

Edit

Replace all content with

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

Now try the chnages with

If all good, you can make changes permanent with

See IP

Leave a Reply

Your email address will not be published. Required fields are marked *