1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00
iiab/roles/network/templates/dhcp.unused/dhcpd-iiab.conf.j2

49 lines
1.6 KiB
Text
Raw Normal View History

2017-05-27 18:09:50 +00:00
#
# School server 1 DHCP Server Configuration file.
#
ddns-update-style interim;
#ignore client-updates;
option domain-name "{{ iiab_domain }}";
2022-06-23 03:55:56 +00:00
option domain-name-servers {{ lan_ip }};
option ntp-servers {{ lan_ip }};
2017-05-27 18:09:50 +00:00
{% if network_172 %}
2017-05-27 18:09:50 +00:00
subnet 172.18.96.0 netmask 255.255.224.0 {
{% if iiab_network_mode == "Gateway" %}
option routers {{ lan_ip }};
{% endif %}
option subnet-mask 255.255.224.0;
option broadcast-address 172.18.127.255;
# Description of network allocations in old OLPC school server
# this is the whole range we have available - 8K addresses
# range 172.18.96.2 172.18.127.254;
# instead, we'll save 510 addresses for later.
range 172.18.96.2 172.18.125.254;
# the other /24s:
# -> 172.18.126.0/24 for static IP addresses
# for printers, AP management consoles, etc.
# -> 172.18.127.0/24 for temporary addresses for
# XO activation
2022-06-23 03:55:56 +00:00
# As this subnet is wired or wifi a/b/g, these lease
# times are on the long side
default-lease-time 10800;
max-lease-time 21600;
2017-05-27 18:09:50 +00:00
}
{% else %}
subnet 10.10.10.0 netmask 255.255.255.0 {
{% if iiab_network_mode == "Gateway" %}
option routers {{ lan_ip }};
{% endif %}
option subnet-mask 255.255.255.0;
option broadcast-address 10.10.10.255;
range 10.10.10.11 10.10.10.254;
# As this subnet is wired or wifi a/b/g, these lease
# times are on the long side
default-lease-time 10800;
max-lease-time 21600;
}
{% endif %}