Page 1 of 1

Virtualbox on Linux - Really no networking with wlan?

Posted: 14. Sep 2008, 20:23
by j0natz
Hi,

I'm still trying to setup networking on my Linux machine.

It's running Ubuntu 8.0.4. I have 3 kinds of available connections to choose from.

When I'm at home, I'd prefer wlan as I have no cable's in my room. Router is distributing IP's with dhcp. It's a 255.255.255.0 net.

When I'm at work, the machine is docked to a docking station. There I got a 100 mbit connection. There we also dhcp, but its 255.255.0.0.

Also when I got no other connection available I want to use my 3g pcmcia card. It's a pptp connection...

I'm using a Windows as guest OS. I need so because there are several applications I have to use which are not working with wine :(

Can't we just create some virtual device like anyconnection0 and use this for briding?

Sorry I'm not really good in networking so I just want to ask...

Thanks

Jonas

Posted: 14. Sep 2008, 22:52
by Sasquatch
You can use NAT for the default access to the internet. If you want to do more, please read the Forum Posting Guide and provide some more information.

Posted: 15. Sep 2008, 08:55
by teddy
You can create a tap device, which is bridging.

I uses this script

sudo tunctl -t tap1 -u [username]
sudo tunctl -t tap2 -u [username]
sudo brctl addbr br0
sudo ifconfig eth0 0.0.0.0 promisc
sudo brctl addif br0 eth0
sudo dhclient br0
sudo brctl addif br0 tap1
sudo brctl addif br0 tap2
sudo ifconfig tap1 up
sudo ifconfig tap2 up
sudo chmod 0666 /dev/net/tun

this script creates two tap devices, which is a virtual device on the network. It
gets its own ip from dhcp.

Posted: 15. Sep 2008, 20:44
by Sasquatch
Teddy, a bridge will not work with wireless interfaces as described in the VirtualBox FAQ.