This is my setup in virtualbox.
A DHCP Scope of range 112.123.1.100 to 112.123.3.188, Length = 16, Router IP is 112.123.2.2 (this also is the IP of the server the DHCP is configured on).
After this I set my IP of the windows server 2012 manually to IP: 112.123.2.2. Subnet: 255.255.0.0 Gateway = 10.0.2.2 DNS1: 10.0.2.2 DNS2: 8.8.8.8
This virtualbox VM that the server is running on is on an internal NAT network type. To access the internet I configured a second adapter as NAT type as per this guide: https://www.nakivo.com/blog/virtualbox-network-setting-guide/
The server can Ping google.com so it has internet access.
The client:
I configure the VM as an internal NAT type. Now I set my IP address to the following: IP: 112.123.3.95 Subnet: 255.255.0.0 Gateway: 112.123.2.2
DNS1: 112.123.2.2 DNS2: 8.8.8.8
After that in the VM in windows 10 Pro I join the servers domain (Workgroup).
When I ping the server from the client I get a response back in CMD but when I ping 8.8.8.8 I get a "Request timed-out" message in CMD.
Does anyone know what I am doing wrong? Again, all of this is happening inside VM's off virtualBox.
EDIT: Forgot to mention that the client can indeed ping the server but the server can't ping the client for some reason, but the client was able to join the servers workgroup/domain. so I don't know what is happening there.