<html><body><div style="font-family: Andale Mono; font-size: 10pt; color: #000000"><div>This worked in testing - Hooray! One question - The usual statements for logging received option 82 data did not work while using this method. Any particular reason why these statements didn't work (ie: the option 82 was not logged)? I know option 82 was present as the host {} statement matching option 82 assigned the correct address. These log statements work as expected when using class / pool statements to assign the address based on option 82. </div><div><br></div><div>Here are the logging statements:</div><div>--------------------------------------------------</div><div><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">if exists agent.circuit-id {</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"> log ( error,</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"> concat( "agent.circuit-id,", binary-to-ascii (10, 8, ".", leased-address),",",</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"> "circuit-id,",option agent.circuit-id,",",</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"> "time,",binary-to-ascii(10,32,"",encode-int (lease-time,32)),",",</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"> "hardware,",binary-to-ascii(16,8,":",substring(hardware,1,7))</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"> )</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"> );</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">}</p><p class="p2" style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p class="p2" style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">if exists agent.remote-id {</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"> log ( error,</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"> concat( "agent.remote-id,", binary-to-ascii (10, 8, ".", leased-address),",",</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"> "remote-id,",option agent.remote-id,",",</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"> "time,",binary-to-ascii(10,32,"",encode-int (lease-time,32)),",",</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"> "hardware,",binary-to-ascii(16,8,":",substring(hardware,1,7))</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"> )</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"> );</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">}</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">--------------------------------------------------</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"><br></p></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Peter Rathlev" <peter@rathlev.dk><br><b>To: </b>"Users of ISC DHCP" <dhcp-users@lists.isc.org><br><b>Sent: </b>Wednesday, January 22, 2014 5:51:49 PM<br><b>Subject: </b>Re: Static IP via Option 82 - methodology<br><div><br></div>On Wed, 2014-01-22 at 14:32 -0500, perl-list wrote:<br>> For example... would this work?:<br>> <br>> -----------------------------------------------------<br>> host 10-24-24-9 <br>> host-identifier option agent.circuit-id "1.21.1.4/Ethernet9";<br>> fixed-address 10.24.24.9;<br>> server-name "192.168.0.12";<br>> filename "SomeCFG.cfg";<br>> }<br>> -----------------------------------------------------<br>> <br>> It passes muster as far as dhcpd doesn't complain and will run, but<br>> will the client receive the server-name / filename options?<br><div><br></div>That'll work fine. If server-name and filename are the same for several<br>hosts you could also place it in the subnet declaration.<br><div><br></div>Generally you can place options anywhere you want. Options placed<br>outside everything ("global scope") are server to every client asking<br>for them. Inside a subnet declaration it's server to every client in<br>that subnet, including static hosts. Inside a pool it's only served to<br>clients in that pool.<br><div><br></div>-- <br>Peter<br><div><br></div><br><div><br></div>_______________________________________________<br>dhcp-users mailing list<br>dhcp-users@lists.isc.org<br>https://lists.isc.org/mailman/listinfo/dhcp-users<br><div><br></div></blockquote><div><br></div></div></body></html>