diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-03-08 19:37:37 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-03-17 16:04:02 +0100 |
commit | 4883f3aa0ad00a33acf0ba18af162a35d85a0325 (patch) | |
tree | 7f85626f1fd51fd0673d40d9e8a1411ea4ab79a0 /templates | |
parent | 77102cd98f4284f2b3b2d52475a8dbbf1f79e86f (diff) | |
download | vyatta-cfg-system-4883f3aa0ad00a33acf0ba18af162a35d85a0325.tar.gz vyatta-cfg-system-4883f3aa0ad00a33acf0ba18af162a35d85a0325.zip |
T1067: [vxlan] bump minimum MTU to 1450 bytes
(cherry picked from commit 41bf7ac09bc0503d5144cbe3839f4e3cc246c7c7)
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: |