diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/interfaces/vxlan/node.tag/mtu/node.def | 7 |
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: |