Advertisement
Guest User

isc-dhcp

a guest
Jun 12th, 2014
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.09 KB | None | 0 0
  1. #
  2. # Sample configuration file for ISC dhcpd for Debian
  3. #
  4. # Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
  5. # configuration file instead of this file.
  6. #
  7. #
  8.  
  9. # The ddns-updates-style parameter controls whether or not the server will
  10. # attempt to do a DNS update when a lease is confirmed. We default to the
  11. # behavior of the version 2 packages ('none', since DHCP v2 didn't
  12. # have support for DDNS.)
  13. ddns-update-style interim;
  14. include "/etc/bind/rndc.key";
  15. zone hentleys.lan {
  16. primary 192.168.1.2;
  17. key "rndc-key";
  18. }
  19. ddns-domainname "hentleys.lan";
  20. ddns-rev-domainname "in-addr.arpa.";
  21.  
  22. # option definitions common to all supported networks...
  23. option domain-name "hentleys.lan";
  24. option domain-name-servers 192.168.1.2;
  25. option routers 192.168.1.1;
  26. option broadcast-address 192.168.1.255;
  27. default-lease-time 600;
  28. max-lease-time 7200;
  29.  
  30. # If this DHCP server is the official DHCP server for the local
  31. # network, the authoritative directive should be uncommented.
  32. authoritative;
  33.  
  34. # Use this to send dhcp log messages to a different log file (you also
  35. # have to hack syslog.conf to complete the redirection).
  36. log-facility local7;
  37.  
  38.  
  39. # Subnet declaration
  40. subnet 192.168.1.0 netmask 255.255.255.0 {
  41. range 192.168.1.101 192.168.1.200;
  42. zone 1.168.192.in-addr.arpa. {
  43. primary 192.168.1.2;
  44. key "rndc-key";
  45. }
  46. zone hentleys.lan. {
  47. primary 192.168.1.2;
  48. key "rndc-key";
  49. }
  50. }
  51.  
  52.  
  53.  
  54.  
  55. # No service will be given on this subnet, but declaring it helps the
  56. # DHCP server to understand the network topology.
  57.  
  58. #subnet 10.152.187.0 netmask 255.255.255.0 {
  59. #}
  60.  
  61. # This is a very basic subnet declaration.
  62.  
  63. #subnet 10.254.239.0 netmask 255.255.255.224 {
  64. # range 10.254.239.10 10.254.239.20;
  65. # option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
  66. #}
  67.  
  68. # This declaration allows BOOTP clients to get dynamic addresses,
  69. # which we don't really recommend.
  70.  
  71. #subnet 10.254.239.32 netmask 255.255.255.224 {
  72. # range dynamic-bootp 10.254.239.40 10.254.239.60;
  73. # option broadcast-address 10.254.239.31;
  74. # option routers rtr-239-32-1.example.org;
  75. #}
  76.  
  77. # A slightly different configuration for an internal subnet.
  78. #subnet 10.5.5.0 netmask 255.255.255.224 {
  79. # range 10.5.5.26 10.5.5.30;
  80. # option domain-name-servers ns1.internal.example.org;
  81. # option domain-name "internal.example.org";
  82. # option routers 10.5.5.1;
  83. # option broadcast-address 10.5.5.31;
  84. # default-lease-time 600;
  85. # max-lease-time 7200;
  86. #}
  87.  
  88. # Hosts which require special configuration options can be listed in
  89. # host statements. If no address is specified, the address will be
  90. # allocated dynamically (if possible), but the host-specific information
  91. # will still come from the host declaration.
  92.  
  93. #host passacaglia {
  94. # hardware ethernet 0:0:c0:5d:bd:95;
  95. # filename "vmunix.passacaglia";
  96. # server-name "toccata.fugue.com";
  97. #}
  98.  
  99. # Fixed IP addresses can also be specified for hosts. These addresses
  100. # should not also be listed as being available for dynamic assignment.
  101. # Hosts for which fixed IP addresses have been specified can boot using
  102. # BOOTP or DHCP. Hosts for which no fixed address is specified can only
  103. # be booted with DHCP, unless there is an address range on the subnet
  104. # to which a BOOTP client is connected which has the dynamic-bootp flag
  105. # set.
  106. #host fantasia {
  107. # hardware ethernet 08:00:07:26:c0:a5;
  108. # fixed-address fantasia.fugue.com;
  109. #}
  110.  
  111. # You can declare a class of clients and then do address allocation
  112. # based on that. The example below shows a case where all clients
  113. # in a certain class get addresses on the 10.17.224/24 subnet, and all
  114. # other clients get addresses on the 10.0.29/24 subnet.
  115.  
  116. #class "foo" {
  117. # match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
  118. #}
  119.  
  120. #shared-network 224-29 {
  121. # subnet 10.17.224.0 netmask 255.255.255.0 {
  122. # option routers rtr-224.example.org;
  123. # }
  124. # subnet 10.0.29.0 netmask 255.255.255.0 {
  125. # option routers rtr-29.example.org;
  126. # }
  127. # pool {
  128. # allow members of "foo";
  129. # range 10.17.224.10 10.17.224.250;
  130. # }
  131. # pool {
  132. # deny members of "foo";
  133. # range 10.0.29.10 10.0.29.230;
  134. # }
  135. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement