dhcp: allow different router IP suffix

This variable is only needed because we're in the process of deploying
keepalived. For now it's only at EDC.
This commit is contained in:
Yohaï-Eliel BERREBY 2020-05-08 16:36:07 +02:00
parent e58ee1c4b5
commit 4372b21976
5 changed files with 8 additions and 2 deletions

View file

@ -7,3 +7,4 @@ subnet_ids:
users_wired: 40
users_wifi: 41
router_ip_suffix: 254

View file

@ -7,3 +7,4 @@ subnet_ids:
users_wired: 10
users_wifi: 11
router_ip_suffix: 240

View file

@ -1,3 +1,5 @@
---
apartment_block: gs
apartment_block_id: 5
router_ip_suffix: 240

View file

@ -6,3 +6,5 @@ subnet_ids:
ap: 142
users_wired: 20
users_wifi: 21
router_ip_suffix: 240

View file

@ -44,7 +44,7 @@ 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.240;
option routers 10.{{ subnet_ids.users_wired }}.0.{{ router_ip_suffix }};
option domain-name "fil.{{ apartment_block }}.auro.re";
option domain-search "auro.re";
@ -61,7 +61,7 @@ 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.240;
option routers 10.{{ subnet_ids.users_wifi }}.0.{{ router_ip_suffix }};
option domain-name "wifi.{{ apartment_block }}.auro.re";
option domain-search "auro.re";