Page 1 of 1

How does my virtual network connects with lan and internet ?

Posted: 12. Sep 2009, 21:26
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 !

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

Posted: 12. Sep 2009, 21:31
by Perryg
Select Bridged mode in the network settings of the Guest.

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

Posted: 13. Sep 2009, 23:21
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 !!!

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

Posted: 13. Sep 2009, 23:28
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 !

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

Posted: 13. Sep 2009, 23:34
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 ?

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

Posted: 14. Sep 2009, 13:32
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.