hardware type classing

Simon Hobson dhcp1 at thehobsons.co.uk
Fri Oct 24 18:48:21 UTC 2008


Terry L. Inzauro wrote:

>I am trying to assign IP information using substring MAC address 
>matching but I can't seem to get it
>right.  Am i going about this the correct way? If not, what am I doing wrong?
>
>
>class "shoretel" {
>         match if ( (substring(hardware,1,6) = 10:49:0A) );
>}

Close, but you are fetching SIX bytes and comparing it to a THREE 
byte value - you want substring(hardware,1,3) I think.

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.


More information about the dhcp-users mailing list