Setting Up Network Interfaces in Ubuntu Server 12.04 LTS

In SHELL

 sudo nano /etc/network/interfaces

from :

auto eth0
iface eth0 inet dhcp

to :

auto eth0
iface eth0 inet static
   address 192.168.0.*
   network 192.168.0.0
   netmask 255.255.255.0
   broadcast 192.168.0.255
   gateway 192.168.0.1

Don’t forget to say THANX!!!