<div dir="ltr"><div>Hi Thomas, <br></div><div>Firstly thank you for testing that is a great help to know it's working :) and my expectation of seeing the log line is correct. <br></div><div>I've just tried 
match if substring (option vendor-class-identifier, 0, 9) = "Mips_boot"; and no joy <br></div><div><br></div><div>I then tried match if not (substring (option vendor-class-identifier, 0, 9) = "Mips_boot"); which if I'm correct means that all devices should go into this class (Which is fine on a test network) <br></div><div>but still it didn't work, I also tried match if not (option vendor-class-identifier = "Mips_boot"); with the same logic of all devices should go here. <br></div><div>However neither presented the next server or created the log line. <br></div><div>Using wireshark I took a look at the BOOTP request and the vendor-class-identifier length is listed as being 9 the entry in the lease file doesn't show anything other than the Mips_boot statement <br></div><div>Cheers</div><div>Mark <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 5, 2021 at 12:33 PM Thomas Markwalder <<a href="mailto:tmark@isc.org">tmark@isc.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Mark:<br>
<br>
I suspect Simon's hunch is correct, the vendor identifier may actually <br>
be longer than "Mips_boot".  I just tried this configuration snippet and <br>
it works fine:<br>
<br>
<br>
class "Mips_boot" {<br>
     match if (option vendor-class-identifier = "Mips_boot");<br>
     next-server 192.168.20.10;<br>
     log (info,"Devboot");<br>
}<br>
<br>
subnet 178.16.1.0 netmask 255.255.255.0 {<br>
     pool {<br>
         range 178.16.1.100 178.16.1.125;<br>
     }<br>
}<br>
<br>
I get the log statement and the client gets next-server.   If there are <br>
additional bytes after "Mips_boot" which you do not care about you can <br>
use substr:<br>
<br>
match if substring (option vendor-class-identifier, 0, 9) = "Mips_boot";<br>
<br>
<br>
<br>
<br>
On 1/5/21 7:22 AM, Simon Hobson wrote:<br>
> Mark Mc Nicholas <<a href="mailto:markmcn@section9.ie" target="_blank">markmcn@section9.ie</a>> wrote:<br>
>> Hey Simon,<br>
>> Thanks for the suggestion,<br>
>> I've just tried a very quick check changing the match statement to " match if vendor-class-identifier = "Mips_boot";"<br>
>> however from a very quick glance the result looked the same as the device didn't boot and I saw no log lines "Devboot" on the console.<br>
> One other thing to check is EXACTLY what the value is that you are testing for - in particular, look at a hex dump of the packet (or a decoded version of it). I've been caught out with things like trailing nulls, so it's 6 bytes of "value"0x00 not five bytes of "value" and the matching in dhcpd is very precise on this - they don't match.<br>
><br>
> Simon<br>
><br>
><br>
> _______________________________________________<br>
> ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
><br>
> dhcp-users mailing list<br>
> <a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
> <a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
<br>
_______________________________________________<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span style="color:rgb(0,0,0);font-family:sans-serif;line-height:19.1875px">Begin at the beginning,and go on till you come to the end: then stop.</span></div></div>