Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 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 none;
  14.  
  15. # option definitions common to all supported networks...
  16. option domain-name "example.org";
  17. option domain-name-servers ns1.example.org, ns2.example.org;
  18.  
  19. default-lease-time 600;
  20. max-lease-time 7200;
  21.  
  22. # If this DHCP server is the official DHCP server for the local
  23. # network, the authoritative directive should be uncommented.
  24. authoritative;
  25.  
  26. #subnet 182.18.0.0 netmask 255.255.192.0 {
  27. # interface enp3s0;
  28. # range 182.18.0.0 182.18.0.8;
  29. # default-lease-time 600;
  30. # max-lease-time 7200;
  31. #}
  32.  
  33. #subnet 182.19.0.0 netmask 255.255.192.0 {
  34. # interface enx00e04c534458;
  35. # range 182.19.0.0 182.19.0.8;
  36. # default-lease-time 600;
  37. # max-lease-time 7200;
  38. #}
  39.  
  40. # A slightly different configuration for an internal subnet.
  41. subnet 182.18.0.0 netmask 255.255.0.0 {
  42. interface enp3s0;
  43. range 182.18.0.2 182.18.0.9;
  44. default-lease-time 600;
  45. max-lease-time 7200;
  46. option subnet-mask 255.255.192.0;
  47. option routers 182.18.0.1;
  48. option broadcast-address 182.18.63.255;
  49.  
  50. }
  51.  
  52. subnet 182.19.0.0 netmask 255.255.0.0 {
  53. interface enx00e04c534458;
  54. range 182.19.0.2 182.19.0.9;
  55. default-lease-time 600;
  56. max-lease-time 7200;
  57. option subnet-mask 255.255.192.0;
  58. option routers 182.19.0.1;
  59. option broadcast-address 182.19.63.255;
  60.  
  61. }
  62.  
  63. host client1
  64. {
  65. hardware ethernet 08:00:27:91:44:86;
  66. fixed-address 182.18.0.6;
  67. }
  68.  
  69. host client2
  70. {
  71. #hardware ethernet 00:e0:4c:53:44:58;
  72. #akuhardware ethernet 2c:56:dc:04:8b:65;
  73. hardware ethernet 28:d2:44:6b:14:be;
  74. fixed-address 182.19.0.4;
  75. }
  76.  
  77.  
  78.  
  79. # Use this to send dhcp log messages to a different log file (you also
  80. # have to hack syslog.conf to complete the redirection).
  81. log-facility local7;
  82.  
  83. # No service will be given on this subnet, but declaring it helps the
  84. # DHCP server to understand the network topology.
  85.  
  86. #subnet 10.152.187.0 netmask 255.255.255.0 {
  87. #}
  88.  
  89. # This is a very basic subnet declaration.
  90.  
  91. #subnet 10.254.239.0 netmask 255.255.255.224 {
  92. # range 10.254.239.10 10.254.239.20;
  93. # option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
  94. #}
  95.  
  96. # This declaration allows BOOTP clients to get dynamic addresses,
  97. # which we don't really recommend.
  98.  
  99. #subnet 10.254.239.32 netmask 255.255.255.224 {
  100. # range dynamic-bootp 10.254.239.40 10.254.239.60;
  101. # option broadcast-address 10.254.239.31;
  102. # option routers rtr-239-32-1.example.org;
  103. #}
  104.  
  105.  
  106. # Hosts which require special configuration options can be listed in
  107. # host statements. If no address is specified, the address will be
  108. # allocated dynamically (if possible), but the host-specific information
  109. # will still come from the host declaration.
  110.  
  111. #host passacaglia {
  112. # hardware ethernet 0:0:c0:5d:bd:95;
  113. # filename "vmunix.passacaglia";
  114. # server-name "toccata.fugue.com";
  115. #}
  116.  
  117. # Fixed IP addresses can also be specified for hosts. These addresses
  118. # should not also be listed as being available for dynamic assignment.
  119. # Hosts for which fixed IP addresses have been specified can boot using
  120. # BOOTP or DHCP. Hosts for which no fixed address is specified can only
  121. # be booted with DHCP, unless there is an address range on the subnet
  122. # to which a BOOTP client is connected which has the dynamic-bootp flag
  123. # set.
  124. #host fantasia {
  125. # hardware ethernet 08:00:07:26:c0:a5;
  126. # fixed-address fantasia.fugue.com;
  127. #}
  128.  
  129. # You can declare a class of clients and then do address allocation
  130. # based on that. The example below shows a case where all clients
  131. # in a certain class get addresses on the 10.17.224/24 subnet, and all
  132. # other clients get addresses on the 10.0.29/24 subnet.
  133.  
  134. #class "foo" {
  135. # match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
  136. #}
  137.  
  138. #shared-network 224-29 {
  139. # subnet 10.17.224.0 netmask 255.255.255.0 {
  140. # option routers rtr-224.example.org;
  141. # }
  142. # subnet 10.0.29.0 netmask 255.255.255.0 {
  143. # option routers rtr-29.example.org;
  144. # }
  145. # pool {
  146. # allow members of "foo";
  147. # range 10.17.224.10 10.17.224.250;
  148. # }
  149. # pool {
  150. # deny members of "foo";
  151. # range 10.0.29.10 10.0.29.230;
  152. # }
  153. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement