Reduce the default MTU
This commit is contained in:
1 parent
50985dee90
commit
07892bff7d
2 files changed
+5
-4
No files matched your search
@@ -39,8 +39,8 @@ C2=10.2.1.7
|
||||
|
||||
start_suite "Ping over encrypted cross-host weave network (fastdp)"
|
||||
|
||||
WEAVE_MTU=1300 weave_on $HOST1 launch --password wfvAwt7sj
|
||||
WEAVE_MTU=1300 weave_on $HOST2 launch --password wfvAwt7sj $HOST1
|
||||
weave_on $HOST1 launch --password wfvAwt7sj
|
||||
weave_on $HOST2 launch --password wfvAwt7sj $HOST1
|
||||
|
||||
assert_raises "weave_on $HOST1 status connections | grep -P 'encrypted *fastdp'"
|
||||
assert_raises "weave_on $HOST2 status connections | grep -P 'encrypted *fastdp'"
|
||||
|
||||
@@ -704,8 +704,9 @@ init_fastdp() {
|
||||
# a local network, at 1460 bytes. To get the overlay MTU from that we
|
||||
# subtract 20 bytes for the outer IPv4 header, 8 bytes for the outer
|
||||
# UDP header, 8 bytes for the vxlan header, and 14 bytes for the inner
|
||||
# ethernet header.
|
||||
MTU=${WEAVE_MTU:-1410}
|
||||
# ethernet header. In addition, we subtract 34 bytes for the ESP overhead
|
||||
# which is needed for the vxlan encryption.
|
||||
MTU=${WEAVE_MTU:-1376}
|
||||
|
||||
# create_bridge already created the datapath netdev
|
||||
ip link set dev $DATAPATH mtu $MTU
|
||||
|
||||
Reference in new issue
Block a user