aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tg16/dhcp/dhcpd.conf
blob: dd574040465eb2f2c14f175b8a42acc8da80b023 (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# GENERATED BY make-dhcpd.pl

# 60 min leasetime, 120 min max
default-lease-time 3600;
max-lease-time 7200;

# make server authorative
authoritative;

# Don't let clients set their own FQDN
ignore client-updates;

# enable DDNS
ddns-update-style interim;

# set ddns-hostname
if exists host-name {
        ddns-hostname = lcase(option host-name);
} elsif exists fqdn.hostname {
        ddns-hostname = lcase(option fqdn.hostname);
} else {
        ddns-hostname = binary-to-ascii(10, 8, "-", leased-address);
}

# Domain name (unless overriden elsewhere)
option domain-name "tg16.gathering.org";
option domain-name-servers 185.110.149.2, 185.110.148.2;

key DHCP_UPDATER {
        algorithm HMAC-MD5.SIG-ALG.REG.INT;
        secret <removed>;
}

# Servernetwork, Tele
subnet 185.110.149.0 netmask 255.255.255.192 {}
	
# Servernetwork, NOC
# Add small range at the end for PXE
subnet 185.110.148.0 netmask 255.255.255.192 {
	option subnet-mask 255.255.255.192;
	option routers 185.110.148.1;

	# No DDNS
	ddns-updates off;
	ddns-hostname = none;
	ddns-domainname = none;
	
	# supershort leasetime
	default-lease-time 300;
	max-lease-time 600;
	
	range 185.110.148.48 185.110.148.62;
}

include "/etc/dhcp/v4-revzones.conf";
include "/etc/dhcp/v4-generated-include.conf";
include "/etc/dhcp/v4-pxe-boot.conf";
include "/etc/dhcp/v4-wlc.conf";
include "/etc/dhcp/v4-voip.conf";