how share internet connection among vms

Discussions related to using VirtualBox on Linux hosts.
Post Reply
luiz
Posts: 2
Joined: 11. Jul 2009, 01:12
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 9.04

how share internet connection among vms

Post by luiz »

Please I need some help
for my final test at the University i purpose to create a linux server, with many services as DHCP, PROXY, SSH and others, then I've been trying da make a small network with 5 systems, 4 linux and 1 windows, but i need to share internet connection through them and I don't get.
I set up 1 linux with a NAT interface and 2 internal network, called "RedeInterna1" and "RedeInterna2", then i set up iptable sharing connection. The system get ping with which other but I don't get internet connection.
If someone can helpe me.
I"m sorry for my bad english, because I'm brazilian and I don't speak english very well
thank you
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: how share internet connection among vms

Post by vbox4me2 »

Internal network can't access internet from the Host, see the Manual what internal network and bridge means.
luiz
Posts: 2
Joined: 11. Jul 2009, 01:12
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 9.04

Re: how share internet connection among vms

Post by luiz »

I'm not using internal network to access internet, there is a VM that access internet using NAT system, the others VMs I'm trying to access internet trough that first VM, using NAT.
The VM, that access internet, is like a server, sharing connection with others, those VMs are using a internal network to access this server.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: how share internet connection among vms

Post by vbox4me2 »

NAT only connects between Host and its Guest and the internet the Host has, other Guests can not connect to Guests via NAT, you need a combination of internal networking and NAT using 2 lan Guest connections on the sharing VM.
Post Reply