From 088e0f7de1db15f42d1b386b55c2f0fe734aa5c7 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Mon, 27 Mar 2017 23:17:21 +0200 Subject: [PATCH] Add MTU option to dhcp --- roles/dhcpd/defaults/main.yml | 1 + roles/dhcpd/templates/dhcpd.conf.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/dhcpd/defaults/main.yml b/roles/dhcpd/defaults/main.yml index 5b4d92f..f87abc1 100644 --- a/roles/dhcpd/defaults/main.yml +++ b/roles/dhcpd/defaults/main.yml @@ -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') }}" diff --git a/roles/dhcpd/templates/dhcpd.conf.j2 b/roles/dhcpd/templates/dhcpd.conf.j2 index 8adeaab..285ca66 100644 --- a/roles/dhcpd/templates/dhcpd.conf.j2 +++ b/roles/dhcpd/templates/dhcpd.conf.j2 @@ -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 }} ; }