In Ubuntu 18.04 the network configuration works different than in the previous Ubuntu versions. In this tutorial we show you how you can assign a static ip-address to your server.
The config file can be found in the "netplan" directory.
The config files are not named the same in different servers, but it will be the file with the ".yaml" ending.
This is how your file should look:
Fill in the parameters with the correct addresses. Some parameters may differ from this example. Only change the addresses and dhcp options.
Confirm your configuration with the following command: