summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-03-08 19:37:37 +0100
committerChristian Poessinger <christian@poessinger.com>2019-03-08 19:37:37 +0100
commit41bf7ac09bc0503d5144cbe3839f4e3cc246c7c7 (patch)
tree342982ef91fa4fdba6df6213220dfc91cf9852c3 /templates
parent575d326eb5dc4e7521533819f8b5c12e9d728a87 (diff)
downloadvyatta-cfg-system-41bf7ac09bc0503d5144cbe3839f4e3cc246c7c7.tar.gz
vyatta-cfg-system-41bf7ac09bc0503d5144cbe3839f4e3cc246c7c7.zip
T1067: [vxlan] bump minimum MTU to 1450 bytes
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/vxlan/node.tag/mtu/node.def7
1 files changed, 5 insertions, 2 deletions
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: