Parameterize most of the LAN config
So that it adapts to e.g. 192.168.50/24 instead of 192.168.0/24
This commit is contained in:
parent
53b54edd18
commit
1a9b3ba2e6
5 changed files with 21 additions and 8 deletions
|
@ -26,7 +26,7 @@ zone intern. {
|
|||
key rndc-key;
|
||||
}
|
||||
|
||||
zone 0.168.192.in-addr.arpa. {
|
||||
zone "{{ ipaddr_lan_ptr }}" {
|
||||
primary 127.0.0.1;
|
||||
key rndc-key;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ authoritative;
|
|||
#log-facility local7;
|
||||
|
||||
## The tftpd server IP address, for all clients.
|
||||
next-server 192.168.0.10;
|
||||
next-server {{ ipaddr_lan | ipaddr("address") }};
|
||||
|
||||
option arch code 93 = unsigned integer 16;
|
||||
if option arch = 00:07 {
|
||||
|
@ -50,7 +50,7 @@ if option arch = 00:07 {
|
|||
filename "d-i/n-a/pxelinux.0";
|
||||
}
|
||||
|
||||
subnet 192.168.0.0 netmask 255.255.255.0 {
|
||||
subnet {{ ipaddr_lan | ipaddr("address") }} netmask {{ ipaddr_lan | ipaddr("netmask") }} {
|
||||
option routers {{ ipaddr_lan | ipaddr("address") }};
|
||||
range {{ dhcp_start }} {{ dhcp_stop }};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue