I'm trying to understand the bridged mode of VirtualBox. So far I think it works that way:
* I declare that my net card in the guest will use interface wlan0 of my host; so eth0 in the guest is linked to wlan0 on the host, that is every packet that is sent to/received from eth0 on the guest goes through/comes from wlan0 on the host, right?
* If my guest has a fixed IP (192.168.25.5), then I must in the host redirect all traffic to/from 192.168.25.5 to wlan0, right?
I tried it and I can't ping the guest. I tried to set up the kernel routing table so that traffic to/from 192.168.25.* goes to wlan, but it doesn't work:
Code: Select all
# route add 192.168.25.0 wlan0
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.25.0 * 255.255.255.255 UH 0 0 0 wlan0Code: Select all
# route add -net 192.168.25.0 netmask 255.255.255.0 wlan0
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
192.168.25.0 * 255.255.255.0 U 0 0 0 wlan0
Thanks for any help.