How to assign a Static IP address to an Ubuntu Box

How to assign a Static IP address to an Ubuntu Box

sudo nano /etc/netplan/02-network-manager.yaml

The file name can be different

sudo nano /etc/netplan/02-network-manager-all.yaml

Configure as below:

#Run:

sudo netplan apply

Check if you have an IP

ip address show

Leave a Reply