How To Static IP Ubuntu 18.04 Bionic Beaver

Step 1: Set static IP address

1.1 List Netplan to see name of the configuration file





1.2.a Open the 50-cloud-init.yaml configuration file





1.2.b Edit the configuration file with your IP network parameters



Exit and Save

Step 2: Apply Netplan configuration

2.1 Apply settings



2.2 Optional: Debug the netplan apply command



2.3 Reconnect to the server with new IP

Step 3: Verify Connectivity

3.1 Check IP address



3.2 Check default route



3.3 Check internet connectivity



3.4 Check DNS