Skip to content

Instantly share code, notes, and snippets.

@nemf
Created September 27, 2012 15:26
Show Gist options
  • Save nemf/3794614 to your computer and use it in GitHub Desktop.
Save nemf/3794614 to your computer and use it in GitHub Desktop.
dhcp configuration for ipxe
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
### iPXE-specific options
#
# http://www.ipxe.org/howto/dhcpd
#
option space ipxe;
option ipxe-encap-opts code 175 = encapsulate ipxe;
option ipxe.priority code 1 = signed integer 8;
option ipxe.keep-san code 8 = unsigned integer 8;
option ipxe.skip-san-boot code 9 = unsigned integer 8;
option ipxe.syslogs code 85 = string;
option ipxe.cert code 91 = string;
option ipxe.privkey code 92 = string;
option ipxe.crosscert code 93 = string;
option ipxe.no-pxedhcp code 176 = unsigned integer 8;
option ipxe.bus-id code 177 = string;
option ipxe.bios-drive code 189 = unsigned integer 8;
option ipxe.username code 190 = string;
option ipxe.password code 191 = string;
option ipxe.reverse-username code 192 = string;
option ipxe.reverse-password code 193 = string;
option ipxe.version code 235 = string;
option iscsi-initiator-iqn code 203 = string;
# Feature indicators
option ipxe.pxeext code 16 = unsigned integer 8;
option ipxe.iscsi code 17 = unsigned integer 8;
option ipxe.aoe code 18 = unsigned integer 8;
option ipxe.http code 19 = unsigned integer 8;
option ipxe.https code 20 = unsigned integer 8;
option ipxe.tftp code 21 = unsigned integer 8;
option ipxe.ftp code 22 = unsigned integer 8;
option ipxe.dns code 23 = unsigned integer 8;
option ipxe.bzimage code 24 = unsigned integer 8;
option ipxe.multiboot code 25 = unsigned integer 8;
option ipxe.slam code 26 = unsigned integer 8;
option ipxe.srp code 27 = unsigned integer 8;
option ipxe.nbi code 32 = unsigned integer 8;
option ipxe.pxe code 33 = unsigned integer 8;
option ipxe.elf code 34 = unsigned integer 8;
option ipxe.comboot code 35 = unsigned integer 8;
option ipxe.efi code 36 = unsigned integer 8;
option ipxe.fcoe code 37 = unsigned integer 8;
# speed-up for no proxydhcp user
option ipxe.no-pxedhcp 1;
# common settings
authoritative;
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
set vendorclass = option vendor-class-identifier;
subnet 10.200.0.0 netmask 255.255.255.0 {
option routers 10.200.0.254;
option subnet-mask 255.255.255.0;
option domain-name "domain.org";
option domain-name-servers 10.200.0.91;
default-lease-time 21600;
max-lease-time 43200;
next-server 10.200.0.91;
if exists user-class and option user-class = "iPXE" {
filename "http://${next-server}/real_boot_script.php";
} else {
filename "undionly.kpxe";
}
host ipxe-server1 {
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 10.200.0.94
}
host ipxe-server2 {
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 10.200.0.95
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment