Add MTU option to dhcp

This commit is contained in:
Markus 2017-03-27 23:17:21 +02:00
parent c05c0cafcd
commit 088e0f7de1
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
---
dhcp_mtu: 1280
dhcp_first: "{{ batman_ipv4 | ipaddr('512') | ipaddr('address') }}"
dhcp_last: "{{ batman_ipv4 | ipaddr('2558') | ipaddr('address') }}"
name_server: "{{ batman_ipv4 | ipaddr('address') }}"

View File

@ -24,6 +24,7 @@ log-facility local7;
# Freifunk Regensburg
subnet {{ batman_ipv4 | ipaddr('network') }} netmask {{ batman_ipv4 | ipaddr('netmask') }} {
option routers {{ batman_ipv4 | ipaddr('address') }};
option interface-mtu {{ dhcp_mtu }};
pool {
range {{ dhcp_first }} {{ dhcp_last }} ;
}