ubantu vmware, can not reach ip address

bhomass
bhomass used Ask the Experts™
on
I set up an ubantu virtual machine using VirtualBox. I can ping the internet from this virtual machine. It shows an ip address like 10.0.2.15. Which is different from my LAN subnet (192.168.1.xxx).

I can ping my host machine from the virtual machine, but not the other way around. Can some one point out how to connect to the virtual machine address. Do I need to set up NAT?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
By default, it chooses NAT for VMs you create. You can choose "Bridged networking" that would make the VM use 192.168.1.x subnet. For a more detailed explanation, check the URL below.

https://www.virtualbox.org/manual/ch06.html
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
You have got network interface settings of NAT, Bridged and Host Only.

It looks like you are currently setup in NAT.

Changed to Bridged, and the VM will obtain an IP address from your LAN Subnet.

Author

Commented:
If NAT is the current setting, what is 10.0.2.15 being translated to/from?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
IP Address is assigned by Internal DHCP Server in VBox, NAT to Local LAN

10.0.2.15 -----> 192.168.1.x but one way

unless you use Advanced NAT and create rules to pass traffic in reverse NAT

eg port 22 on 192.168.1.x -----> 10.0.2.15 port 22

you cannot use a ping icmp request through NAT from host to VM

Author

Commented:
wonderful. I remember doing this thing a long time ago. Now it is all coming back. I got it going using bridged setting. Thank you very much!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial