Apathy on Company Time - Something to Believe In!


Please note that DHCPReg is no longer actively being maintained.

The DHCPReg Utils were born from the cable modem project our company was rolling out. We basically wanted to make sure that cable modems couldn't come online without registering. The routers were set to only accept arp from CPEs that got dhcp addresses (I don't know how...Cisco routers are magical beasts).

Version 2.0 of DHCPReg has been released and is available in the dist dir (linked below).

The README talks about the usage of DHCPReg.

The CHANGES talks about the modifications to DHCPReg. It's available in the tarball or RPM.


We are a Redhat shop, so I made some RPMs for dhcpreg. There's also a tarball included here as well. Installation is pretty easy...either do:

rpm -ivh dhcpreg-{%version}-1kiva.noarch.rpm

or unpack the tarball and do: make install

That's it. Nothing huge.

This does require the dhcpd process to be restarted for any change to take effect. We get around this problem in an odd way. The changes aren't actually made on the dhcp server. Only the admins actually have accounts there. We have the conf file on the shell server where techsup, billing, and the lan support folks log in. They make changes using the utils and the conf file is propagated via an ssh-ized rsync. That job also drops a time stamp and restarts the server if the timestamp is newer than the file date. That job looks like this (it runs in a Makefile as part of the prop process):

DEPENDS = dhcpd.conf

all: .timestamp

.timestamp: $(DEPENDS)

@/etc/rc.d/init.d/dhcpd restart

@echo "restarting dhcpd" > .timestamp

I'm really interested in refining these and making them bigger and better. I've already gotten a suggestion or two, but am always open to more. My contact email is at the bottom of the page. Let me know if things are good, what could be improved, or if you have improvements you'd like to submit back to the package.

dhcpreg rpms/srpms/tarballs:

SLIS L594 Research Project Write-up on DHCPReg 2.0beta

Back to software