Nat – In NAT mode VirtualBox DHCP only has one IP to assign

ipnat;virtual-machinesvirtualboxvirtualization

When I set up two machines in VirtualBox via NAT mode each machine gets the same IP from the virtual DHCP server, why is that?? Makes no sense to me. Both have the Gateway 10.0.2.2 which is fine, but they also get the same IP 10.0.2.15.

According to the answers it seems to be correct, well I didn't expect something else.

But then what if I want to create a whole subnet for 4 hosts in a NAT environment?

BTW VMware Workstation does it, it has ONE large NAT for all hosts out of the box. One big advantage over VB

Best Answer

That's correct because in NAT mode every virtual machine stays in a separated network.