Translator

The next version of Ubuntu is coming soon

Saturday, September 25, 2010

Add static IP on Ubuntu

edit --> /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static

address [ip address]
netmask [subnet mask]

broadcast [x.x.x.255]

gateway [ip gateway]

then
edit --> /etc/resolv.conf

nameserver [dns ip]

nameserver [external dns ip]

done

/etc/init.d/networking restart 
<-- restart network

0 comments:

Post a Comment