Discussion:
[Dnsmasq-discuss] Conditional arguments depending on dhcp option 77 (user class)
Oliver Rath
2018-08-09 15:57:11 UTC
Permalink
Hi list,

configuring ipxe boot recommends configuring an isc-dhcp-server i.e. in
this way:

if exists user-class and option user-class = "iPXE" {
filename "http://my.web.server/real_boot_script.php";
} else {
filename "undionly.kpxe";
}

reffering to dhcp option 77 "User Class Information". Is it possible to build a similar construct in dnsmasq.conf?

Tfh!
Oliver
Pali Rohár
2018-08-09 16:22:52 UTC
Permalink
Post by Oliver Rath
Hi list,
configuring ipxe boot recommends configuring an isc-dhcp-server i.e. in
if exists user-class and option user-class = "iPXE" {
filename "http://my.web.server/real_boot_script.php";
} else {
filename "undionly.kpxe";
}
reffering to dhcp option 77 "User Class Information". Is it possible to build a similar construct in dnsmasq.conf?
Tfh!
Oliver
Hi! I'm using something like this in dnsmasq.conf:

enable-tftp
tftp-root=/var/lib/tftp
dhcp-vendorclass=set:PXE,PXE
dhcp-userclass=set:iPXE,iPXE
dhcp-boot=tag:PXE,"undionly.kpxe"
dhcp-boot=tag:iPXE,"http://my.web.server/..."

Generic PXE clients receive iPXE binary and iPXE clients receive URL.
Non-PXE clients receive nothing.
--
Pali Rohár
***@gmail.com
Continue reading on narkive:
Search results for '[Dnsmasq-discuss] Conditional arguments depending on dhcp option 77 (user class)' (Questions and Answers)
3
replies
When a client sends a DHCPDISCOVER request to the ISC DHCP server on Red Hat,the server does not respond.Why?
started 2006-04-01 23:45:16 UTC
computer networking
Loading...