Merge branch 'stable-2.6'
[ganeti-local] / tools / kvm-ifup.in
index 370040c..2ff8ccb 100644 (file)
@@ -1,4 +1,5 @@
 #!/bin/sh
+#
 
 # Copyright (C) 2011 Google Inc.
 #
@@ -35,6 +36,8 @@ fi
 ip link set $INTERFACE up
 
 if [ "$MODE" = "bridged" ]; then
+       ip link set $INTERFACE mtu $(</sys/class/net/${BRIDGE}/mtu)
+
        # Connect the interface to the bridge
        brctl addif $BRIDGE $INTERFACE
 else