Linux Ubuntu – Set static IP

Posted by themamakcorner November - 30 - 2011 0 Comment

(1) netstat -rn to check the kernel IP routing table. You’ll be seeing something like below:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface

(2) sudo vi /etc/network/interfaces to set the following :

auto eth3
iface eth3 inet static
address xx
gateway yy
netmask aa
network bb
broadcast cc

(3) restart networking so that it’ll take effect

sudo /etc/init.d/networking restart

Related Posts Plugin for WordPress, Blogger...