If you are facing the problem there are chances you might not get the ip address in the output. For the naive people, in simpler words the output will be just one para and not 2 as it should be.
Try this link
For me this link didn't work but for many the above link worked so try that out first.
1. sudo vi /etc/network/interfaces
you will see the lines:
iface eth0 inet dhcp
iface eth0 inet static
2. sudo nano /etc/resolv.conf
Paste below lines:
now restart your network with:
3.sudo /etc/init.d/networking restart
If this gives response, your net is working ....Hurray!
6.sudo service network-manager restart
This is basically called static ip.
Let me know whether it works or else what error u get take a screenshot and mail me.