Is it possible to give your computer a fixed ip-address ?


Short answer : Yes it is ! 😉

The end result, if I had followed above mentioned tutorial, would have been :

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.150
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 208.67.220.220 208.67.222.222

Long answer :

I really don’t like dnsmasq. Granted, at first it did make my iptables administration a lot easier ! As dnsmasq runs as user : nobody, which in practice means that I only had one rule, which allowed user nobody to connect to opendns’ name servers only. Et voila, Bob’s your uncle. 😉

Ok, so anyway here you can read/learn how to set things up properly, and here you can test if your efforts were fruitful. 😉

I did a search query, to see if the use of dnsmasq is an ubuntu specific beast (Well, you know their paradigm — from release to release : “ Change, for the sake of change. ” 😆 )

My search led me here : Understanding dnsmasq in Precise Pangolin.

And ultimately I followed the instructions — as I read them — on ubuntugeek, you need to edit the /etc/NetworkManager/NetworkManager.conf file.

One way to do so is (as root) :

gksudo gedit /etc/NetworkManager/NetworkManager.conf

Then change :

dns=dnsmasq

To :

#dns=dnsmasq
Path : /etc/NetworkManager/NetworkManager.conf

Path : /etc/NetworkManager/NetworkManager.conf

↑ See image.

Save, and exit the file, and then restart your network-manager.

Like so :

sudo restart network-manager

 — Source.

Now the whole point of this post is : To show you, how to give your computer a fixed ip-address. Allow me to show you how I did it, by means of using a few screenshots to clarify. 😉

NM applet : after right-clicking, and choosing network settings.

NM applet : after right-click, and choosing network settings.

NM applet : IPv4 Settings tab.

NM applet : IPv4 Settings tab.

In summary :
I’ve shown you how to setup a fixed ip-address, and I briefly wrote about, opendns, and iptables. ← To which I’ll refer, once I start writing more, about network related matters. Until then : “ Have fun tinkering, and don’t ever forget to make backups, of any system file you wish to edit. ” ← You’ll thank yourself later, that you did !

Target : Self