<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature"><br></div></div>
<br><div class="gmail_quote">On Tue, Jun 23, 2015 at 8:25 AM, Thomas Novin <span dir="ltr"><<a href="mailto:Thomas.Novin@cygate.se" target="_blank">Thomas.Novin@cygate.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif"><div><div class="h5">
<div>>> if option vendor-class-identifier ~= "OS6450-48" {</div>
<div>>> set model = "6450-48";</div>
<div>>> }</div>
<div>>> </div>
<div>>> option bootfile-name = concat("instruction/", model, ".alu”);</div>
<div>>> </div>
<div>></div>
<div>>If I use the variable in a execute-statement, it works having a mix of variables and text. Without using concat. But that does not work in an option.</div>
<div>></div>
<div>>For example:</div>
<div>></div>
<div>> execute ("/usr/local/bin/create_instruction", model);</div>
<div>></div>
<div>>I have tested skipping concat in bootfile-name but that did not work. But why is it not possible to use a set variable in an option-statement.. if anyone can answer this I’d be thankful!</div>
<div><br>
</div>
</div></div><div>Above I used ‘set model = “6450-48”’. I have also tried just ‘model = “6450-48”;’ but the same result, the server starts fine but it does not send any bootfile-name. So the concat probably evaluates the variable as empty and because of this the whole concat
returns null. </div><span class="">
<div><br>
</div>
<div>
<div style="font-family:Calibri"><font face="Calibri,sans-serif">>>One one more strangeness: dhcpd does NOT send the configured domain-name, can that depend on the client, whether it requests it or not?</font></div>
</div>
<div><font face="Calibri,sans-serif"><br>
</font></div>
</span><div><font face="Calibri,sans-serif">I fixed this by forcing the option on the client:</font></div>
<div><br>
</div>
<div>
<div> # 1=subnet, 3=router, 12=hostname, 15=domain-name, 66=tftp-server-name, 67=bootfile-name</div>
<font face="Calibri,sans-serif">
<div> option dhcp-parameter-request-list 1,3,12,15,66,67;</div>
<div><br>
</div>
<div>Rgds//Thomas</div>
<div><br></div></font></div></div></blockquote><div>The DHCP server only sends the options that the client asks for.</div><div><br></div><div>-- </div><div>Bob Harold</div><div> </div></div><br></div></div>