<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<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>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>
<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>
<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>
</body>
</html>