aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tg19/dhcp/templates/dhcpd.conf
blob: e91d8b5af0fe3cc75ba17e84c2d5a26162913e7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Autogenerated dhcpd.conf from gondul

{% for (network, n) in objects["read/networks"].networks|dictsort %}
{% if n != None and n.subnet4 != None and n.vlan != 666 %}
# {{network}}
subnet  {{ n.subnet4|networkId }} netmask {{ n.subnet4|netmask }} {
	range {{ n.subnet4|getFirstDhcpIp }} {{ n.subnet4|getLastDhcpIp }};
	option subnet-mask {{ n.subnet4|netmask }};
	option routers {{ n.gw4 }};
	option domain-name "{{network}}.tg19.gathering.org";
	ddns-domainname "{{network}}.tg19.gathering.org";
}

zone {{network}}.tg19.gathering.org {
	primary 127.0.0.1;
	key DHCP_UPDATER;
}

{% endif %}
{% endfor %}