[Dnsmasq-discuss] Use hardware(macaddress) in dhcp-option

Arends, R.R. r.r.arends at hro.nl
Wed Jan 13 14:33:08 GMT 2010


Hi Simon,

Thanks for your quick reply. 

To bad its not possible :(. 

Uhm pxelinux search indeed for macadres, but with the new gpxelinux interface its possible to load webserved pages as configfiles.
So for example http://boot.hro.nl/menu.php?mac=00:21:9B:19:B1:F4.

Then i could make a dynamic menu for that macaddress.

I just think of another way to solve this tho... 
I think i can make a gpxe script that load http://boot.hro.nl/menu.php?mac=00:21:9B:19:B1:F4 ( i think ).
Will use that approach then instead of a dhcpoption. 

Thanks!

Rene

>>> On 13-1-2010 at 15:07, in message <4B4DD3AC.1060308 at thekelleys.org.uk>, Simon
Kelley <simon at thekelleys.org.uk> wrote:
> Arends, R.R. wrote:
>> Hi all,
>>  
>> I'm switching from dhcp3 to dnsmasq.
>> I want to use gpxe/pxelinux and let it load dynamic config files by 
>> using the hardware(macadres) of a machine as config filename.
>> But can't seem to figure out how to translate this setting to dnsmasq tho.
>>  
>> In dhcp3 i use it the following way:
>> option pxelinux.configfile =
>>         concat("?mac=", binary-to-ascii(16, 8, "", hardware));
>> which sets the dhcp option 209 for example to "?mac=00:21:9B:19:B1:F4"
>>  
>> How can i do the same in dnsmasq?
>> i only came this far :) :
>> dhcp-option-force=209,?mac=
>>  
>> I hope its possible to achieve the same.
>>  
>>
> 
> It's not possible to do the same in dnsmasq, sorry.
> 
> I'm probably missing something, but doesn't your example above just do
> what pxelinux does anyway? I'm sure it looks for a file whose name is
> the mac address, and then if it doesn't find that it searches for config
> files based on the IP address.
> 
> Cheers,
> 
> Simon.




More information about the Dnsmasq-discuss mailing list