<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 8 Oct 2020, at 21:55, Jim Yang wrote:</p>
</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">`class “mytest” {`<br>
match option dhcp-client-identifier;<br>
}</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">Since your packet-capture doesn't show any option 61 (client id) data,<br>
I would expect the hardware address to be used instead, and<br>
would share your expectation of the behaviour.</p>
<p dir="auto">We must both be overlooking the same thing.</p>
</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto"> It seems that I should change the class definition to match either option dhcp-client-identifier or hardware.<br>
<br>
`class “mytest” {`<br>
match pick-first-value (option dhcp-client-identifier, hardware);<br>
}</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">Or even (since you seem to be specifically interested in using the MAC address)</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">class "mytest" { match hardware; }
</code></pre>
<p dir="auto">which would protect against failing to recognize a client with <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">"Niall's Mac"</code><br>
as the client id, but would potentially introduce the "docking-station" problem<br>
mentioned in <em>Droms and Lemon</em>.</p>
<p dir="auto">I'm out of ideas. I hope someone else can contribute the missing insight.</p>
<p dir="auto">Niall</p>
</div>
</div>
</body>
</html>