Discussion:
[Dnsmasq-discuss] Sending different option 209 values for multi Arch
Ben Breard, Jr.
2016-01-16 14:32:38 UTC
Permalink
I'm working on an updated multi-arch PXE setup using the latest syslinux & dnsmasq. Using basic entries for bios & efi systems is really simple, but it's a bit more complicated with menus, or any com32 modules, due to the face that they have identical file names, yet are arch specific. There's a nice wiki on the subject here: http://www.syslinux.org/wiki/index.php/PXELINUX-Multi-Arch

At any rate, I'm trying to see if there's a way to send different DHCP options based on the systems' arch.

My current config does this on a very basic level with the NBP, but I can't figure out how to add different options for 208-210 based on the arch. Is this possible with dnsmasq?

interface=ens3
domain=example.com
dhcp-range=192.168.123.20,192.168.123.230,255.255.255.0,1h
dhcp-option=3,192.168.123.1
dhcp-match=bios,option:client-arch,0
dhcp-match=uefi,option:client-arch,7
dhcp-boot=tag:bios,pxelinux.0
dhcp-boot=tag:uefi,grubx64.efi
pxe-service=tag:bios,x86PC,"x86 bios boot msg",pxelinux
pxe-service=tag:uefi,X86-64_EFI,"x86 uefi boot msg",grubx64.efi
enable-tftp tftp-root=/var/lib/tftpboot
conf-dir=/etc/dnsmasq.d

Thanks in advanced for the help!
-Ben
Lukas Tribus
2016-01-16 15:14:50 UTC
Permalink
Hi,


> At any rate, I'm trying to see if there's a way to send different
> DHCP options based on the systems' arch.

You are already doing it for dhcp-boot and pxe-service, by specifying
the tag, just do the same for the dhcp-option or am I missing something?


Lukas
Ben Breard, Jr.
2016-01-16 17:47:05 UTC
Permalink
Ah! That's precisely what I was missing. I didn't realize I can tag each of the dhcp options.

If I understand it correctly, this should give me exactly what I need.
dhcp-option-force=tag:bios,209,bios/pxelinux.cfg/default
dhcp-option-force=tag:uefi,209,efi64/pxelinux.cfg/default

Thanks!

________________________________________
From: Lukas Tribus <luky-***@hotmail.com>
Sent: Saturday, January 16, 2016 7:14 AM
To: Ben Breard, Jr.; dnsmasq-***@lists.thekelleys.org.uk
Subject: RE: [Dnsmasq-discuss] Sending different option 209 values for multi Arch

Hi,


> At any rate, I'm trying to see if there's a way to send different
> DHCP options based on the systems' arch.

You are already doing it for dhcp-boot and pxe-service, by specifying
the tag, just do the same for the dhcp-option or am I missing something?


Lukas
Continue reading on narkive:
Search results for '[Dnsmasq-discuss] Sending different option 209 values for multi Arch' (Questions and Answers)
7
replies
Is there a good guide for designing recessed lighting schemes?
started 2006-01-14 16:20:33 UTC
decorating & remodeling
Loading...