Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 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. option domain-name-servers 208.67.222.222, 208.67.220.220;
  20.  
  21. default-lease-time 600;
  22. max-lease-time 7200;
  23.  
  24. # If this DHCP server is the official DHCP server for the local
  25. # network, the authoritative directive should be uncommented.
  26. authoritative;
  27.  
  28. # Use this to send dhcp log messages to a different log file (you also
  29. # have to hack syslog.conf to complete the redirection).
  30. log-facility local7;
  31.  
  32. # No service will be given on this subnet, but declaring it helps the
  33. # DHCP server to understand the network topology.
  34.  
  35. #subnet 10.152.187.0 netmask 255.255.255.0 {
  36. #}
  37.  
  38. # This is a very basic subnet declaration.
  39.  
  40. #subnet 10.254.239.0 netmask 255.255.255.224 {
  41. # range 10.254.239.10 10.254.239.20;
  42. # option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
  43. #}
  44.  
  45. # This declaration allows BOOTP clients to get dynamic addresses,
  46. # which we don't really recommend.
  47.  
  48. #subnet 10.254.239.32 netmask 255.255.255.224 {
  49. # range dynamic-bootp 10.254.239.40 10.254.239.60;
  50. # option broadcast-address 10.254.239.31;
  51. # option routers rtr-239-32-1.example.org;
  52. #}
  53.  
  54. # A slightly different configuration for an internal subnet.
  55. #subnet 10.5.5.0 netmask 255.255.255.224 {
  56. # range 10.5.5.26 10.5.5.30;
  57. # option domain-name-servers ns1.internal.example.org;
  58. # option domain-name "internal.example.org";
  59. # option routers 10.5.5.1;
  60. # option broadcast-address 10.5.5.31;
  61. # default-lease-time 600;
  62. # max-lease-time 7200;
  63. #}
  64.  
  65. # Hosts which require special configuration options can be listed in
  66. # host statements. If no address is specified, the address will be
  67. # allocated dynamically (if possible), but the host-specific information
  68. # will still come from the host declaration.
  69.  
  70. #host passacaglia {
  71. # hardware ethernet 0:0:c0:5d:bd:95;
  72. # filename "vmunix.passacaglia";
  73. # server-name "toccata.fugue.com";
  74. #}
  75.  
  76. # Fixed IP addresses can also be specified for hosts. These addresses
  77. # should not also be listed as being available for dynamic assignment.
  78. # Hosts for which fixed IP addresses have been specified can boot using
  79. # BOOTP or DHCP. Hosts for which no fixed address is specified can only
  80. # be booted with DHCP, unless there is an address range on the subnet
  81. # to which a BOOTP client is connected which has the dynamic-bootp flag
  82. # set.
  83. #host fantasia {
  84. # hardware ethernet 08:00:07:26:c0:a5;
  85. # fixed-address fantasia.fugue.com;
  86. #}
  87.  
  88. # You can declare a class of clients and then do address allocation
  89. # based on that. The example below shows a case where all clients
  90. # in a certain class get addresses on the 10.17.224/24 subnet, and all
  91. # other clients get addresses on the 10.0.29/24 subnet.
  92.  
  93. #class "foo" {
  94. # match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
  95. #}
  96.  
  97. #shared-network 224-29 {
  98. # subnet 10.17.224.0 netmask 255.255.255.0 {
  99. # option routers rtr-224.example.org;
  100. # }
  101. # subnet 10.0.29.0 netmask 255.255.255.0 {
  102. # option routers rtr-29.example.org;
  103. # }
  104. # pool {
  105. # allow members of "foo";
  106. # range 10.17.224.10 10.17.224.250;
  107. # }
  108. # pool {
  109. # deny members of "foo";
  110. # range 10.0.29.10 10.0.29.230;
  111. # }
  112. #}
  113. subnet 192.168.1.0 netmask 255.255.255.0 {
  114. range 192.168.1.XXX 192.168.1.XXX;
  115. option routers 192.168.1.XXX;
  116. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement