<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:8pt"><div><span>Hello Beshir,</span></div><div><br><span></span></div><div><span>Thanks mate for you quick response and explanation!</span></div><div><span>I will certainly test this config and will post it when succes..</span></div><div><br><span></span></div><div><span>Keep you updated.</span></div><div><br><span></span></div><div><span>Best Regards,</span></div><div><br><span></span></div><div><span>H2T</span></div><b><span style="font-weight:bold;"><font size="2"><font face="Arial"><br>--<br></font></font>From:</span></b> "Beshir, Reissom" <reissom_beshir@mitel.com><br><div style="font-family: verdana, helvetica, sans-serif; font-size: 8pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div dir="ltr"><font face="Arial" size="2"> <b><span style="font-weight: bold;">To:</span></b>
 dhcp-users@lists.isc.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, June 27, 2012 6:33 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: DHCP option 125<br> </font> </div> <br>
On Tue, 26 Jun 2012, Hok Hie Tjioe wrote:<br><br>> Hi Beshir,<br>><br>> Right. No I don't see that the client is sending DHCP option 124 to the server.<br>> So if I am understand you correctly, the definition that i have for the option 125 is quite fine.<br><br>That depends on what the client expects in the vendor option data.<br>If it is the same as option 43 then you are fine.<br><br>> In case that the client is sending the option 124 what is the proper server configuration for that IP scope?<br><br>You just need this for option 125:<br>   option TEST.suboption "Here is the string of this option";<br><br>> Like you have mentioned, yeah the client sending the option 60, that is why I use the definition mentioned in my question.<br>> And indeed that statement "vendor-option-space" will then send the information through the DHCP option 43.<br>><br>> Can you share me some example if you have.<br><br>I would simply add
 the "vendor-option-space" and move the "option<br>TEST.suboption" outside of the if statement.  That should cover both<br>option 43 and 125.  Using your example config:<br><br>  option space TEST code width 1 length width 1 hash size 3;<br>  option TEST.suboption code 1 = string;<br>  option vendor.TEST code 12345 = encapsulate TEST;<br><br>  subnet 10.0.16.0 netmask 255.255.255.0 {<br>    option routers 10.0.16.1;<br>      range 10.0.16.10 10.0.16.254;<br>      option TEST.suboption "Here is the string of this option";<br>      if substring (option vendor-class-identifier, 0, 5) = "test1" {<br>        vendor-option-space TEST<br>      }<br>  }<br><br>You should verify the above to see option 43 still works as you expect.<br><br>Note that you can put "option TEST.suboption" in the global scope if<br>the option data is not scope
 specific.  And you can override it if you<br>want a different value within a specific scope, e.g. in the subnet<br>scope or in the if statement for the vendor-class.<br><br>You will need a different "option space" definition for each vendor<br>that require encapsulated options.<br><br>Oh, I missed that you have an error in setting the value of "option<br>TEST.suboption".<br><br>>     if substring (option vendor-class-identifier, 0, 5) = "test1" {<br>>       option TEST.suboption = "Here is the string of this option";<br>>     }<br><br>There should not be an equal (=) when you set the option data.<br><br>Regards,<br>Reissom<br><br>________________________________<br> From: "Beshir, Reissom" <reissom_beshir at <a target="_blank" href="http://mitel.com/">mitel.com</a>><br>To: dhcp-users at <a target="_blank" href="http://lists.isc.org/">lists.isc.org</a><br>Sent: Tuesday, June 26, 2012 6:57
 PM<br>Subject: Re: dhcp-users Digest, Vol 44, Issue 34<br><br>On Fri, 22 Jun 2012,  Hok Hie Tjioe  wrote:<br>><br>><br>> Hi all,<br>><br>> somebody have any advise how to define the DHCP option 125 (vivso) using the option space?<br>> I am using ISC DHCP server version 4.2.3-P2.<br>><br>> Want I want to achieve is quite simple though:<br>> option 125 = enterprise-ID + one suboption<br>><br>> From the manual section I can made the following structure, assuming that enterpise id of TEST = 12345<br>><br>> option space TEST code width 1 length width 1 hash size 3;<br>> option TEST.suboption code 1 = string;<br>> option vendor.TEST code 12345 = encapsulate TEST;<br>><br>> subnet 10.0.16.0 netmask 255.255.255.0 {<br>>   option routers 10.0.16.1;<br>>     range 10.0.16.10 10.0.16.254;<br>>     if substring (option vendor-class-identifier, 0, 5) = "test1" {<br>>
       option TEST.suboption = "Here is the string of this option";<br>>     }<br>> }<br>><br>> what I missed here is the link to the option 125 (vivso) in this case?<br><br>Option 125 is sent in response to option 124 that contains the<br>enterprise id you configured for.<br>Does the client provide option 124 in the DHCP message?<br><br>And you do not need the if statement for option 125.<br><br>If the client only sends option 60 then you want to use option 43.<br>In that case you want:<br><br>    if substring (option vendor-class-identifier, 0, 5) = "test1" {<br>      vendor-option-space TEST<br>      option TEST.suboption = "Here is the string of this option";<br>    }<br><br><br>> Any feedback is appreciated...<br>> TIA.<br><br>I hope that helps.<br><br>Regards,<br>Reissom Beshir<br><br>-- <br>This e-mail (including any attachments) is for the sole use of the
 intended <br>recipient(s) and may contain information that is confidential and/or <br>protected by legal privilege. Any unauthorized review, use, copy, <br>disclosure or distribution of this e-mail is strictly prohibited. If you <br>are not the intended recipient, please notify Mitel immediately and destroy <br>all copies of this e-mail.  Mitel does not accept any liability for breach <br>of security, error or virus that may result from the transmission of this <br>message.<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> </div> </div>  </div></body></html>