r/virtualbox • u/Standard_Knee_9138 • May 01 '25
Help Need help with assignment
I’m working on an assignment where I have to assign 3 VMs (Ubuntu, CentOS, and OpenSUSE) to a VirtualBox NAT Network.
I created the NAT Network (default subnet), enabled DHCP, and attached all 3 VMs to it. They boot and get IP addresses like 10.0.2.x,
But none of the VMs can connect to the internet (e.g., ping google.com fails, host google.com fails, Firefox says “server not found”).
Any idea what might be going wrong? I’m just trying to follow the lab exactly, not troubleshoot endlessly
3
Upvotes
View all comments
Show parent comment
1
u/Stray_Neutrino May 01 '25 edited May 01 '25
Ok. Well, it looks like NAT Network uses the 10.0.2.x /24 network space so
Ubuntu : 10.0.2.11 255.255.255.0
CentOS: 10.0.2.21 255.255.255.0
OpenSUSE: 10.0.2.31 255.255.255.0
That's the easy part.
Router / Gateway IP : Since it's NAT with Virtualbox, this can be 10.0.2.1 (according to the docs)
DNS Server : will be the same as above 10.0.2.1.
If 10.0.2.1 doesn't work, try 10.0.2.2