Virtualbox on Linux - Really no networking with wlan?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
j0natz
Posts: 4
Joined: 12. Sep 2008, 15:53

Virtualbox on Linux - Really no networking with wlan?

Post 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
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
teddy
Posts: 10
Joined: 12. Mar 2008, 12:09

Post 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.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Teddy, a bridge will not work with wireless interfaces as described in the VirtualBox FAQ.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply