Netplan is used on Ubuntu systems to configure the network rather than tools like NMtui. Netplan uses config files, rather than a GUI to change the network config. To access a config file, we must access the /etc/netplan directory. In this directory, we add a config file for whatever we want to do. To set a static IP, we should be able to access the 00-installer-config.yaml file in the /etc/netplan directory. Below is a screenshot of how 00-installer-config.yaml should look once we are all set.
When writing the config, make sure to use only spaces and have a consistent indentation sequence, like two spaces. When we are finished writing this, use the command sudo netplan generate to check your yaml file is correctly written. Once the YAML file passes, we are able to use the command sudo netplan apply to confirm the configuration and apply the network config. Now, you have access to the internet.