Ubuntu DHCP Server

To install DHCP server from scratch
apt-get install dhcp3-server
When it installs you will see that it had a problem. Don't worry about this failure, we will fix it. I recommend before we make any changes that we do a backup of the config file.
cd /etc/dhcp3
mv dhcpd.conf dhcpd.conf.bak
nano dhcpd.conf
Here is some sample code for the DHCP configuration
# Sample /etc/dhcpd.conf
# (add your comments here) 
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name-servers 192.168.1.1;
option domain-name "gressick.local";

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}
For more information on this read from Ubuntu link Ubuntu DHCP3

if you want to install and LDAP version
apt-get install dhcp3-server-ldap
If you want to install the VERY light version of DHCP
apt-get install udhcpd

Comments

Popular posts from this blog

Console over SSH (ONTAP)

Cacti Monitor Server Step by Step Ubuntu

Brocade Zone Setup