Setting a Static IP Address on Ubuntu Server
This guide will cover the installation and setup of OpenSSH on Ubuntu Server 16.04 LTS.
eth0 section may look something like this:
Edit it to look like this (substitute the addresses below with your own):
Make sure you choose an address outside the DHCP server’s scope to avoid address conflicts.
Reboot the machine after saving.