DHCP


Install DHCP

Retrieve DHCP from http://isc.org/products/DHCP/ The latest release as of2012-06-26is DHCP-4.2.4.

Looks like they still can't write a good makefile dhcpd doesn't seem to listen to the -lf option.It wants to write its leases file in /var/db, so I have to set localstatedir in the config.Also, the -4 option doesn't work so I turn off ipv6 in configure.

Set a variable for the version to use
VERSION="4.2.4"

Compile
mkdir /tmp/root
cd /tmp/root
tar xfvz dhcp-${VERSION}.tar.gz
cd dhcp-${VERSION}
./configure --prefix=/opt/services/dhcp-${VERSION} --localstatedir=/opt/services/dhcp-${VERSION}/var --disable-dhcpv6
make
make install

Post installation
cd /opt/services
ln -s dhcp-${VERSION} dhcp
mkdir dhcp-${VERSION}/init.d
mkdir -p dhcp-${VERSION}/var/db
touch dhcp-${VERSION}/var/db/dhcpd.leases

Create start/stop script
Save the attached dhcp startup script as /opt/services/dhcp-${VERSION}/init.d/nrao-dhcpd
chmod 755 /opt/services/dhcp/init.d/nrao-dhcpd
ln -s /opt/services/dhcp/init.d/nrao-dhcpd /etc/init.d
chkconfig --add nrao-dhcpd


Configure DHCP

Create config file
Save the attached dhcp configure script as /opt/services/dhcp/etc/dhcpd.conf
edit /opt/services/dhcp/etc/dhcpd.conf
Change the domain-name-servers
Chance the MAC addressess of the nodes and possibly add nodes


Start

Start
/etc/init.d/nrao-dhcpd start

-- KScottRowe - 2012-05-08
Topic attachments
I Attachment Action Size Date Who Comment
dhcpd.confconf dhcpd.conf manage 818 bytes 2012-08-30 - 16:57 KScottRowe dhcp configure script
nrao-dhcpdEXT nrao-dhcpd manage 945 bytes 2012-06-20 - 10:57 KScottRowe Start/stop script for DHCP in /opt/services/dhcp
Topic revision: r17 - 2017-03-13, KScottRowe
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback