>> ifconfig br0 192.168.1.18 netmask 255.255.255.0 mtu 1500 >> >> and add br0 to route >> >> route add -net 192.168.1.0 netmask 255.255.255.0 dev br0 > > I get lost here, perhaps my brain is a bit slow this morning. Can you > explain where you got 192.168.1.0 from? > > Except for 192.168.1.0 mentioned above, this all looks fine to me, > without actually going through, and doing all of it myself. I'm > thinking something isn't right in your routing table, (I.E. I can't > get 192.168.1.0 out of my head).
Hi The first command ifconfig assigns eth0 its configuration, the second command associates the network device br0 (normally eth0 or eth1) with my local network, without this command I (the host, not the guest) have no communication with the other local hosts... the second route (not shown here) associates the network interface with the default gateway so it is able to go out to internet. The route commands were borrowed from /etc/rc.d/rc.inetd and adapted to my wireless cards, whithout both of them there is no local network nor internet. This is the script I use to setup my wireless cards (works equal with the wired cards just ignoring the iwconfig commands) and the same commands are applied to br0 (WITHOUT iwconfig) ------------------------------------------------------ if [ ! $1 ] then echo "Use: " $0 "<dynamic> <nick> <essid> [key]" echo " " $0 "<x.y.z.w> <nick> <essid> [key]" echo " " $0 "<unload>" exit fi ifconfig $1 down rmmod ipw2200 if [ $1 == unload ] then echo "++++++++++++++++++++++++++" echo "+ Unloading driver +" echo "++++++++++++++++++++++++++" exit fi /sbin/modprobe ipw2200 led=1 iwconfig eth1 mode Managed iwconfig eth1 txpower 20 iwconfig eth1 sens 2 #iwconfig eth1 channel 11 iwconfig eth1 rate auto # SET NICKNAME if [ $2 ] then iwconfig eth1 nickname $2 fi # SET ESSID if [ $3 ] then iwconfig eth1 essid "$3" fi # SET NETWORK KEY if [ $4 ] then iwconfig eth1 key $4 else iwconfig eth1 key off fi if [ $1 != "dynamic" ] then echo "++++++++++++++++++++++++++++++++++++++" echo "+ Setting wireless to fixed IP +" echo "++++++++++++++++++++++++++++++++++++++" ifconfig eth1 down ifconfig eth1 $1 netmask 255.255.255.0 route add -net 192.168.1.0 netmask 255.255.255.0 dev eth1 route add default gw 192.168.1.254 dev eth1 ifconfig eth1 up else echo "++++++++++++++++++++++++++++++++++++++++" echo "+ Setting wireless to dynamic IP +" echo "++++++++++++++++++++++++++++++++++++++++" dhcpcd -t 15 -d eth1 fi ------------------------------------------------------ This is the script I use everyday to setup my wifi, just translated it from eth1 to br0 ... Note that VirtualBox manual says that bridging does not work on most wireless interfaces, but it works in my laptop. With NAT works *everything* including internet except bidirectional communication that requires port forwardind... with Host Interface it works everything except that the guest is unable to reach the gateway 192.168.1.254 (all other ip's are accesible) with any kind of service (ping, http) and in consequence there's no internet. If you think anyway the problem is the wireless, I tried with the wired eth0 connection and it does exactly the same, host interface has no internet. Am really getting crazy :'( Regards _______________________________________________ vbox-users mailing list [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-users
