Internet from virtual machine to virtual machine using NAT

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Carioca
Posts: 2
Joined: 10. Sep 2012, 21:34

Internet from virtual machine to virtual machine using NAT

Post by Carioca »

I would like to share a virtual machine with windows xp with linux using another nat. Is this possible?. What would be the way to do it?
nat.png
nat.png (17.57 KiB) Viewed 570 times
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Internet from virtual machine to virtual machine using N

Post by BillG »

Yes an no. You can certainly share the Internet connection, but they can't be in the same IP subnet if you use NAT.

You would need two NICs in the Linux vm and set up NAT for the XP box in the Linux machine. It really doesn't have much to do with VirtualBox, apart from using the VirtualBox manager to set the networking config of the guests.

Internet
|
10.0.0.3
Linux NAT
192.168.1.1 internal network
|
192.168.1.3 internal network
XP
Bill
Carioca
Posts: 2
Joined: 10. Sep 2012, 21:34

Re: Internet from virtual machine to virtual machine using N

Post by Carioca »

Thanks for your help .. was what I needed.
Post Reply