subnet
diff --git a/files/dhcpd.subnets b/files/dhcpd.subnets
new file mode 100644
index 0000000..6160b2b
--- /dev/null
+++ b/files/dhcpd.subnets
@@ -0,0 +1,20 @@
+{%- for subnet_name, subnet in server.subnet.iteritems() %}
+
+subnet {{ subnet.network }} netmask {{ subnet.netmask }} {
+  {%- if subnet.range is defined %}
+  pool
+  {
+    range {{ subnet.range }};
+  }
+  {%- endif %}
+
+  option subnet-mask {{ subnet.netmask }};
+  {%- if subnet.gateway is defined %}
+  option routers {{ subnet.gateway }};
+  {%- endif %}
+  {%- if subnet.pxeserver is defined %}
+  next-server {{ subnet.pxeserver }};
+  {%- endif %}
+}
+
+{%- endfor %}
\ No newline at end of file