Page 1 of 1

How to... have internet access AND have an internal network?

Posted: 2. Oct 2015, 08:03
by sigiswald
I have a virtual Windows server 2008R2, named SRV1. In the virtual box settings of the machine i set network adapter to 'internal' network and set the network adapter to fixed IP: IP=192.168.1.1, subnetmask=255.255.255.0, def. gateway=192.168.1.254, dns=192.168.1.1. This is necessary because later I want other virtual clients and other virtual servers to communicate with my first server.
I also want my SRV1 server to access the internet, so in the settings of the Virtual box machine I add another adapter which I set to 'NAT'.
Unfortunately I can't access the internet. Once I disable the 'internal' network adapter, I have internet access, but it seems I can not have both.
How to setup an internal network 192.168.1.0/24 on server SRV1, so I can add other clients and servers in the same range AND at the same time have internet access on server SRV1?

Re: How to... have internet access AND have an internal netw

Posted: 2. Oct 2015, 08:55
by BillG
The server should not have a default gateway configured on the internal network. It is itself the default gateway for your internal network. Leave this default gateway blank. The default gateway of this machine will be out to the Internet on the other interface. If you want the internal network to access the Internet through this machine you will need to configure RRAS as a NAT router.

This is basic Windows networking and really has nothing to do with VirtualBox.