To add some filter rules in conf file

Ashmath Khan hashmat.email at gmail.com
Wed Oct 14 15:03:03 UTC 2009


Oh yeah! sorry... i missed that part. It works now! thanks.


On Wed, Oct 14, 2009 at 7:21 PM, Reissom Beshir <Reissom_Beshir at mitel.com>wrote:

>
> As people mentioned in prior discussions, the server nomally provides
> options that the client has requested in the Parameter Request List (option
> 53).
>
> Are you trying to configure a PXE client?  I think the man page may have a
> section on that.
>
> It would help to know what you want to accomlish here and what client you
> are configuring.
>
> Regards,
> Reissom
>
>
> ----- Original Message ----- *From:* Ashmath Khan<hashmat.email at gmail.com>
> *To:* Users of ISC DHCP <dhcp-users at lists.isc.org> ; dhcp-users at isc.org ;
> dhcp1 at thehobsons.co.uk
> *Sent:* Wednesday, October 14, 2009 7:15 AM
> *Subject:* Re: To add some filter rules in conf file
>
> Hi,
>
> I even tried:
> class "rule1" {
> match if substring (option dhcp-client-identifier, 0, 5) = 01:00:19:7d:72;
> }
>
> subnet 192.168.1.0 netmask 255.255.255.0 {
>
> pool {
> option time-offset -12345;
> option boot-size 65000;
> range 192.168.1.66;
> allow members of "rule1";
> }
>
> default-lease-time 86500;
> max-lease-time 86500;
> option routers 192.168.1.254;
> option domain-name-servers 192.168.1.254;
> }
> => same result. option time-offset and boot-size are not sent as part of
> dhcp offer message.
>
> thanks
> Ashmath
>
> On Wed, Oct 14, 2009 at 4:25 PM, Ashmath Khan <hashmat.email at gmail.com>wrote:
>
>> Hi,
>>
>> I tried this:
>> class "rule1" {
>> match if substring (option dhcp-client-identifier, 0, 5) = 01:00:19:7d:72;
>>
>> option time-offset -12345;
>> option boot-size 65000;
>> }
>> subnet 192.168.1.0 netmask 255.255.255.0 {
>> pool {
>> allow members of "rule1";
>> range 192.168.1.66;
>> }
>> default-lease-time 86400;
>> max-lease-time 86400;
>> option routers 192.168.1.254;
>> option domain-name-servers 192.168.1.254;
>> }
>>
>> => it didn't work completely. I did get dhcp offer message but the
>> options: time-offset and boot-size were not sent as part of dhcp offer. Any
>> reasons ? How do I make it work ?
>>
>> thanks
>> Ashmath
>>
>>
>> On Tue, Oct 13, 2009 at 8:18 PM, Simon Hobson <dhcp1 at thehobsons.co.uk>wrote:
>>
>>> Ashmath Khan wrote:
>>>
>>> I want to add some filter rules into the configuration file.
>>>> For example, If I find string "Amino" in the option
>>>> dhcp-client-identifier, then the range would be  A, options B and if the
>>>> string is "Phone*" then the range would be C and options D.
>>>>
>>>
>>> Look at the section on classes in "man dhcpd.conf"
>>>
>>> --
>>> Simon Hobson
>>>
>>> Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
>>> author Gladys Hobson. Novels - poetry - short stories - ideal as
>>> Christmas stocking fillers. Some available as e-books.
>>> _______________________________________________
>>> dhcp-users mailing list
>>> dhcp-users at lists.isc.org
>>> https://lists.isc.org/mailman/listinfo/dhcp-users
>>>
>>
>>
>  ------------------------------
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20091014/07da7b8a/attachment-0001.html>


More information about the dhcp-users mailing list