Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- /etc/xen/scripts/xen-network-common.sh.orig 2011-03-30 19:36:46.000000000 -0400
- +++ /etc/xen/scripts/xen-network-common.sh 2011-04-30 16:33:58.000000000 -0400
- @@ -139,6 +139,10 @@
- ip link set ${dev} up || true
- return
- fi
- + # Set the MTU of the vif to match the bridge.
- + if [ -e "/sys/class/net/${bridge}/mtu" ]; then
- + ip link set ${dev} mtu `cat /sys/class/net/${bridge}/mtu`
- + fi
- brctl addif ${bridge} ${dev}
- ip link set ${dev} up
- }
- --- /etc/xen/scripts/xen-network-common-bonding.sh.orig 2011-04-30 16:44:18.000000000 -0400
- +++ /etc/xen/scripts/xen-network-common-bonding.sh 2011-04-30 16:56:00.000000000 -0400
- @@ -137,6 +137,10 @@
- ip link set ${dev} up || true
- return
- fi
- + # Set the MTU of the vif to match the bridge.
- + if [ -e "/sys/class/net/${bridge}/mtu" ]; then
- + ip link set ${dev} mtu `cat /sys/class/net/${bridge}/mtu`
- + fi
- brctl addif ${bridge} ${dev}
- ip link set ${dev} up
- }
- --- /etc/xen/qemu-ifup.orig 2007-05-18 10:45:21.000000000 -0400
- +++ /etc/xen/qemu-ifup 2011-04-22 18:59:45.000000000 -0400
- @@ -5,5 +5,12 @@
- echo 'config qemu network with xen bridge for ' $*
- +# This sets the MTU of the tap interface to that of the corresponding ethX
- +# device so that the bridge's MTU doesn't drop when the interface is added to
- +# it. NOTE: Might be better to use the bridge device or pethX?
- +pdev=`echo $1 | sed -e "s/^tap\(.*\)$/eth/"`
- +mtu=`cat /sys/class/net/$pdev/mtu`
- +
- ifconfig $1 0.0.0.0 up
- +ifconfig $1 mtu $mtu
- brctl addif $2 $1
Advertisement
Add Comment
Please, Sign In to add comment