[lug] dhcp leases based on first 6 digits of mac address

Hugh Brown hugh at math.byu.edu
Fri Mar 12 18:16:24 MST 2004


On Wed, 2004-03-03 at 22:25, David Anselmi wrote:
> hugh at math.byu.edu wrote:
> > I'm trying to figure out how to grant a lease to any machine based on the
> > manufacturer portion of the mac address (e.g.  f0:0f:00:* should get a
> > lease).  The dhcp server denies unknown clients and needs to stay that
> > way.  Does anyone know how to tell the ISC dhcp server to treat f0:0f:00:*
> > as known clients without having to list all 16^6 possible addresses?
> 
> It seems to be possible with version 3 of dhcpd:
> 
> match if substring (hardware, 1, 2) = 00:FF;
> 
> Not sure of the syntax, check the man page.  If this is possible with 
> version 2 it is undocumented.
> 
> A complete example is at:
> 
> http://openvpn.sourceforge.net/INSTALL-win32.html
> 
> (grep for the above, it's a ways down).
> 
> HTH,
> Dave
> 

That looks to be exactly what I need.  I did a search on match in the
dhcpd man page but didn't find anything (as I write this it occurs to me
that i should look in the man page for dhcpd.conf).  

Thanks for the help.

Hugh




More information about the LUG mailing list