Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

dhcpd.conf 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #Dynamic DNS security settings
  2. key DHCP_TSIG_KEY_NAME {
  3. algorithm DHCP_TSIG_KEY_ALGO;
  4. secret "DHCP_TSIG_KEY_SECRET";
  5. };
  6. zone DHCP_DYN_IPS_DOMAIN {
  7. primary DHCP_DNS_MASTER;
  8. key DHCP_TSIG_KEY_NAME;
  9. }
  10. zone DHCP_SITE_DOMAIN {
  11. primary DHCP_DNS_MASTER;
  12. key DHCP_TSIG_KEY_NAME;
  13. }
  14. zone DHCP_REV_DOMAIN {
  15. primary DHCP_DNS_MASTER;
  16. key DHCP_TSIG_KEY_NAME;
  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. # Dynamic DNS update
  25. ddns-updates on;
  26. ddns-update-style interim;
  27. update-static-leases on;
  28. #allow client-updates;
  29. ddns-rev-domainname "in-addr.arpa.";
  30. # Misc settings
  31. use-host-decl-names on;
  32. authoritative;
  33. log-facility local7;
  34. subnet DHCP_SUBNET netmask DHCP_NETMASK {
  35. # Dynamic DNS update
  36. ddns-domainname "DHCP_DYN_IPS_DOMAIN";
  37. update-conflict-detection false;
  38. # IP settings
  39. range DHCP_IP_FIRST DHCP_IP_LAST;
  40. option subnet-mask DHCP_NETMASK;
  41. option broadcast-address DHCP_BROADCAST;
  42. option routers DHCP_ROUTERS;
  43. # DNS settings
  44. option domain-name "DHCP_SITE_DOMAIN";
  45. option domain-search "DHCP_SITE_DOMAIN", "DHCP_DOMAIN";
  46. option domain-name-servers DHCP_DNS_SERVER;
  47. # Push custom routes to clients
  48. #option classless-routes 24, 10,15,42, 10.15.12,2;
  49. #option classless-routes-win 24, 10,15,42, 10.15.12,2;
  50. # Netboot settings
  51. next-server DHCP_TFTP_SERVER;
  52. #option root-path "10.15.100.1:/pxeroot/ubuntu";
  53. if exists user-class and ( option user-class = "iPXE-rthoni" ) {
  54. option domain-search "DHCP_SITE_DOMAIN";
  55. filename "http://netboot/boot.ipxe";
  56. }
  57. else {
  58. filename "ipxe-rthoni.kpxe";
  59. }
  60. # Static IP hosts
  61. group {
  62. host vm-pxe {
  63. hardware ethernet 08:00:27:7b:9d:21;
  64. fixed-address 10.15.100.10;
  65. }
  66. host vm-windows {
  67. hardware ethernet 08:00:27:76:ce:95;
  68. fixed-address 10.15.100.11;
  69. }
  70. ddns-domainname "DHCP_SITE_DOMAIN";
  71. option host-name = host-decl-name;
  72. ddns-hostname = config-option host-name;
  73. }
  74. # Force a default hostname if not present
  75. if option dhcp-message-type = 3 and not exists host-name and config-option host-name = null {
  76. option host-name = concat("dyn-", binary-to-ascii(10, 8, "-", leased-address));
  77. ddns-hostname = config-option host-name;
  78. }
  79. }