ip dhcp excluded-address {{ gateway }}
{% if exclude_from and exclude_to %}
ip dhcp excluded-address {{ exclude_from }} {{ exclude_to }}
{% endif %}
ip dhcp pool {{ pool_name }}
network {{ subnet|network }} {{ subnet|netmask }}
default-router {{ gateway }}
{% if dns %}
dns-server {{ dns }}
{% endif %}
lease {{ lease_days }}
exit
