Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: rmclay on December 28, 2009, 06:09:41 PM

Title: DHCP lease pool based on MAC addresses
Post by: rmclay on December 28, 2009, 06:09:41 PM
Hello,

I am currently using SME Server 7.4 to PXE boot various devices from computers to cisco routers.  Based on this I would like to achieve the following:

 Have the DHCP pool give out IP addresses as normal, but based on the first 3 octets of the
 client MAC address, pass the relevant bootfile option to the client PC.  For example, if the
 MAC was in the range 00:0C:29:00:00:00 --> 00:0C:29:FF:FF:FF, it would pass the
 parameter pxelinux.0.  Whereas 00:AA:21:00:00:00 --> 00:AA:21:FF:FF:FF would be given
 the parameter startup-config.

 I am not looking to map certain MAC addresses to a fixed DHCP lease, as the MAC addresses will be constantly changing.  I will however, know the vendor's OUI and can use a MAC address range.  If the standard SME DHCP server does not handle this, I know the open source dualserver from http://dhcp-dns-server.sourceforge.net/ does support this method.

I have also noticed that the contrib at http://wiki.contribs.org/Tftp_server is out of date, but when trying to email the author, I receive an error saying the email address does not exist.  Is the another way to pass this message on...?

Thanks,
Robert
Title: Re: DHCP lease pool based on MAC addresses
Post by: tkibugu on December 28, 2009, 07:55:04 PM
Hello, I found something interesting at http://ubuntuforums.org/showthread.php?t=675257. HTH
Title: Re: DHCP lease pool based on MAC addresses
Post by: cactus on December 28, 2009, 10:29:02 PM
A lot more on configuring dpcpd.conf can be found in the man file:
Code: [Select]
man dhcpd.conf
To make modifications stick you will have to modify copy of original template fragments in the templates-custom tree, more on this can be found in the SME Server Developers Guide linked in the wiki.