Possible causes:
Check how many network cards are installed in your system and if you are configuring the correct NIC card
Check the interfaces configuration settings
$ cat /etc/network/interfaces
Do not forget to restart the networking daemon after each change
$ sudo /etc/init.d/networking restart
(more…)