About

Information is always Worth to save ...

Saturday, March 24, 2007

Static IP on Linux

Follow the steps in the link below till 2. and in the third step do as..

http://kernel2kernel.blogspot.com/2007/03/
ethernet-device-setup-in-linuxexubuntu.html

step 3:

bash$cd /etc/network
bash$sudo vi interfaces
and type down as

auto eth0
iface eth0 inet static
address 192.168.X.X(The IP you want to setup)
netmask 255.255.255.0
gateway 192.168.1.1

save and exit

and
bash$sudo /etc/init.d/networking restart
bash$sudo dhclient eth0

No comments: