summaryrefslogtreecommitdiffstats
path: root/dhcpd.conf
blob: 7bf5bf8ee632147e4c653ee7ba42f32274fb62ce (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# dhcpd.conf for interface __INTERFACE__
# generated by dyndhcpd/__VERSION__
authoritative;
ddns-update-style none;
ignore client-updates;
default-lease-time 21600;
max-lease-time 43200;

option domain-name "__DOMAINNAME__";

allow booting;
allow bootp;

subnet __NETADDRESS__ netmask __NETMASK__ {
	option broadcast-address __BROADCAST__;
	option routers __ADDRESS__;
	#option routers __MINHOST__;
	option domain-name-servers __ADDRESS__;
	option time-servers __ADDRESS__;

	range dynamic-bootp __MINHOST__ __MAXHOST__;
}

# make sure we do not serve our own address
host localhost {
	hardware ethernet de:ad:00:be:ef:00;
	fixed-address __ADDRESS__;
}

class "PXEClient" {
	match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
	next-server __ADDRESS__;

	# Options for iPXE
	if exists user-class and option user-class = "iPXE" {
		filename "http://__ADDRESS__:3928/default.ipxe";
	} else {
		filename "/undionly.kpxe";
	}
}