[ipxe-devel] iPXE menu-default for different dhcp-ranges

Eby, Pete I. ebypi at ornl.gov
Fri Jan 22 19:10:32 UTC 2016


Hello,

I have a dnsmasq related question,though perhaps there is an iPXE feature to more directly achieve what I would like.

I'd like a way to boot nodes in one dnsmasq dhcp-range or network to one default iPXE menu-default option, and nodes in another dhcp-range (or individually) to another default iPXE menu-default option.

Alternately, they could boot to different ipxe menus, though I'd like to use the same menu (with different default options) if possible.

A sample of dnsmasq config files in use is below.

Thank you,
Pete


/etc/dnsmasq.d/005-dhcp-option-dhcp-boot-iPXE

dhcp-no-override
# iPXE sends a user class in the DHCPREQUEST, tag it so we know who is requesting DHCP
dhcp-userclass=set:iPXE-booted,"iPXE"
# If we are booted into iPXE then send it a config file, else send it into iPXE
dhcp-boot=tag:iPXE-booted,http://10.10.20.4/ipxe.txt
dhcp-boot=tag:!iPXE-booted,ipxe.0,or-gedi-mgmt01,10.10.20.4


/etc/dnsmasq.d/120-gedi-boot-net

dhcp-option=net:gedi-boot-net,option:netmask,255.255.252.0

#GeDI Servers
dhcp-range=10.10.20.5,10.10.20.15,1h

#Storage Servers
dhcp-range=10.10.20.16,10.10.20.80,1h

#Login Nodes
dhcp-range=10.10.20.81,10.10.20.100,1h

#Individual Login Nodes
dhcp-host=00:1E:67:A3:a4:f8,or-condo-login01,10.10.20.81,net:gedi-boot-net,set:or-condo-login01
dhcp-host=00:1E:67:68:d2:24,or-condo-login02,10.10.20.82,net:gedi-boot-net,set:or-condo-login02
...
?
#Individual Compute Nodes
dhcp-host=00:1e:67:e4:26:b0,or-condo-c00,10.10.20.101,net:gedi-boot-net,set:or-condo-c00
dhcp-host=00:1e:67:e5:9a:cb,or-condo-c01,10.10.20.101,net:gedi-boot-net,set:or-condo-c01
...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20160122/2c5a41c1/attachment.htm>


More information about the ipxe-devel mailing list