From 41bf7ac09bc0503d5144cbe3839f4e3cc246c7c7 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 8 Mar 2019 19:37:37 +0100 Subject: T1067: [vxlan] bump minimum MTU to 1450 bytes --- templates/interfaces/vxlan/node.tag/mtu/node.def | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/interfaces/vxlan/node.tag/mtu/node.def b/templates/interfaces/vxlan/node.tag/mtu/node.def index 2d01db91..9c213a91 100644 --- a/templates/interfaces/vxlan/node.tag/mtu/node.def +++ b/templates/interfaces/vxlan/node.tag/mtu/node.def @@ -1,11 +1,14 @@ type: u32 priority: 461 help: Maximum Transmission Unit (MTU) -syntax:expression: $VAR(@) >= 68 && $VAR(@) <= 9000; "Must be between 68-9000" -val_help: u32:68-9000; Maximum Transmission Unit (MTU) +syntax:expression: $VAR(@) >= 1450 && $VAR(@) <= 9000; "Must be between 1450-9000" +val_help: u32:1450-9000; Maximum Transmission Unit (MTU) update: if [ -d /sys/class/net/$VAR(../@) ] ; then + if [ "$VAR(@)" -lt "1500" ]; then + echo "WARNING: RFC7348 recommends VXLAN tunnels preserve a 1500 byte MTU." + fi sudo ip link set $VAR(../@) mtu $VAR(@) fi delete: -- cgit v1.2.3