[Dnsmasq-discuss] "next server" and "vendor encapsulated"

Helmut Hullen Hullen at t-online.de
Sun Jun 13 07:12:00 BST 2010


Hallo, clemens,

Du meintest am 12.06.10:

>> I'm searching for a way which looks like the "next server" option
>> but does not work everytime but only under special conditions.
>>
>> Pseudo code:
>>
>> if MAC = 11.22.33.44.55.66
>>  then goto (PXE-)server 10.11.12.13
>>
>> if MAC in MAC-list
>>  then goto (PXE-)server 172.16.17.18
>>
>> "vendor encapsulated" may do this job but it's not well
>> documentated.

> Might not be needed:

>     dhcp-mac = set:special, 11.22.33.44.55.66
>     dhcp-mac = set:default, 12.23.34.45.56.67
>     dhcp-mac = set:default, <repeat for other NICs in list>
>     pxe-service = tag:special, ..., 10.11.12.13
>     pxe-service = tag:default, ..., 172.16.17.18

> This is the new tagging system in recent versions.

> It's all in the manual ...

Looks nice - thank you!
Just an idea: I may put the "dhcp-mac = set:special, ..." lines into a  
special file in the directory defined with "conf-dir". Perhaps with a  
leading "pxe-service = tag:special, ...".

What about defaults, wild cards etc?
My favorite solution is (in pseudo code)

if exists $conf-dir/mac-special-list
  then use special pxe server for these MAC addresses

else
  use normal pxe server

Viele Gruesse!
Helmut



More information about the Dnsmasq-discuss mailing list