Hi, I`m running XP on qemu, using nat, but I`ve used bridge too.
The command is:
sudo /usr/local/bin/qemu -m 756 -net nic -net
tap,ifname=tun0,script=/etc/qemu-XP_ifup
/home/eu/virtuals/windowsXP.img
/etc/qemu-XP_ifup:
-------------------------
#! /bin/sh
_ETHER=tun0
_BRIDGE=bridge0
# Let the environment over-ride this
[ "$BRIDGE" ] || BRIDGE=${_BRIDGE}
[ "$ETHER" ] || ETHER=${_ETHER}
if test `id -u` -ne 0; then
SUDO=sudo
fi
echo -n " {$1 ($BRIDGE <-> $ETHER)"
# Set the tun device into layer2 mode
$SUDO /sbin/ifconfig $1 link0 up
# Set up our bridge
$SUDO /sbin/ifconfig $1 group tun > /dev/null 2>&1
$SUDO /sbin/ifconfig $BRIDGE create > /dev/null 2>&1 && {
$SUDO brconfig $BRIDGE rule block in on $ETHER dst 33:33:0:0:0:12
$SUDO brconfig $BRIDGE rule block in on $ETHER dst 01:00:5e:00:00:12
}
/sbin/ifconfig bridge | sed -n '/^bridge[0-9]*/{s/:.*$//;p;}' | while read brif
do
$SUDO brconfig $brif del $ETHER > /dev/null 2>&1
$SUDO brconfig $brif del $1 > /dev/null 2>&1
done
$SUDO brconfig $BRIDGE add $ETHER up
$SUDO brconfig $BRIDGE add $1 up || true
echo "}"
----------------------------------------------------
It`s working nicelly with kqemu, I`m running snapshot 02/07/08 i386:
------
OpenBSD kanjiru.nowhere 4.4 GENERIC.MP#783 i386
------
Fabio