# cat add-br.sh; echo "-----------"; cat del-br.sh
#!/bin/bash
if [ -z $2 ]; then
interface=$(VBoxTunctl -b -u root)
else
VBoxTunctl -t $2 -u root
interface=$2
fi
# If for some reason the interface could not be created, return 1 to
# tell this to VirtualBox.
if [ -z "$interface" ]; then
exit 1
fi
# Write the name of the interface to the standard output.
echo $interface# Bring up the interface.
/sbin/ifconfig $interface up
# And add it to the bridge.
/usr/sbin/brctl addif br0 $interface
-----------
#!/bin/bash
# Remove the interface from the bridge. The second script parameter is
# the interface name.
/usr/sbin/brctl delif br0 $2
# And use VBoxTunctl to remove the interface.
VBoxTunctl -d $2
------
скрипты почти 1-1 из pdf с документацией - работает
PS. врочем что vbox что vmware не могут делать бридж с некоторыми типами wifi.
но это скорее фича - чем бага