The network configuration has changed in Ubuntu 18 from all the previous versions. The new version uses Netplan and it is somewhat harder if you don't know yaml. The discussion for pros and cons of this move by Ubuntu can be infinite (why change what's working; this is a tool, I don't want to learn the new ways, etc.), but this is a quick tutorial for quickly changing the IP address. (There's lot of information on Netplan and various things one can do with it)
The network configuration files are located in /etc/netplan. Configuration file can be opened as below:
With comments removed, this is the configuration data for a simple DHCP setup:
If you would like to setup a static IP, these are the options to use:
In the above example:
IP address: 172.16.0.15
DNS: 172.16.0.1, 184.108.40.206
No network or broadcast address needed. Subnet address is specified in the IP itself (ie: 172.16.0.15/24)
Reboot the server or restart the network by applying the configuration:
ALT IT Consulting is an IT Support company that provides assistance to clients with any technology issues, including Linux, Windows and Mac systems.
Original article has been posted on ALT IT Consulting Miami site.