|
@@ -15,23 +15,24 @@ option ms-classless-static-routes code 249 = array of integer 8;
|
|
option rfc3442-classless-static-routes 24, 192, 168, 1, 10, 0, 0, 8, 0, 10, 0, 0, 1;
|
|
option rfc3442-classless-static-routes 24, 192, 168, 1, 10, 0, 0, 8, 0, 10, 0, 0, 1;
|
|
option ms-classless-static-routes 24, 192, 168, 1, 10, 0, 0, 8, 0, 10, 0, 0, 1;
|
|
option ms-classless-static-routes 24, 192, 168, 1, 10, 0, 0, 8, 0, 10, 0, 0, 1;
|
|
|
|
|
|
-subnet 10.0.0.0 netmask 255.255.255.0 {
|
|
|
|
|
|
+subnet {{ dhcp_cidr }} netmask {{ dhcp_netmask }} {
|
|
|
|
|
|
- option routers 10.0.0.1;
|
|
|
|
|
|
+ option routers {{ dhcp_routers }};
|
|
|
|
|
|
- option domain-name-servers 10.0.0.2, {{ dns_primary }}, {{ dns_secondary }};
|
|
|
|
|
|
+ option domain-name-servers {{ gateway_server_ip }}, {{ dns_primary }}, {{ dns_secondary }};
|
|
|
|
|
|
- # WINS info for Windows capability
|
|
|
|
- option netbios-name-servers 10.0.0.4;
|
|
|
|
- option netbios-node-type 8;
|
|
|
|
|
|
+ ## WINS info for Windows capability
|
|
|
|
+ #option netbios-name-servers 10.0.0.4;
|
|
|
|
+ #option netbios-node-type 8;
|
|
|
|
|
|
# Dynamic IPs
|
|
# Dynamic IPs
|
|
- range 10.0.0.100 10.0.0.200;
|
|
|
|
|
|
+ range {{ dhcp_range_start }} {{ dhcp_range_end }};
|
|
|
|
|
|
class "secured" {
|
|
class "secured" {
|
|
- option routers 10.0.0.2;
|
|
|
|
|
|
+ option routers {{ gateway_server_ip }};
|
|
|
|
|
|
# 192.168.1.0/24 thru 10.0.0.8, 10.0.0.2 as default route
|
|
# 192.168.1.0/24 thru 10.0.0.8, 10.0.0.2 as default route
|
|
|
|
+ #option rfc3442-classless-static-routes 24, 192, 168, 1, 10, 0, 0, 8, 0, 10, 0, 0, 2;
|
|
option rfc3442-classless-static-routes 24, 192, 168, 1, 10, 0, 0, 8, 0, 10, 0, 0, 2;
|
|
option rfc3442-classless-static-routes 24, 192, 168, 1, 10, 0, 0, 8, 0, 10, 0, 0, 2;
|
|
option ms-classless-static-routes 24, 192, 168, 1, 10, 0, 0, 8, 0, 10, 0, 0, 2;
|
|
option ms-classless-static-routes 24, 192, 168, 1, 10, 0, 0, 8, 0, 10, 0, 0, 2;
|
|
|
|
|
|
@@ -55,11 +56,11 @@ subnet 10.0.0.0 netmask 255.255.255.0 {
|
|
match hardware;
|
|
match hardware;
|
|
}
|
|
}
|
|
|
|
|
|
-{% for node in nodes %}
|
|
|
|
|
|
+{% for node in reservations %}
|
|
subclass "{{ node.type }}" 1:{{ node.mac }}; # {{ node.name }}
|
|
subclass "{{ node.type }}" 1:{{ node.mac }}; # {{ node.name }}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
|
|
-{% for node in nodes %}
|
|
|
|
|
|
+{% for node in reservations %}
|
|
host {{ node.name }}
|
|
host {{ node.name }}
|
|
{
|
|
{
|
|
hardware ethernet {{ node.mac }};
|
|
hardware ethernet {{ node.mac }};
|