|
@@ -8,3 +8,26 @@ docker exec --privileged -u root ous ifconfig veth0 mtu 9000
|
|
|
docker exec --privileged -u root ous route del default gw 172.18.0.1
|
|
|
docker exec --privileged -u root ous route add default gw 172.17.0.1
|
|
|
docker exec --privileged -u root relay bash -c "echo 0 > /proc/sys/net/ipv4/ip_forward"
|
|
|
+
|
|
|
+#Check to see whether hosts's docker interface has turned off off-loading
|
|
|
+
|
|
|
+tso=$(ethtool -k docker0 | grep tcp-segmentation-offload | awk -F': ' '{ print $2}')
|
|
|
+gso=$(ethtool -k docker0 | grep generic-segmentation-offload | awk -F': ' '{ print $2}')
|
|
|
+gro=$(ethtool -k docker0 | grep generic-receive-offload | awk -F': ' '{ print $2}')
|
|
|
+
|
|
|
+if [ $tso == on ] || [ $gso == on ] || [ $gro == on ]; then
|
|
|
+
|
|
|
+ echo "Please run the following commands:"
|
|
|
+
|
|
|
+fi
|
|
|
+
|
|
|
+if [ $tso == on ]; then
|
|
|
+ echo "ethtool -K docker0 tso off"
|
|
|
+fi
|
|
|
+if [ $gso == on ]; then
|
|
|
+ echo "ethtool -K docker0 gso off"
|
|
|
+fi
|
|
|
+if [ $gro == on ]; then
|
|
|
+ echo "ethtool -K docker0 gro off"
|
|
|
+fi
|
|
|
+
|