<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:13pt"><div><span class="Apple-style-span" style="font-size: small;">Hi Sten,</span></div><div><span class="Apple-style-span" style="font-size: small;"><br></span></div><div><span class="Apple-style-span" style="font-size: small;">Thanks for your help and the DHCP server is working fine. But just wonder if the server is serving over 100 static clients and I think it is not possible to configure the dynamic address pool with those static clients in the deny list.</span></div><div><span class="Apple-style-span" style="font-size: small;"><br></span></div><div><span class="Apple-style-span" style="font-size: small;">Best Regards,</span></div><div><span class="Apple-style-span" style="font-size: small;">Billy</span></div><div style="font-family:arial, helvetica, sans-serif;font-size:13pt"><br><div
style="font-family:arial, helvetica, sans-serif;font-size:13px"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">寄件人﹕</span></b> Sten Carlsen <stenc@s-carlsen.dk><br><b><span style="font-weight: bold;">收件人﹕</span></b> Users of ISC DHCP <dhcp-users@lists.isc.org><br><b><span style="font-weight: bold;">傳送日期﹕</span></b> 2009/12/28 (一) 11:36:57 AM<br><b><span style="font-weight: bold;">主題:</span></b> Re: Re: Re: Re: Assign static IP by Option 82 agent.remote-id<br></font><br>Hi<br><br>First pool is ok, second pool forbids BOOTP clients but still allows all<br>dhcp clients, including those from "Static-1".<br><br>You may want to try adding:<br>deny members of "Static-1"<br>to the second pool, that way an address will only be given from first<br>pool to any member of Static-1.<br><br>Billy Ng wrote:<br>> Hi Sten,<br>><br>> Here is my dhcpd.conf:<br>><br>><br>>
class "Static-1" {<br>> match if option agent.remote-id="VP123456";<br>> }<br>><br>> shared-network NET1 {<br>><br>> subnet 192.168.10.0 netmask 255.255.255.192 {<br>> option subnet-mask 255.255.255.192;<br>> option routers 192.168.10.62;<br>> pool {<br>> range 192.168.10.10;<br>> allow members of "Static-1";<br>> }<br>> pool {<br>> range 192.168.10.20 192.168.10.55;<br>> deny dynamic bootp clients;<br>> }<br>> }<br>><br>> Best Regards,<br>> Billy<br>><br>> ------------------------------------------------------------------------<br>> *寄件人﹕* Sten Carlsen <<a ymailto="mailto:stenc@s-carlsen.dk" href="mailto:stenc@s-carlsen.dk">stenc@s-carlsen.dk</a>><br>> *收件人﹕* Users of ISC DHCP <<a ymailto="mailto:dhcp-users@lists.isc.org" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>><br>> *傳送日期﹕* 2009/12/28 (一) 10:13:52 AM<br>>
*主題:* Re: Re: Re: Assign static IP by Option 82 agent.remote-id<br>><br>> Hi<br>><br>> Have you put the relevant allow and/or deny statements in the pools?<br>><br>><br>> Specially, have you denied the dynamic pool to the class members?<br>><br>> Billy Ng wrote:<br>> > Hi All,<br>> ><br>> > Apperciate if someone can help to resolve this problem. Many thanks.<br>> ><br>> > Best Regards,<br>> > Billy<br>> ><br>> > ------------------------------------------------------------------------<br>> > *寄件人﹕* Billy Ng <<a ymailto="mailto:mondeo1055@yahoo.com" href="mailto:mondeo1055@yahoo.com">mondeo1055@yahoo.com</a> <mailto:<a ymailto="mailto:mondeo1055@yahoo.com" href="mailto:mondeo1055@yahoo.com">mondeo1055@yahoo.com</a>>><br>> > *收件人﹕* Users of ISC DHCP <<a ymailto="mailto:dhcp-users@isc.org"
href="mailto:dhcp-users@isc.org">dhcp-users@isc.org</a><br>> <mailto:<a ymailto="mailto:dhcp-users@isc.org" href="mailto:dhcp-users@isc.org">dhcp-users@isc.org</a>>><br>> > *傳送日期﹕* 2009/12/23 (三) 2:35:09 PM<br>> > *主題:* Re: Assign static IP by Option 82 agent.remote-id<br>> ><br>> > Hi Shunsuke,<br>> ><br>> > Seems the match if option agent.remote-id="VP111222" didn't work in my<br>> > dhcpd.conf. The client still obtain the dynamic address pool. Thanks.<br>> ><br>> > Best Regards,<br>> > Billy<br>> ><br>> > ------------------------------------------------------------------------<br>> > *寄件人﹕* Shunsuke Otani <<a ymailto="mailto:otanis555@gmail.com" href="mailto:otanis555@gmail.com">otanis555@gmail.com</a><br>> <mailto:<a ymailto="mailto:otanis555@gmail.com"
href="mailto:otanis555@gmail.com">otanis555@gmail.com</a>>><br>> > *收件人﹕* Users of ISC DHCP <<a ymailto="mailto:dhcp-users@isc.org" href="mailto:dhcp-users@isc.org">dhcp-users@isc.org</a><br>> <mailto:<a ymailto="mailto:dhcp-users@isc.org" href="mailto:dhcp-users@isc.org">dhcp-users@isc.org</a>>><br>> > *傳送日期﹕* 2009/12/23 (三) 12:39:34 PM<br>> > *主題:* RE: Assign static IP by Option 82 agent.remote-id<br>> ><br>> > hi<br>> ><br>> > When I configured as below, it worked well.<br>> ><br>> > stash-agent-options true;<br>> > class "01" { match if option agent.remote-id=56:50:31:31:31:32:32:32;}<br>> ><br>> > subnet 192.168.0.0 netmask 255.255.255.0 {<br>> > option broadcast-address 192.168.0.255;<br>> > option subnet-mask 255.255.255.0;<br>> > option routers 192.168.0.1;<br>> > pool { range 192.168.0.101; allow members
of "01"; }<br>> > }<br>> ><br>> ><br>> > Probably, the following may also works I think.<br>> > class "01" { match if option agent.remote-id="VP111222";}<br>> ><br>> ><br>> > > -----Original Message-----<br>> > > From: dhcp-users-bounces+otanis555=<a ymailto="mailto:gmail.com@lists.isc.org" href="mailto:gmail.com@lists.isc.org">gmail.com@lists.isc.org</a><br>> <mailto:<a ymailto="mailto:gmail.com@lists.isc.org" href="mailto:gmail.com@lists.isc.org">gmail.com@lists.isc.org</a>><br>> > <mailto:<a ymailto="mailto:gmail.com@lists.isc.org" href="mailto:gmail.com@lists.isc.org">gmail.com@lists.isc.org</a> <mailto:<a ymailto="mailto:gmail.com@lists.isc.org" href="mailto:gmail.com@lists.isc.org">gmail.com@lists.isc.org</a>>><br>> > > [mailto:dhcp-users-bounces+otanis555=<a ymailto="mailto:gmail.com@lists.isc.org"
href="mailto:gmail.com@lists.isc.org">gmail.com@lists.isc.org</a><br>> <mailto:<a ymailto="mailto:gmail.com@lists.isc.org" href="mailto:gmail.com@lists.isc.org">gmail.com@lists.isc.org</a>><br>> > <mailto:<a ymailto="mailto:gmail.com@lists.isc.org" href="mailto:gmail.com@lists.isc.org">gmail.com@lists.isc.org</a> <mailto:<a ymailto="mailto:gmail.com@lists.isc.org" href="mailto:gmail.com@lists.isc.org">gmail.com@lists.isc.org</a>>>]<br>> > > On Behalf Of Billy Ng<br>> > > Sent: Wednesday, December 23, 2009 12:49 PM<br>> > > To: <a ymailto="mailto:dhcp-users@isc.org" href="mailto:dhcp-users@isc.org">dhcp-users@isc.org</a> <mailto:<a ymailto="mailto:dhcp-users@isc.org" href="mailto:dhcp-users@isc.org">dhcp-users@isc.org</a>><br>> <mailto:<a ymailto="mailto:dhcp-users@isc.org" href="mailto:dhcp-users@isc.org">dhcp-users@isc.org</a> <mailto:<a ymailto="mailto:dhcp-users@isc.org"
href="mailto:dhcp-users@isc.org">dhcp-users@isc.org</a>>><br>> > > Subject: Assign static IP by Option 82 agent.remote-id<br>> > ><br>> > > Dear All,<br>> > ><br>> > > I'd like to assign a static IP address to the client by the<br>> > > agent.remote-id field "VP111222" as follow:<br>> > ><br>> > > lease 192.168.172.23 {<br>> > > starts 3 2009/12/23 03:40:01;<br>> > > ends 3 2009/12/23 04:10:01;<br>> > > tstp 3 2009/12/23 04:25:01;<br>> > > tsfp 3 2009/12/23 04:10:00;<br>> > > cltt 3 2009/12/23 03:40:01;<br>> > > binding state active;<br>> > > next binding state expired;<br>> > > billing subclass "AGENT_ID" "VP111222";<br>> > > hardware ethernet 00:18:ba:33:dc:9a;<br>> > > uid "\000cisco-0018.ba33.dc9a-Fa0";<br>> > > option agent.circuit-id "JDNS504|99411010|5/2/6:2002.*";<br>>
> > option agent.remote-id "VP111222";<br>> > > option agent.unknown-9 0:0:19:7f:a:5:8:56:50:32:32:32:31:31:31;<br>> > > client-hostname "C1811-R";<br>> > > }<br>> > ><br>> > > Would you please kindly recommend how to configure the class<br>> > > match with the agent.remote-id = "VP111222" (in ascii format)<br>> > > in the dhcpd.conf? Thanks a lot.<br>> > ><br>> > ><br>> > > Best Regards,<br>> > > Billy<br>> > ><br>> > ><br>> > ><br>> > ><br>> > ><br>> > > ________________________________<br>> > ><br>> > > Yahoo!香港提供網上安全攻略,教你如何防範黑客!了解更多<br>> > <<a href="http://hk.promo.yahoo.com/security/" target="_blank">http://hk.promo.yahoo.com/security/</a>><br>> > ><br>> ><br>> ><br>> >
------------------------------------------------------------------------<br>> > Yahoo!香港提供網上安全攻略,教你如何防範黑客!*了解更多*<br>> > <<a href="http://hk.promo.yahoo.com/security/" target="_blank">http://hk.promo.yahoo.com/security/</a>><br>> ><br>> > ------------------------------------------------------------------------<br>> > Yahoo!香港提供網上安全攻略,教你如何防範黑客!*了解更多*<br>> > <<a href="http://hk.promo.yahoo.com/security/" target="_blank">http://hk.promo.yahoo.com/security/</a>><br>> > ------------------------------------------------------------------------<br>> ><br>> > _______________________________________________<br>> > dhcp-users mailing list<br>> > <a ymailto="mailto:dhcp-users@lists.isc.org" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a> <mailto:<a
ymailto="mailto:dhcp-users@lists.isc.org" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>><br>> > <a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>><br>> -- <br>> Best regards<br>><br>> Sten Carlsen<br>><br>> No improvements come from shouting:<br>><br>> "MALE BOVINE MANURE!!!"<br>><br>> _______________________________________________<br>> dhcp-users mailing list<br>> <a ymailto="mailto:dhcp-users@lists.isc.org" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a> <mailto:<a ymailto="mailto:dhcp-users@lists.isc.org" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>><br>> <a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>><br>>
------------------------------------------------------------------------<br>> Yahoo!香港提供網上安全攻略,教你如何防範黑客!*了解更多*<br>> <<a href="http://hk.promo.yahoo.com/security/" target="_blank">http://hk.promo.yahoo.com/security/</a>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> dhcp-users mailing list<br>> <a ymailto="mailto:dhcp-users@lists.isc.org" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>> <a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br><br>-- <br>Best regards<br><br>Sten Carlsen<br><br>No improvements come from shouting:<br><br> "MALE BOVINE MANURE!!!" <br><br>_______________________________________________<br>dhcp-users mailing list<br><a
ymailto="mailto:dhcp-users@lists.isc.org" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br><a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a></div></div><div style="position:fixed"></div>
<!-- cg17.c2.mail.re1.yahoo.com compressed Tue Dec 22 19:42:47 PST 2009 -->
</div><br>
<hr size=1>Yahoo!香港提供網上安全攻略,教你如何防範黑客!<a href="http://hk.promo.yahoo.com/security/"><b>了解更多</b></a></body></html>