Ben Breard, Jr.
2016-01-16 14:32:38 UTC
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
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