You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dhcpd.conf 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #Dynamic DNS security settings
  2. key "dhcpdupdate" { #TODO
  3. algorithm hmac-md5;
  4. secret "FYhvwsW1ZtFZqWzsMpqhbg==";
  5. };
  6. zone dhcp.site.rthoni.com {
  7. primary 10.15.100.1;
  8. key dhcpdupdate;
  9. }
  10. zone site.rthoni.com {
  11. primary 10.15.100.1;
  12. key dhcpdupdate;
  13. }
  14. zone 100.15.10.in-addr.arpa. {
  15. primary 10.15.100.1;
  16. key dhcpdupdate;
  17. }
  18. # Custom routes classes
  19. option classless-routes code 121 = array of unsigned integer 8;
  20. option classless-routes-win code 249 = array of unsigned integer 8;
  21. # Leases settings
  22. default-lease-time 600;
  23. max-lease-time 7200;
  24. # Misc settings
  25. use-host-decl-names on;
  26. authoritative;
  27. log-facility local7;
  28. subnet 10.15.100.0 netmask 255.255.255.0 {
  29. # Dynamic DNS update
  30. ddns-updates off; #TODO
  31. ddns-update-style interim;
  32. update-static-leases off;
  33. ddns-domainname "dhcp.site.rthoni.com";
  34. ddns-rev-domainname "100.15.10.in-addr.arpa.";
  35. # IP settings
  36. range 10.15.100.50 10.15.100.250;
  37. option subnet-mask 255.255.255.0;
  38. option broadcast-address 10.15.100.255;
  39. option routers 10.15.100.1;
  40. # DNS settings
  41. option domain-name "site.rthoni.com";
  42. option domain-search "site.rthoni.com rthoni.com";
  43. option domain-name-servers 10.15.100.1;
  44. # Push custom routes to clients
  45. #option classless-routes 24, 10,15,42, 10.15.12,2;
  46. #option classless-routes-win 24, 10,15,42, 10.15.12,2;
  47. # Netboot settings
  48. next-server 10.15.100.1;
  49. #option root-path "10.15.100.1:/pxeroot/ubuntu";
  50. if exists user-class and ( option user-class = "iPXE-rthoni" ) {
  51. option domain-search "site.rthoni.com";
  52. filename "http://netboot/boot.ipxe";
  53. }
  54. else {
  55. filename "ipxe-rthoni.kpxe";
  56. }
  57. # Static IP hosts
  58. group {
  59. ddns-domainname "site.rthoni.com";
  60. }
  61. }