<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div><span class="Apple-style-span" style="font-size: x-small;">Here is my dhcpd.conf:</span></div><div><span class="Apple-style-span" style="font-size: x-small;"><br></span></div><div><div><span class="Apple-style-span" style="font-size: x-small;">ddns-update-style none;</span></div><div><span class="Apple-style-span" style="font-size: x-small;">default-lease-time 3600;</span></div><div><span class="Apple-style-span" style="font-size: x-small;">max-lease-time 7200;</span></div><div><span class="Apple-style-span" style="font-size: x-small;">deny bootp;</span></div><div><span class="Apple-style-span" style="font-size: x-small;">stash-agent-options true;</span></div><div><span class="Apple-style-span" style="font-size: x-small;"><br></span></div><div><span class="Apple-style-span"
 style="font-size: x-small; ">class "fix-1" {</span></div><div><span class="Apple-style-span" style="font-size: x-small;">        match if option agent.remote-id = "2:a:0:0:a:1:1:fe:b:0:0:0";</span></div><div><span class="Apple-style-span" style="font-size: x-small;">}</span></div><div><span class="Apple-style-span" style="font-size: x-small;"><br></span></div><div><span class="Apple-style-span" style="font-size: x-small; ">shared-network NET1 {</span></div><div><span class="Apple-style-span" style="font-size: x-small;">  subnet 172.16.1.0 netmask 255.255.255.0 {</span></div><div><span class="Apple-style-span" style="font-size: x-small;">    option broadcast-address 172.16.1.255;</span></div><div><span class="Apple-style-span" style="font-size: x-small; ">    option domain-name "domain2.com";</span></div><div><span class="Apple-style-span" style="font-size: x-small;">  
  option subnet-mask 255.255.255.0;</span></div><div><span class="Apple-style-span" style="font-size: x-small;">    pool {</span></div><div><span class="Apple-style-span" style="font-size: x-small;">        allow members of "fix-1";</span></div><div><span class="Apple-style-span" style="font-size: x-small;">        range 172.16.1.10;</span></div><div><span class="Apple-style-span" style="font-size: x-small;">        deny dynamic bootp clients;</span></div><div><span class="Apple-style-span" style="font-size: x-small;">    }</span></div><div><span class="Apple-style-span" style="font-size: x-small;">  }</span></div><div><span class="Apple-style-span" style="font-size: x-small;"><br></span></div><div><span class="Apple-style-span" style="font-size: x-small;">  subnet 10.1.1.0 netmask 255.255.255.0 {</span></div><div><span
 class="Apple-style-span" style="font-size: x-small; ">    option domain-name "domain0.com";</span></div><div><span class="Apple-style-span" style="font-size: x-small;">    option broadcast-address 10.1.1.255;</span></div><div><span class="Apple-style-span" style="font-size: x-small;">    range 10.1.1.51 10.1.1.60;</span></div><div><span class="Apple-style-span" style="font-size: x-small;">  }</span></div><div><span class="Apple-style-span" style="font-size: x-small;"><br></span></div><div><span class="Apple-style-span" style="font-size: x-small;">}</span></div><div><span class="Apple-style-span" style="font-size: x-small;"><br></span></div><div><span class="Apple-style-span" style="font-size: x-small;">But the client still obtained the IP address from the pool 10.1.1.x.</span></div><div><span class="Apple-style-span" style="font-size: x-small;"><br></span></div><div><span class="Apple-style-span"
 style="font-size: x-small;"><div>lease 10.1.1.51 {</div><div>  starts 1 2009/11/16 02:14:42;</div><div>  ends 1 2009/11/16 03:14:42;</div><div>  cltt 1 2009/11/16 02:14:42;</div><div>  binding state active;</div><div>  next binding state free;</div><div>  hardware ethernet 00:00:e8:00:99:b7;</div><div>  uid "\001\000\000\350\000\231\267";</div><div>  client-hostname "client";</div><div>}</div><div>lease 10.1.1.51 {</div><div>  starts 1 2009/11/16 02:14:42;</div><div>  ends 1 2009/11/16 03:14:42;</div><div>  cltt 1 2009/11/16 02:14:42;</div><div>  binding state active;</div><div>  next binding state free;</div><div>  hardware ethernet 00:00:e8:00:99:b7;</div><div>  uid "\001\000\000\350\000\231\267";</div><div>  option agent.remote-id 2:a:0:0:a:1:1:fe:b:0:0:0;</div><div>  client-hostname
 "client";</div><div>}</div><div><br></div><div>Is the agent.remote-id value of the class match statement equal to the dhcpd.leases file value? And refer to the dhcpd.leases, there're 2 records and the first one without the "agnent.remote-id". Just wonder if it is a normal behavior. Thanks.</div><div><br></div><div>Best Regards,</div><div>Billy</div></span></div></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><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> Jerimiah Cole <jcole@tbtc.net><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/11月/14 (六) 1:34:50 AM<br><b><span style="font-weight: bold;">主題:</span></b> Re: Assign Fix IP by Option
 82<br></font><br>Billy Ng wrote:<br>> Dear All,<br>> <br>> I'd like to configure the DHCP server (4.1.0p1) to assign fix IP to the <br>> client by "option 82" with following info:<br>> <br>> Would you please kindly advise how to configure the server in dhcp.conf? <br>> Many thanks.<br><br>This is rougly accomplished by assigning the client to a class and than<br>permitting only that class in a small pool.  My configs look like:<br><br>class "test-01-03-07" {<br>  match if option agent.circuit-id = "test-01-03/Ethernet7:Vlan2";<br>}<br>pool {<br>  allow members of "test-01-03-07";<br>  range 10.8.200.1;<br>  deny dynamic bootp clients;<br>}<br><br>You would adjust the match statement to meet your specific needs.<br><br>Keep in mind that this breaks if the client's UID (typically the MAC<br>address) ever changes.<br><br>There are many other examples in the
 archives.<br><br>Jerimiah<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></div></div><div style="position:fixed"></div>


<!-- cg16.c2.mail.re1.yahoo.com compressed Wed Nov  4 17:57:46 PST 2009 -->
</div><br>
      



      <hr size=1>Yahoo!香港提供網上安全攻略,教你如何防範黑客!<a href="http://hk.promo.yahoo.com/security/"><b>了解更多</b></a></body></html>