How does my virtual network connects with lan and internet ?

Discussions about using Windows guests in VirtualBox.
Post Reply
clonevdi
Posts: 12
Joined: 12. Sep 2009, 21:05
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: nothing

How does my virtual network connects with lan and internet ?

Post by clonevdi »

Hi,

I'm using a rooter and a PC bound to internet adsl.
It is not complicated to understand how my real PC connects to LAN and Internet.
When I plug a 2nd real COMP, this 2nd COMP is bound to Internet through LAN OR ROOTER.
Easy to understand.

But how does it work with vbox COMPs ?
When I create a virtual COMP, it is nor on my LAN, nor my Rooter... so how does it finds Internet ???
Could someone explain me with clear words the main concept of virtual COMPS networking between my host real PC and LAN and Internet ?

IP infos show no links with my real COMP or IPs... help me to understand please.

Some details here :

Ethernet Hamachi card :
DHCP on.
IP : 5.x.x.x
Mask : 255.x.x.x
Server DHCP : 5.0.x.x

Ethernet LAN connection :
DHCP on.
IP : 10.x.x.x
Mask : 255.x.x.x
Passerelle (bridge?) : 10.x.x.x (the same)
Server DHCP : 10.x.x.x (the same)
DNS Server : 212.x.x.x

Thx !
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How does my virtual network connects with lan and internet ?

Post by Perryg »

Select Bridged mode in the network settings of the Guest.
clonevdi
Posts: 12
Joined: 12. Sep 2009, 21:05
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: nothing

Re: How does my virtual network connects with lan and internet ?

Post by clonevdi »

The settings of my VirtualBox Machine are :
Network : Card 1 :
Activated.
Type : PCnet
Mode : NAT

Do you mean that I should replace NAT by BRIDGE ?
What effect would it have ? what does it change ?

Thx !!!
clonevdi
Posts: 12
Joined: 12. Sep 2009, 21:05
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: nothing

Re: How does my virtual network connects with lan and internet ?

Post by clonevdi »

I've found these infos for VMWare : (French)
http://static.commentcamarche.net/www.c ... M6i5J2.png

I understand :
Access to LAN "IP of the LAN"
HOST only NO NO
NAT YES NO
Bridge YES YES

Is it the same with VirtualBox ?
I do not clearly understand the meaning of IP of the LAN in the scheme of the link...
If anyone has the patience to explain me, it would be useful for me.

Virtualbox has
Host only, NAT, Bridge AND INNER Network...
What is the difference between inner network and Host only ?
I think my question are very basic, so if anyone know a link to a tutorial or documentation, I would be interested instead of fulling this usefull forum... (sorry)

But it is as well useful to have it in other words. Thanks for any help !
I will try some examples tomorrow morning !
clonevdi
Posts: 12
Joined: 12. Sep 2009, 21:05
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: nothing

Re: How does my virtual network connects with lan and internet ?

Post by clonevdi »

Ok,

Last day, my Virt-COMP was infected.
I was in admiration to see that it had absolutely no effect on my host computer. So I backed up.

I was in a NAT configuration.
I would be very interested to have advices about security risks for the HOST bound to different network configurations of the Virtual COMP.

For example, if my virtual COMP is infected by a worm or filthy virus, in NAT, my HOST is 90% safe, isn't it ?
But what about a BRIDGE configuration ? My lan is completely accessible from my LAN virtual/real, so my hosts are more exposed to dangers, aren't they ?

Thank you for any comments !!!
WOuld you like me to give my next observations ?
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

Re: How does my virtual network connects with lan and internet ?

Post by Sasquatch »

Security answers can be found on the forum, they are already asked and discussed here. Please see the Forum Posting Guide for some help in finding information on these forums.

Network documentation is in the manual. You can read it from VB itself (Help > Contents), or through the PDF link in my signature. A summary:
NAT: You get the same kind of network situation as with your router, external network has a different range as the internal network and traffic going outside is routed through VB to the outside.
Bridged: Your VM will be like a physical machine on your network, you only need to select the NIC that your system uses to connect to the network.
Host-Only: Isolated network for your Host and VMs only. No other system can access it, and can be accessed.
Internal: Basically the same as Host-Only, with the only difference is that the Host is not a part of this, and no DHCP is available from VB directly. Network is done manually.
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