I am writing this article because I have been through a configuration problem while setting up NAT network in VirtualBox.
The problem: Both my machines getting the same IP addresses after selecting NAT as the network for both. I just start using VirtualBox, I used to use VMware.
To solve this problem, follow these steps:
You need to make NAT networks active. To do that go to Preferences -> Adds new NAT network.
Enable this network and Click Ok.
Once this is done, Go to your virtual Machines settings.
Select the NAT network from the Network Option.
In the name dropdown list select NatNetwork, the one you made active before. Select the adapter type, By default,it’s PCnet-FAST III, works fine for me. Now Turn on the machines.
Now, both of your virtual machines will have different IPs.
Problem Solved!