Friday, January 28, 2011

Tech of the day: Debian static IP

My Dockstar has been getting its IP via DHCP. And I want to assign it a permanent IP address so I followed this guide. Basically commented out the line for dhcp in /etc/network/interface and add static IP like:
iface eth0 inet static
[tab]address 192.168.1.200
[tab]network 192.168.1.0
[tab]netmask 255.255.255.0
[tab]broadcast 192.168.1.255
[tab]gateway 192.168.1.1
[tab]dns-nameservers 192.168.1.1

Then I restarted networking:
/etc/init.d/networking restart