Sunday, May 30, 2010

Static IP setting on Ubuntu10.04

following command is used to set static ip in Ubuntu10.0.4

#nano /etc/network/interfaces


auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.22
netmask 255.255.255.0
gateway 192.168.1.1

auto eth0:1
iface eth0:1 inet static
address 122.180.104.171
netmask 255.255.255.248
gateway 122.180.104.169

<$static Ip$>