Static IP on Ubuntu Server 12.04


jmprieto@dev-server:~$ sudo vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.2.54
netmask 255.255.255.0
gateway 192.168.2.1
jmprieto@dev-server:~$ sudo /etc/init.d/networking restart
sudo vi /etc/resolv.conf 
nameserver 192.168.2.1
nameserver 8.8.8.8
namserver  8.8.4.4
Anuncios
Static IP on Ubuntu Server 12.04