2006-07-25

tap(4) and Qemu

NetBSD 3.0 finally has support for the tap(4) virtual userland ethernet interface. But, qemu doesn't quite know how to use it. Fortunately there is a way: (assumes a working connection on fxp0) (as root, presetup in boot is possible, and changing the owner/mode of /dev/tap0 would allow a mortal to use it)

ifconfig bridge0 create
ifconfig tap0 create
brconfig bridge0 add fxp0
brconfig bridge0 add tap0
ifconfig bridge0 up
ifconfig tap0 up
qemu -hda foobar -cdrom bazqux -boot c -net nic -net tap,fd=3 3<>/dev/tap0

Blog/2006-07-25 (last edited 2006-07-25 20:05:45 by JonathanKollasch)