<html><head><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}

p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style><style><!--
.EmailQuote {
margin-left:1pt;
padding-left:4pt;
border-left:#800000 2px solid;
}


--></style></head><body><div data-externalstyle="false" dir="ltr" style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:12pt;"><div> </div><div data-signatureblock="true"><div> </div><div>Sent from Windows Mail</div><div> </div></div><div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;"><div><br>
----------------------------------------------------------------------<br>
Steve</div><div> </div><div>the client is in dynamic pool, so host statement can not be use, am I right?</div><div> </div><div>if so, the only thing I can change is change that class “windownRIS”, am I right?</div><div> </div><div>can I use other option to help  select  the server-identifier, for example, can I use relay agent ip address? because the relay agent will be always the 10.1.1.1?</div><div> </div><div>please advice</div><div> </div><div>julie<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Tue, 19 Nov 2013 08:55:24 +0000<br>
From: Steven Carr <sjcarr@gmail.com><br>
To: Users of ISC DHCP <dhcp-users@lists.isc.org><br>
Subject: Re: How can I overwrite global RIS server indecater<br>
Message-ID:<br>
        <CALMep05kM=u-UqaFbwDF-cKcqfUCz_8AOCnM5A1kwG40WnJtMA@mail.gmail.com><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
On 19 November 2013 07:46, Julie Xu <xll40@hotmail.com> wrote:<br>
><br>
> at global, I have configure:<br>
><br>
><br>
> class "windowRIS" {<br>
><br>
>      match if substring( option vendor-class-identifier, 0, 9 ) =<br>
> "PXEClient";<br>
><br>
>     option vendor-class-identifier "PXEClient";<br>
><br>
>     server-identifier 10.10.10.2;<br>
><br>
>   }<br>
><br>
><br>
> now on one subnet I want the server as 10.1.1.3<br>
> I have done:<br>
>    subnet 10.1.1.0 netmask 255.255.254.0 {<br>
>         option broadcast-address 10.1.2.255;<br>
>         option routers 10.1.1.1;<br>
>         pool {<br>
>             failover ?failover?<br>
>     server-identifier 10.1.1.3;<br>
>             deny dynamic bootp clients;<br>
>             range 10.1.1.20 10.1.2.254;<br>
>         }<br>
> but, the client still insist to use 10.10.10.2, what I did wrong?<br>
<br>
The order is host, class, pool, subnet, shared-network.<br>
<br>
<a title="http://manpages.ubuntu.com/manpages/trusty/man5/dhcpd.conf.5.html" href="http://manpages.ubuntu.com/manpages/trusty/man5/dhcpd.conf.5.html" target="_parent">http://manpages.ubuntu.com/manpages/trusty/man5/dhcpd.conf.5.html</a><br>
<br>
"When a client is to be booted, its boot parameters  are  determined  by<br>
consulting that client's host declaration (if any), and then consulting<br>
any class declarations matching  the  client,  followed  by  the  pool,<br>
subnet  and  shared-network declarations for the IP address assigned to<br>
the client.   Each  of  these  declarations  itself  appears  within  a<br>
lexical scope, and all declarations at less specific lexical scopes are<br>
also consulted for  client  option  declarations.    Scopes  are  never<br>
considered  twice,  and  if  parameters  are  declared in more than one<br>
scope, the parameter declared in the most specific  scope  is  the  one<br>
that is used."<br>
<br>
So in your case "class" is more specific than "subnet", so class will<br>
win, you can't override for the subnet. If you want to override then<br>
it would need to be in a host declaration.<br>
<br>
Steve<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
dhcp-users mailing list<br>
dhcp-users@lists.isc.org<br>
<a title="https://lists.isc.org/mailman/listinfo/dhcp-users" href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_parent">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
<br>
End of dhcp-users Digest, Vol 61, Issue 20<br>
******************************************<br>
</div></div>


</div></body></html>