Page 1 of 1

how share internet connection among vms

Posted: 11. Jul 2009, 02:03
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

Re: how share internet connection among vms

Posted: 11. Jul 2009, 13:20
by vbox4me2
Internal network can't access internet from the Host, see the Manual what internal network and bridge means.

Re: how share internet connection among vms

Posted: 11. Jul 2009, 17:22
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.

Re: how share internet connection among vms

Posted: 11. Jul 2009, 20:56
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.