I have two virtual machines and one is acting as a domain controller. I have both configured to use NAT network adapter and I has set static IP addresses for both servers, like this:
Domain controller
------------------
IP: 192.168.238.100
subnet: 255.255.255.0
Default gateway: 192.168.238.2 (because I am using NAT)
Preferred DNS server 192.168.238.100
IP address of VMware Network Adapter VMnet8 is: 192.168.238.1 so I added this IP address as default gateway: 192.168.238.2
I configured the other server the same way just changing the last number for the IP address and I used ...238.100 as the preferred DNS. I was able to access internet before. Today, I started my vm and I could not connect to internet at all. I can ping both machines by name, e.g: ping dc01 and they respond correctly. I have been trying to solve this since this morning.
I removed the network adapter from the VM and I added it again, but did not work. Tried to remove the defaultgateway in registry but that did not work either.
what am I doing wrong or what I should check?