Setup static ip on ubuntu-server 22.04 lts
Using netplan
First checkout your interface name:
Image 2. Now edit your netplan config file:
Now enter the following:
Here we have disabled DHCP and given a local ip with gateway and nameservers. 4. After saving the above file:
This will test the configuration and will ask to revert to default if some error is seen.
Last updated