Re: auto-addm new tap device to existing bridge ...

2008-11-23 Thread Mario Lobo
On Sunday 23 November 2008 02:22:02 Marc G. Fournier wrote:
 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?

 thanks ...

in /etc/rc.conf, add:

autobridge_interfaces=bridge0   -- whatever you called your bridge
autobridge_bridge0=tap0 tap1 [tapn..]
cloned_interfaces=bridge0

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: auto-addm new tap device to existing bridge ...

2008-11-23 Thread Mario Lobo
On Sunday 23 November 2008 02:22:02 Marc G. Fournier wrote:
 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?

 thanks ...

in /etc/rc.conf, add:

autobridge_interfaces=bridge0   -- whatever you called your bridge
autobridge_bridge0=tap0 tap1 [tapn..]
cloned_interfaces=bridge0

forgot to add this:

Create a qemu-ifup script like this:

#!/usr/local/bin/bash
# qemu-ifup
/sbin/ifconfig $1 up
TEST=`ifconfig -a | grep member | grep $1`
if [ $TEST ==  ]; then
   /sbin/ifconfig bridge0 addm $1
fi

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


auto-addm new tap device to existing bridge ...

2008-11-22 Thread Marc G. Fournier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


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?

thanks ...

- -- 
Marc G. FournierHub.Org Hosting Solutions S.A. (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkko6HoACgkQ4QvfyHIvDvNBngCg7ZiDOaRCDGUuE+hbaNCsjMd1
WV8An1os19WO7nQJeBvUIot/rtxYI0/M
=no2/
-END PGP SIGNATURE-

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]