xref: /openwifi/user_space/dhcpd.conf (revision a7346801b61f871223d4bb5a6f4f47e920df7b4a)
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.)
13ddns-update-style none;
14
15# option definitions common to all supported networks...
16# option domain-name "orca-project.eu";
17#option domain-name-servers ns1.example.org, ns2.example.org;
18
19default-lease-time 600;
20max-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).
28log-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
33option subnet-mask 255.255.255.0;
34option broadcast-address 192.168.13.255;
35option routers 192.168.13.1;
36option domain-name-servers 8.8.8.8, 4.4.4.4;
37option domain-name "mydomain.example";
38
39subnet 192.168.13.0 netmask 255.255.255.0 {
40#	default-lease-time 6000;
41#	max-lease-time 7200;
42        option routers 192.168.13.1;
43        range   192.168.13.2   192.168.13.254;
44}
45
46#subnet 10.152.187.0 netmask 255.255.255.0 {
47#}
48
49# This is a very basic subnet declaration.
50
51#subnet 10.254.239.0 netmask 255.255.255.224 {
52#  range 10.254.239.10 10.254.239.20;
53#  option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
54#}
55
56# This declaration allows BOOTP clients to get dynamic addresses,
57# which we don't really recommend.
58
59#subnet 10.254.239.32 netmask 255.255.255.224 {
60#  range dynamic-bootp 10.254.239.40 10.254.239.60;
61#  option broadcast-address 10.254.239.31;
62#  option routers rtr-239-32-1.example.org;
63#}
64
65# A slightly different configuration for an internal subnet.
66#subnet 10.5.5.0 netmask 255.255.255.224 {
67#  range 10.5.5.26 10.5.5.30;
68#  option domain-name-servers ns1.internal.example.org;
69#  option domain-name "internal.example.org";
70#  option routers 10.5.5.1;
71#  option broadcast-address 10.5.5.31;
72#  default-lease-time 600;
73#  max-lease-time 7200;
74#}
75
76# Hosts which require special configuration options can be listed in
77# host statements.   If no address is specified, the address will be
78# allocated dynamically (if possible), but the host-specific information
79# will still come from the host declaration.
80
81#host passacaglia {
82#  hardware ethernet 0:0:c0:5d:bd:95;
83#  filename "vmunix.passacaglia";
84#  server-name "toccata.fugue.com";
85#}
86
87# Fixed IP addresses can also be specified for hosts.   These addresses
88# should not also be listed as being available for dynamic assignment.
89# Hosts for which fixed IP addresses have been specified can boot using
90# BOOTP or DHCP.   Hosts for which no fixed address is specified can only
91# be booted with DHCP, unless there is an address range on the subnet
92# to which a BOOTP client is connected which has the dynamic-bootp flag
93# set.
94#host fantasia {
95#  hardware ethernet 08:00:07:26:c0:a5;
96#  fixed-address fantasia.fugue.com;
97#}
98
99# You can declare a class of clients and then do address allocation
100# based on that.   The example below shows a case where all clients
101# in a certain class get addresses on the 10.17.224/24 subnet, and all
102# other clients get addresses on the 10.0.29/24 subnet.
103
104#class "foo" {
105#  match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
106#}
107
108#shared-network 224-29 {
109#  subnet 10.17.224.0 netmask 255.255.255.0 {
110#    option routers rtr-224.example.org;
111#  }
112#  subnet 10.0.29.0 netmask 255.255.255.0 {
113#    option routers rtr-29.example.org;
114#  }
115#  pool {
116#    allow members of "foo";
117#    range 10.17.224.10 10.17.224.250;
118#  }
119#  pool {
120#    deny members of "foo";
121#    range 10.0.29.10 10.0.29.230;
122#  }
123#}
124