Qemu: bridging on FreeBSD 7.0-STABLE
Peter Ulrich Kruppa
ulrich at pukruppa.net
Sat Mar 8 06:24:56 UTC 2008
Hi,
I am afraid I need some help to set up networking for
qemu-0.9.1 on FreeBSD 7.0-STABLE amd64 .
The only hint for FreeBSD 7.0 I found was
http://people.freebsd.org/~maho/qemu/qemu.html
It seems I don't need to kldload bridge, and don't need to set
any sysctl variables anymore (right?).
I just did (all as root)
# ifconfig tap create
# ifconfig bridge create
# ifconfig bridge0 addm tap0 addm nfe0 up
and get
# ifconfig -a
[...]
tap0: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST>
metric 0 mtu 1500
ether 00:bd:63:44:71:00
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>
metric 0 mtu 1500
ether 9e:2e:9a:d5:cf:09
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay
15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: nfe0
flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
member: tap0
flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
As /etc/qemu-ifup (Permissions 755) I use
#!bin/sh
ifconfig ${1} 0.0.0.0
Then I try to
# qemu Win2k.img -net nic -net tap
/etc/qemu-ifup: could not launch network script
Could not initialize device 'tap'
Next thing I tried was
# qemu Win2k.img -net nic -net tap,fd=0
Now qemu will start (and a lot of strange symbols are running
across my terminal) but I can't ping anything.
>From Qemu Monitor I get:
(qemu) info network
vlan0 devices:
tap: fd=0
ne2000 pci macaddr=52:54:00:12:34:56
Big thanks for your help,
Uli.
-------------------------------------
Peter Ulrich Kruppa
Wuppertal
Germany
More information about the freebsd-emulation
mailing list