...
1# dhcpd.conf
2#
3# Sample configuration file for ISC dhcpd
4#
5# Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
6# configuration file instead of this file.
7#
8
9# option definitions common to all supported networks...
10option domain-name "example.org";
11option domain-name-servers ns1.example.org, ns2.example.org;
12
13default-lease-time 600;
14max-lease-time 7200;
15
16ddns-update-style none;
17
18authoritative;
19
20log-facility local7;
21
22# This is a very basic subnet declaration.
23
24subnet 10.254.239.0 netmask 255.255.255.224 {
25 range 10.254.239.10 10.254.239.20;
26 option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
27}
28
29subnet 10.254.239.32 netmask 255.255.255.224 {
30 range dynamic-bootp 10.254.239.40 10.254.239.60;
31 option broadcast-address 10.254.239.31;
32 option routers rtr-239-32-1.example.org;
33}
34
35
36# A slightly different configuration for an internal subnet.
37subnet 10.5.5.0 netmask 255.255.255.224 {
38 range 10.5.5.26 10.5.5.30;
39 option domain-name-servers ns1.internal.example.org;
40 option domain-name "internal.example.org";
41 option subnet-mask 255.255.255.224;
42 option routers 10.5.5.1;
43 option broadcast-address 10.5.5.31;
44 default-lease-time 600;
45 max-lease-time 7200;
46}
47
48host passacaglia {
49 hardware ethernet 0:0:c0:5d:bd:95;
50 filename "vmunix.passacaglia";
51 server-name "toccata.example.com";
52}
53
54host fantasia {
55 hardware ethernet 08:00:07:26:c0:a5;
56 fixed-address fantasia.example.com;
57}
58
59class "foo" {
60 match if substring (option vendor-class-identifier, 0, 4) = "S\"UNW";
61 log(info,concat("SUN request from ",host-decl-name));
62}
63
64shared-network 224-29 {
65 subnet 10.17.224.0 netmask 255.255.255.0 {
66 option routers rtr-224.example.org;
67 }
68 subnet 10.0.29.0 netmask 255.255.255.0 {
69 option routers rtr-29.example.org;
70 }
71 pool {
72 allow members of "foo";
73 range 10.17.224.10 10.17.224.250;
74 }
75 pool {
76 deny members of "foo";
77 range 10.0.29.10 10.0.29.230;
78 }
79}
View as plain text