summaryrefslogtreecommitdiff
path: root/dhcp3/dhcpd.conf
blob: 90b170e7ae02fdb5215f4d2ac9e478280e8fc8e9 (plain)
  1. # This config is put together with valuable inspiration from the following sources:
  2. # http://cd-linux.org/nfs-howto.htm
  3. # http://www.netbsd.org/Documentation/network/netboot/intro.i386.html
  4. # http://www.pcxperience.org/thinclient/documentation/thinclientdesign.html
  5. # http://www.nominum.com/resources/faqs/dhcp-faq.html
  6. authoritative;
  7. #deny-unknown-clients;
  8. ddns-update-style none;
  9. use-host-decl-names on; # This avoids setting "option host-name" for each host
  10. #always-reply-rfc1048 on;
  11. default-lease-time 21600;
  12. max-lease-time 21600;
  13. option subnet-mask 255.255.255.0;
  14. option broadcast-address 192.168.102.255;
  15. option routers 192.168.102.1;
  16. option domain-name-servers 192.168.102.75;
  17. option domain-name "107b.dk";
  18. option time-servers ntp;
  19. option ntp-servers ntp;
  20. option log-servers log;
  21. # FAI (Fully Automated Install) options
  22. option fai-location code 170 = text;
  23. option fai-action code 171 = text;
  24. option fai-flags code 172 = text;
  25. # Etherboot options
  26. option eb-magic code 128 = string; # Magic string for reading more options
  27. option eb-bootopts code 129 = text; # Boot options passed on to the kernel
  28. option eb-menuopts code 160 = text; # EtherBoot menu options
  29. option eb-motd1 code 184 = text; # MOTD
  30. option eb-motd2 code 185 = text;
  31. option eb-motd3 code 186 = text;
  32. option eb-motd4 code 187 = text;
  33. option eb-motd5 code 188 = text;
  34. option eb-motd6 code 189 = text;
  35. option eb-motd7 code 190 = text;
  36. option eb-motd8 code 191 = text;
  37. option eb-menuitem1 code 192 = text; # Menu items: "label:server:gateway:filename:passwd:flags:cmdline"
  38. option eb-menuitem2 code 193 = text;
  39. option eb-menuitem3 code 194 = text;
  40. option eb-menuitem4 code 195 = text;
  41. option eb-menuitem5 code 196 = text;
  42. option eb-menuitem6 code 197 = text;
  43. option eb-menuitem7 code 198 = text;
  44. option eb-menuitem8 code 199 = text;
  45. option eb-menuitem9 code 200 = text;
  46. option eb-menuitem10 code 201 = text;
  47. option eb-menuitem11 code 202 = text;
  48. option eb-menuitem12 code 203 = text;
  49. option eb-menuitem13 code 204 = text;
  50. option eb-menuitem14 code 205 = text;
  51. option eb-menuitem15 code 206 = text;
  52. option eb-menuitem16 code 207 = text;
  53. option space pxelinux;
  54. option pxelinux.magic code 208 = string;
  55. option pxelinux.configfile code 209 = text;
  56. option pxelinux.pathprefix code 210 = text;
  57. option pxelinux.reboottime code 211 = unsigned integer 32;
  58. # Web Proxy Auto-Discovery Protocol (described in RFC 3040, used in MS IE 5.0 and later and maybe Mozilla)
  59. option wpad-url code 252 = text;
  60. # GRUB (GRand Unified Boot-loader) options
  61. option grub-configfile code 150 = text;
  62. class "PXE" {
  63. match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
  64. # Always include the following lines for all PXELINUX clients
  65. site-option-space "pxelinux"; # Works with isc-dhcpd-V3.0.1rc9 but not isc-dhcpd-V3.0.1rc10 for some reason
  66. option pxelinux.magic f1:00:74:7e;
  67. if exists dhcp-parameter-request-list {
  68. # Always send the PXELINUX options
  69. append dhcp-parameter-request-list 208, 209, 210, 211;
  70. }
  71. # option pxelinux.configfile = concat("pxelinux.cfg/", binary-to-ascii(16, 8, ":", hardware));
  72. # option pxelinux.reboottime 30;
  73. filename "pxelinux.0";
  74. }
  75. class "Etherboot" {
  76. match if substring (option vendor-class-identifier, 0, 9) = "Etherboot";
  77. }
  78. # Open Transport 2.5.1 and 2.5.2 fails with lease times larger than 1 hour
  79. class "Macintosh_a" {
  80. match if substring (hardware, 0, 3) = 00:05:02;
  81. default-lease-time 3599;
  82. max-lease-time 3599;
  83. min-lease-time 3599;
  84. }
  85. class "Macintosh_b" {
  86. match if substring (hardware, 0, 3) = 00:61:61;
  87. default-lease-time 3599;
  88. max-lease-time 3599;
  89. min-lease-time 3599;
  90. }
  91. subnet 192.168.102.0 netmask 255.255.255.0 {
  92. range 192.168.102.100 192.168.102.200;
  93. }
  94. include "/etc/dhcp3/dhcpd.hosts.fai";
  95. include "/etc/dhcp3/dhcpd.hosts.ltsp";
  96. include "/etc/dhcp3/dhcpd.hosts.grub";
  97. include "/etc/dhcp3/dhcpd.hosts.plain";