I needed to set a static IP on my Ubuntu 12.04-x64 and googling around I found this simple way of doing it that I’ll share with you.
To see the current details about your connection, write on a terminal:
This way you’ll be able to see your current IP, Netmask, Gateway and DNS server.
To change these parameters, simply write on a terminal:
or if you prefer, click on the Network icon on the top bar and then ‘Edit Connections…’,
Then a window shows up, select the desired connection and then ‘Edit…’
On the new window, select IPv4 separator, change the method from ‘Automatic’ to ‘Manual’ and and click on ‘Edit’ button to add the static parameters.
After saving the modifications, you should write this on a terminal:
$ sudo service resolvconf restart $ sudo service networking restart
or if you prefer, restart the computer.
You may confirm that everything went as expected with the NetworkManager Tool,
This post is based on G-Man’s post, http://www.sudo-juice.com/how-to-a-set-static-ip-in-ubuntu/