digimer

Untitled

May 2nd, 2011
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.58 KB | None | 0 0
  1. --- /etc/xen/scripts/xen-network-common.sh.orig 2011-03-30 19:36:46.000000000 -0400
  2. +++ /etc/xen/scripts/xen-network-common.sh      2011-04-30 16:33:58.000000000 -0400
  3. @@ -139,6 +139,10 @@
  4.         ip link set ${dev} up || true
  5.         return
  6.      fi
  7. +    # Set the MTU of the vif to match the bridge.
  8. +    if [ -e "/sys/class/net/${bridge}/mtu" ]; then
  9. +        ip link set ${dev} mtu `cat /sys/class/net/${bridge}/mtu`
  10. +    fi
  11.      brctl addif ${bridge} ${dev}
  12.      ip link set ${dev} up
  13.  }
  14.  
  15. --- /etc/xen/scripts/xen-network-common-bonding.sh.orig 2011-04-30 16:44:18.000000000 -0400
  16. +++ /etc/xen/scripts/xen-network-common-bonding.sh      2011-04-30 16:56:00.000000000 -0400
  17. @@ -137,6 +137,10 @@
  18.         ip link set ${dev} up || true
  19.         return
  20.      fi
  21. +    # Set the MTU of the vif to match the bridge.
  22. +    if [ -e "/sys/class/net/${bridge}/mtu" ]; then
  23. +        ip link set ${dev} mtu `cat /sys/class/net/${bridge}/mtu`
  24. +    fi
  25.      brctl addif ${bridge} ${dev}
  26.      ip link set ${dev} up
  27.  }
  28.  
  29. --- /etc/xen/qemu-ifup.orig     2007-05-18 10:45:21.000000000 -0400
  30. +++ /etc/xen/qemu-ifup  2011-04-22 18:59:45.000000000 -0400
  31. @@ -5,5 +5,12 @@
  32.  
  33.  echo 'config qemu network with xen bridge for ' $*
  34.  
  35. +# This sets the MTU of the tap interface to that of the corresponding ethX
  36. +# device so that the bridge's MTU doesn't drop when the interface is added to
  37. +# it. NOTE: Might be better to use the bridge device or pethX?
  38. +pdev=`echo $1 | sed -e "s/^tap\(.*\)$/eth/"`
  39. +mtu=`cat /sys/class/net/$pdev/mtu`
  40. +
  41.  ifconfig $1 0.0.0.0 up
  42. +ifconfig $1 mtu $mtu
  43.  brctl addif $2 $1
Advertisement
Add Comment
Please, Sign In to add comment