Re: DHCPD give lease to specific machine brand

2012-06-28 Thread Raymond Lillard

On 06/27/2012 08:58 AM, sven falempin wrote:

only way ?
http://ftp.openbsd.org/pub/OpenBSD/5.1/packages/i386/isc-dhcp-server-4.2.3.2.tgz

2012/6/27 sven falempinsven.falem...@gmail.com


Hello

Imagine i want all the brand X in subnet Y
WWW say :
It seems that ISC DHCP can do the trick:
class testclass {
match if substring (hardware, 1, 2) = 00:ad;
}




openbsd manpages has only :
host ncd1 { hardware ethernet 0:c0:c3:49:2b:57; }
so i f i want XX:XX:XX:*:*:* it s gonna be 16 millions lines of
declaration.


My solution to this problem has been to use dnsmasq.

They have an active mail list and the maintainer
has been responsive to my requests.  If you want
use this an internal subnet that is well protected
and not subject to miscreants, I think you would be OK.
It has worked well for me in a non-hostile environment.

I have no opinion if you want to use it on the
wild Internet or other hostile environments.

Ray



DHCPD give lease to specific machine brand

2012-06-27 Thread sven falempin
Hello

Imagine i want all the brand X in subnet Y
WWW say : 
It seems that ISC DHCP can do the trick:
class testclass {
match if substring (hardware, 1, 2) = 00:ad;
}


openbsd manpages has only :
host ncd1 { hardware ethernet 0:c0:c3:49:2b:57; }
so i f i want XX:XX:XX:*:*:* it s gonna be 16 millions lines of
declaration.

Shall i read the dhcpd code or someone can share a 'hidden' knowledge

Best regards.

-- 
-
() ascii ribbon campaign - against html e-mail
/\



Re: DHCPD give lease to specific machine brand

2012-06-27 Thread sven falempin
only way ?
http://ftp.openbsd.org/pub/OpenBSD/5.1/packages/i386/isc-dhcp-server-4.2.3.2.tgz

2012/6/27 sven falempin sven.falem...@gmail.com

 Hello

 Imagine i want all the brand X in subnet Y
 WWW say : 
 It seems that ISC DHCP can do the trick:
 class testclass {
 match if substring (hardware, 1, 2) = 00:ad;
 }
 

 openbsd manpages has only :
 host ncd1 { hardware ethernet 0:c0:c3:49:2b:57; }
 so i f i want XX:XX:XX:*:*:* it s gonna be 16 millions lines of
 declaration.

 Shall i read the dhcpd code or someone can share a 'hidden' knowledge

 Best regards.

 --

 -
 () ascii ribbon campaign - against html e-mail
 /\




-- 
-
() ascii ribbon campaign - against html e-mail
/\



Re: DHCPD give lease to specific machine brand

2012-06-27 Thread Nick Holland

On 06/27/2012 11:58 AM, sven falempin wrote:

only way ?
http://ftp.openbsd.org/pub/OpenBSD/5.1/packages/i386/isc-dhcp-server-4.2.3.2.tgz


OpenBSD's dhcpd is based on ISC's DHCP server, stripped down to the 
simplest standard needs.  This was done to keep the code clean, 
auditable and maintainable.


Your need is not quite standard.  There's the ISC everything including 
kitchen-sink product, which does what you need, go for it, use it. 
That's why its there, we don't pretend the OpenBSD dhcpd solves every 
problem...we mostly want to make sure it doesn't INTRODUCE problems.


Nick.


2012/6/27 sven falempinsven.falem...@gmail.com


Hello

Imagine i want all the brand X in subnet Y
WWW say :
It seems that ISC DHCP can do the trick:
class testclass {
match if substring (hardware, 1, 2) = 00:ad;
}




openbsd manpages has only :
host ncd1 { hardware ethernet 0:c0:c3:49:2b:57; }
so i f i want XX:XX:XX:*:*:* it s gonna be 16 millions lines of
declaration.

Shall i read the dhcpd code or someone can share a 'hidden' knowledge

Best regards.

--

-
() ascii ribbon campaign - against html e-mail
/\