Static Network…in interfaces

sudo emacs /etc/network/interfaces

auto eth0
iface eth0 inet static
address 10.0.0.17
netmask 255.255.255.0
gateway 10.0.0.1
dns-nameservers 10.0.0.12

sudo /etc/init.d/networking restart

if /etc/resolv.conf keeps showing up empty after a reboot, take a look if it is not a link to /var/run/resolv.conf … if so, delete the link and create a real file in /etc and put “nameserver 208.67.222.222” in it.

Advertisements

~ by nambabwe on 2007/05/21.

 
%d bloggers like this: