> match if substring (hardware, 1, 6);
Should read
#'MAC Address' >>may be<< 00:03:4e:56:f0:34 or 00034e56f034
match if substring (hardware, 1, 6) = "MAC Address" ;
Cheers,
Benjamin
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
>Behalf Of [EMAIL PROTECTED]
>Sent: Friday, June 17, 2005 2:56 PM
>To: [EMAIL PROTECTED]; [email protected]
>Subject: RE: [LUG] Refusing connections with DHCP
>
>I think George is trying to carry out selective banning -> You deny
>>>specific<< MAC addresses config info, all the rest get.
>
>You may use classes and pools to achieve this:
>
>#Create a class that will contain the soon to be banned MAC address.
>class "ban" {
> match if substring (hardware, 1, 6);
> }
>
>#specify a pool in which this MAC doesn't get an IP address.
>pool {
> deny members of "ban";
> range 10.0.29.10 10.0.29.230;
> }
>
>Let us know if it pans out.
>
>Cheers,
>
>Benjamin
>
>References : 1. http://www.bind9.net/dhcpd.conf
> 2. http://www.bind9.net/dhcpd.conf.5
> 3.
>http://maconlinux.net/linux-man-pages/en/dhcp-options.5.html
> 4. http://maconlinux.net/linux-man-pages/en/dhcp-
>eval.5.html
>
>
>
> >-----Original Message-----
> >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> >Behalf Of Ernest Byaruhanga
> >Sent: Friday, June 17, 2005 1:22 PM
> >To: [EMAIL PROTECTED]
> >Cc: Linux Users Group Uganda
> >Subject: Re: [LUG] Refusing connections with DHCP
> >
> >Lule George William wrote the following on 06/17/2005 11:23 AM:
> >> My problem now is that I want to be ban some MAC addresses from
> >picking an IP
> >> address completely!
> >
> >look at the very first declaration in the config: all unknown
>clients
> >are denied lease, apart from those defined by the stated MAC
>addresses.
> >
> >rgds
> >ernest
> >
>_______________________________________________
>LUG mailing list
>[email protected]
>http://kym.net/mailman/listinfo/lug
>%LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
_______________________________________________
LUG mailing list
[email protected]
http://kym.net/mailman/listinfo/lug
%LUG is generously hosted by INFOCOM http://www.infocom.co.ug/