This is set a static IP instruction in Ubuntu-Server 18.04
By askubuntu.com Then replace your configuration, for example, the following lines: Apply changes: In case you run into some issues execute: [NOTE]: /24 is equivalent with 255.255.255.0 ens160 is your ethernet name, you can get it using $ ifconfig Ubuntu 16.04 and 14.04 network-interface configuration have a different method. The file is in YAML format: Use spaces, no tabs. Continue reading This is set a static IP instruction in Ubuntu-Server 18.04