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