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