Advertisement
Guest User

Untitled

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