dhcpd.conf 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. #
  2. # Sample configuration file for ISC dhcpd for Debian
  3. #
  4. # $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
  5. #
  6. # The ddns-updates-style parameter controls whether or not the server will
  7. # attempt to do a DNS update when a lease is confirmed. We default to the
  8. # behavior of the version 2 packages ('none', since DHCP v2 didn't
  9. # have support for DDNS.)
  10. ddns-update-style none;
  11. # option definitions common to all supported networks...
  12. option domain-name "example.org";
  13. option domain-name-servers ns1.example.org, ns2.example.org;
  14. default-lease-time 600;
  15. max-lease-time 7200;
  16. # If this DHCP server is the official DHCP server for the local
  17. # network, the authoritative directive should be uncommented.
  18. #authoritative;
  19. # Use this to send dhcp log messages to a different log file (you also
  20. # have to hack syslog.conf to complete the redirection).
  21. log-facility local7;
  22. # No service will be given on this subnet, but declaring it helps the
  23. # DHCP server to understand the network topology.
  24. #subnet 10.152.187.0 netmask 255.255.255.0 {
  25. #}
  26. # This is a very basic subnet declaration.
  27. #subnet 10.254.239.0 netmask 255.255.255.224 {
  28. # range 10.254.239.10 10.254.239.20;
  29. # option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
  30. #}
  31. # This declaration allows BOOTP clients to get dynamic addresses,
  32. # which we don't really recommend.
  33. #subnet 10.254.239.32 netmask 255.255.255.224 {
  34. # range dynamic-bootp 10.254.239.40 10.254.239.60;
  35. # option broadcast-address 10.254.239.31;
  36. # option routers rtr-239-32-1.example.org;
  37. #}
  38. # A slightly different configuration for an internal subnet.
  39. #subnet 10.5.5.0 netmask 255.255.255.224 {
  40. # range 10.5.5.26 10.5.5.30;
  41. # option domain-name-servers ns1.internal.example.org;
  42. # option domain-name "internal.example.org";
  43. # option routers 10.5.5.1;
  44. # option broadcast-address 10.5.5.31;
  45. # default-lease-time 600;
  46. # max-lease-time 7200;
  47. #}
  48. # Hosts which require special configuration options can be listed in
  49. # host statements. If no address is specified, the address will be
  50. # allocated dynamically (if possible), but the host-specific information
  51. # will still come from the host declaration.
  52. #host passacaglia {
  53. # hardware ethernet 0:0:c0:5d:bd:95;
  54. # filename "vmunix.passacaglia";
  55. # server-name "toccata.fugue.com";
  56. #}
  57. # Fixed IP addresses can also be specified for hosts. These addresses
  58. # should not also be listed as being available for dynamic assignment.
  59. # Hosts for which fixed IP addresses have been specified can boot using
  60. # BOOTP or DHCP. Hosts for which no fixed address is specified can only
  61. # be booted with DHCP, unless there is an address range on the subnet
  62. # to which a BOOTP client is connected which has the dynamic-bootp flag
  63. # set.
  64. #host fantasia {
  65. # hardware ethernet 08:00:07:26:c0:a5;
  66. # fixed-address fantasia.fugue.com;
  67. #}
  68. # You can declare a class of clients and then do address allocation
  69. # based on that. The example below shows a case where all clients
  70. # in a certain class get addresses on the 10.17.224/24 subnet, and all
  71. # other clients get addresses on the 10.0.29/24 subnet.
  72. #class "foo" {
  73. # match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
  74. #}
  75. #shared-network 224-29 {
  76. # subnet 10.17.224.0 netmask 255.255.255.0 {
  77. # option routers rtr-224.example.org;
  78. # }
  79. # subnet 10.0.29.0 netmask 255.255.255.0 {
  80. # option routers rtr-29.example.org;
  81. # }
  82. # pool {
  83. # allow members of "foo";
  84. # range 10.17.224.10 10.17.224.250;
  85. # }
  86. # pool {
  87. # deny members of "foo";
  88. # range 10.0.29.10 10.0.29.230;
  89. # }
  90. #}