Setup static IP under Ubuntu

Ok, I ditched Microsoft and change my household computers and laptops to Ubuntu 14.04 :)

After a week long searching the internet how to get a static ip-address on Ubuntu 14.04 I finally found a way ...

It seems the network-manager is overwriting (or by-passing) my /etc/network/interfaces every single time, I thought of removing it but decided on trying to use it first.

Go to the right upper corner and click the network icon, go down to the bottom and right click edit connections.

This opens network connections and choose the connection to change, click edit and go to IPv4 settings. Choose Method: Manual and then fill in the Address, Netmask and Gateway ... and your desired DNS server.

Just save and your done ... it will change to the given static IP-address on the fly ... even after reboot!!

This might be an old thread, but after a week of searching I updated the 10 first hits in Google ... hope to safe other people some time!!

Take care!


Your gateway is incorrect (gateway 192.168.2.0). This is not a valid IP and you should substitute it with your router's IP address.