Damir Dezeljin <[EMAIL PROTECTED]> wrote: > I would like to set tap0 in promisc mode and add it to br0 bridge that is > set up on boot from /etc/network/interfaces. I would like to avoid adding > my own program for tap0 registration. Is there anything similar already > implemented in 'standard' Debian boot sequence - e.g. in interfaces file?
I imagine that you could add some "up" entries to your definition of br0. If you've got "tunctl" then that will allow you to create tapN, and you can do stuff with "ip" or "ifconfig" to set promiscuous mode on the resulting interface. This *untested* snippet should bring up a bridge that connects eth0 and tap0 to the host. It will get unhappy with if either eth0 and tap0 are already configured, so you'll probably be better off with a script that does some better error checking. | iface br0 inet static | address 192.168.0.1 | netmask 255.255.255.0 | gateway 192.168.0.254 | pre-up brctl addbr br0 | pre-up brctl setfd br0 0 | pre-up brctl sethello br0 0 | pre-up brctl stp br0 off | pre-up ifconfig eth0 0.0.0.0 promisc up | pre-up tunctl -u uml-net tap0 | pre-up ifconfig tap0 0.0.0.0 promisc up | up brctl addif br0 tap0 | up brctl addif br0 eth0 | down btctl delif br0 eth0 | down btctl delif br0 tap0 | post-down ifconfig tap0 down | post-down tunctl -d tap0 | post-down ifconfig eth0 down | post-down btctl delbr br0 Chris -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]