dhcpd.conf 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. # 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. # option definitions common to all supported networks...
  15. option domain-name ".dp";
  16. option domain-name-servers ns1.dp;
  17. default-lease-time 7200;
  18. max-lease-time 14400;
  19. allow bootp;
  20. # If this DHCP server is the official DHCP server for the local
  21. # network, the authoritative directive should be uncommented.
  22. authoritative;
  23. # Use this to send dhcp log messages to a different log file (you also
  24. # have to hack syslog.conf to complete the redirection).
  25. log-facility local7;
  26. # No service will be given on this subnet, but declaring it helps the
  27. # DHCP server to understand the network topology.
  28. subnet 10.0.1.0 netmask 255.255.255.0 {
  29. }
  30. # This is a very basic subnet declaration.
  31. subnet 10.0.21.0 netmask 255.255.255.0 {
  32. range 10.0.21.50 10.0.21.254;
  33. option ntp-servers 10.0.21.1;
  34. # filename "/pxelinux.0";
  35. # next-server 10.0.21.1;
  36. }
  37. host hplaserjet {
  38. hardware ethernet 08:00:09:0e:db:57;
  39. fixed-address 10.0.21.5;
  40. }
  41. host ubntswitch {
  42. hardware ethernet 80:2a:a8:5c:eb:f3;
  43. fixed-address 10.0.21.85;
  44. }
  45. # This declaration allows BOOTP clients to get dynamic addresses,
  46. # which we don't really recommend.
  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. # A slightly different configuration for an internal subnet.
  53. #subnet 10.5.5.0 netmask 255.255.255.224 {
  54. # range 10.5.5.26 10.5.5.30;
  55. # option domain-name-servers ns1.internal.example.org;
  56. # option domain-name "internal.example.org";
  57. # option routers 10.5.5.1;
  58. # option broadcast-address 10.5.5.31;
  59. # default-lease-time 600;
  60. # max-lease-time 7200;
  61. #}
  62. # Hosts which require special configuration options can be listed in
  63. # host statements. If no address is specified, the address will be
  64. # allocated dynamically (if possible), but the host-specific information
  65. # will still come from the host declaration.
  66. #host passacaglia {
  67. # hardware ethernet 0:0:c0:5d:bd:95;
  68. # filename "vmunix.passacaglia";
  69. # server-name "toccata.fugue.com";
  70. #}
  71. # Fixed IP addresses can also be specified for hosts. These addresses
  72. # should not also be listed as being available for dynamic assignment.
  73. # Hosts for which fixed IP addresses have been specified can boot using
  74. # BOOTP or DHCP. Hosts for which no fixed address is specified can only
  75. # be booted with DHCP, unless there is an address range on the subnet
  76. # to which a BOOTP client is connected which has the dynamic-bootp flag
  77. # set.
  78. #host fantasia {
  79. # hardware ethernet 08:00:07:26:c0:a5;
  80. # fixed-address fantasia.fugue.com;
  81. #}
  82. # You can declare a class of clients and then do address allocation
  83. # based on that. The example below shows a case where all clients
  84. # in a certain class get addresses on the 10.17.224/24 subnet, and all
  85. # other clients get addresses on the 10.0.29/24 subnet.
  86. #class "foo" {
  87. # match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
  88. #}
  89. #shared-network 224-29 {
  90. # subnet 10.17.224.0 netmask 255.255.255.0 {
  91. # option routers rtr-224.example.org;
  92. # }
  93. # subnet 10.0.29.0 netmask 255.255.255.0 {
  94. # option routers rtr-29.example.org;
  95. # }
  96. # pool {
  97. # allow members of "foo";
  98. # range 10.17.224.10 10.17.224.250;
  99. # }
  100. # pool {
  101. # deny members of "foo";
  102. # range 10.0.29.10 10.0.29.230;
  103. # }
  104. #}