From: Miroslav Rezanina Date: Wed, 5 Jan 2011 23:42:03 +0000 (+0000) Subject: Change tap device mac address to prevent change of bridge's mac X-Git-Tag: xen-4.0.2-rc1^0 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6d5b7ee3acfe8cc10681d2583a38398f7470ec2a;p=qemu-xen-4.0-testing.git Change tap device mac address to prevent change of bridge's mac Qemu tap device is created with random mac address and then add to bridge. Due to linux kernel handlig, bridge change its mac address to tap mac in case tap m ac is lower than bridge one. This can lead to short network breakage for dom0 a nd guests. This patch set tap device mac adress to FE:FF:FF:FF:FF:FF to ensure tap device mac is always higher then bridge one. (In xen-unstable this is handled by the hotplug scripts, not qemu-ifup, so the change there is to xen-unstable.hg.) Signed-off-by: Miroslav Rezanina Cc: Ian Campbell Signed-off-by: Ian Jackson --- diff --git a/i386-dm/qemu-ifup-Linux b/i386-dm/qemu-ifup-Linux index bcbee92d..c706a10f 100644 --- a/i386-dm/qemu-ifup-Linux +++ b/i386-dm/qemu-ifup-Linux @@ -33,5 +33,8 @@ then fi fi +# We have to change mac address of tap device to not change bridge mac +ip link set $1 addr fe:ff:ff:ff:ff:ff + ifconfig $1 0.0.0.0 up brctl addif $bridge $1 || true