How to change Ubuntu Server from dynamic address (DHCP) to a static IP address?

You need to change addresses into following files: /etc/network/interfaces /etc/resolv.conf The following article from prefers vi editor, but I use nano editor. sudo nano /etc/network/interfaces change to something like this iface eth0 inet static      address      netmask      network      broadcast      gateway and DNS settings sudo nano /etc/resolv.conf and then restart sudo […]