# Bornes WiFi subnet 10.{{ subnet_ids.ap }}.0.0 netmask 255.255.0.0 { interface "ens19"; option subnet-mask 255.255.0.0; option broadcast-address 10.{{ subnet_ids.ap }}.255.255; option routers 10.{{ subnet_ids.ap }}.0.250; option domain-name "borne.auro.re"; option domain-search "borne.auro.re"; option domain-name-servers 10.{{ subnet_ids.ap }}.0.{{ dns_host_suffix_main }}, 10.{{ subnet_ids.ap }}.0.{{ dns_host_suffix_backup }}, {{ backup_dns_servers|join(', ') }}; include "/var/local/re2o-services/dhcp/generated/dhcp.borne.auro.re.list"; deny unknown-clients; } # Users filaire subnet 10.{{ subnet_ids.users_wired }}.0.0 netmask 255.255.0.0 { interface "ens20"; option subnet-mask 255.255.0.0; option broadcast-address 10.{{ subnet_ids.users_wired }}.255.255; option routers 10.{{ subnet_ids.users_wired }}.0.{{ router_ip_suffix }}; option domain-name "fil.{{ apartment_block_dhcp }}.auro.re"; option domain-search "auro.re"; option domain-name-servers 10.{{ subnet_ids.users_wired }}.0.{{ dns_host_suffix_main }}, 10.{{ subnet_ids.users_wired }}.0.{{ dns_host_suffix_backup }}, {{ backup_dns_servers|join(', ') }}; include "/var/local/re2o-services/dhcp/generated/dhcp.fil.{{ apartment_block_dhcp }}.auro.re.list"; deny unknown-clients; } # Users WiFi subnet 10.{{ subnet_ids.users_wifi }}.0.0 netmask 255.255.0.0 { interface "ens21"; option subnet-mask 255.255.0.0; option broadcast-address 10.{{ subnet_ids.users_wifi }}.255.255; option routers 10.{{ subnet_ids.users_wifi }}.0.{{ router_ip_suffix }}; option domain-name "wifi.{{ apartment_block_dhcp }}.auro.re"; option domain-search "auro.re"; option domain-name-servers 10.{{ subnet_ids.users_wifi }}.0.{{ dns_host_suffix_main }}, 10.{{ subnet_ids.users_wifi }}.0.{{ dns_host_suffix_backup }}, {{ backup_dns_servers|join(', ') }}; include "/var/local/re2o-services/dhcp/generated/dhcp.wifi.{{ apartment_block_dhcp }}.auro.re.list"; pool { range 10.{{ subnet_ids.users_wifi }}.8.0 10.{{ subnet_ids.users_wifi }}.10.255; {% if dhcp_failover is defined %} failover peer "dhcp-failover"; {% endif %} } }