auto-addm new tap device to existing bridge ...
wojtek at wojtek.tensor.gdynia.pl
Sun Nov 23 02:56:31 PST 2008
> Is this possible?
> I'm using qemu, and when I start it up, it auto-create a tap device if one
> isn't available ... but, having that tap device not attached to the bridge that
> does exist doesn't help much ... if there some flag I can set, or sysctl value,
> that will have the new tap device attach itself to an existing bridge device?
please create bridges and tap's at startup and use qemu option to
explicitly give the tap name that's what i do
cloned_interfaces="tap0 tap1 tap2 bridge0"
/sbin/ifconfig bridge0 addm tap0 addm tap1 addm tap2
and when using qemu
-net nic -net tap,ifname=tap0,script=no (or tap1, tap2)
More information about the freebsd-questions