temp_dhcp.template 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # ******************************************************************
  2. # Cobbler managed dhcpd.conf file
  3. #
  4. # generated from cobbler dhcp.conf template ($date)
  5. # Do NOT make changes to /etc/dhcpd.conf. Instead, make your changes
  6. # in /etc/cobbler/dhcp.template, as /etc/dhcpd.conf will be
  7. # overwritten.
  8. #
  9. # ******************************************************************
  10. ddns-update-style interim;
  11. allow booting;
  12. allow bootp;
  13. ignore client-updates;
  14. set vendorclass = option vendor-class-identifier;
  15. option pxe-system-type code 93 = unsigned integer 16;
  16. subnet subnet_mask netmask net_mask {
  17. option subnet-mask net_mask;
  18. range dynamic-bootp start end;
  19. default-lease-time default;
  20. max-lease-time max;
  21. next-server next_server;
  22. #insert the static DHCP leases for configuration here
  23. class "pxeclients" {
  24. match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
  25. if option pxe-system-type = 00:02 {
  26. filename "ia64/elilo.efi";
  27. } else if option pxe-system-type = 00:06 {
  28. filename "grub/grub-x86.efi";
  29. } else if option pxe-system-type = 00:07 {
  30. filename "grub/grub-x86_64.efi";
  31. } else if option pxe-system-type = 00:09 {
  32. filename "grub/grub-x86_64.efi";
  33. } else {
  34. filename "pxelinux.0";
  35. }
  36. }
  37. }
  38. #end for