SV: remote-id

Simon Hobson dhcp1 at thehobsons.co.uk
Sun Oct 19 09:56:05 UTC 2008


Anders Rosendal wrote:

>I interpret this as a question of remote-id in option 82.

Ahh, that makes sense.

>
>0:30:4b:db:65:50 is mgmt-mac of switch A
>0:30:45:55:bb:80 is mgmt-mac of switch B
>
>class "POOLA" {
>         match if(binary-to-ascii(16, 8, ":", option agent.remote-id) 
>= "0:30:4b:db:65:50");
>}
>
>class "POOLB" {
>         match if(binary-to-ascii(16, 8, ":", option agent.remote-id) 
>= "0:30:45:55:bb:80");
>}
>
>pool {
>         range 10.0.0.10 10.0.0.254;
>         allow members of "POOLA";
>}
>
>pool {
>         range 172.31.0.10 172.31.0.254;
>         allow members of "POOLB";
>}

But just to be certain as the original question was so vague - I 
think we need to ask if the OP is trying to do subnet selection by 
switch - rather than just letting the server do it automatically by 
GI-Addr.


-- 
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