home / blog

45 second DHCP server setup

Install.

sudo apt-get install dhcp3-server

Edit /etc/dhcp3/dhcpd.conf

option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1;

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.10 192.168.1.100;
}

Make sure the address of eth0 is in the 192.168.1.* subnet.

Restart it.

service dhcp3-server restart
This entry was posted in geek and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.