Skip to content

Instantly share code, notes, and snippets.

@robinsmidsrod
Last active April 5, 2024 20:26
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save robinsmidsrod/08105908079357b2dab5 to your computer and use it in GitHub Desktop.
Save robinsmidsrod/08105908079357b2dab5 to your computer and use it in GitHub Desktop.
Simple chainloading config loading iPXE for ISC dhcpd which supports both legacy BIOS and UEFI
option client-arch code 93 = unsigned integer 16;
subnet 10.8.8.0 netmask 255.255.255.0 {
range 10.8.8.100 10.8.8.199;
option routers 10.8.8.1;
option domain-name-servers 10.8.8.1;
next-server 10.8.8.1;
if exists user-class and option user-class = "iPXE" {
filename "http://10.8.8.11/ipxeroot/bootstrap.ipxe";
} elsif option client-arch != 0 {
filename "ipxe.efi";
} else {
filename "undionly.kpxe";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment