problem networking two virtual machine

Discussions related to using VirtualBox on Windows hosts.
Post Reply
miatech
Posts: 22
Joined: 28. Jul 2009, 12:07
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Fedora 11, Ubuntu 9.04, Vista, Windows 2008, Windows 7

problem networking two virtual machine

Post by miatech »

guys, I'm trying to test a firewall which I already installed and assigned two interface: interface 1: NAT, interface 2: host only. I created a network in the "preference" for host only: 172.16.10.0/24. Then I created a second interface for the firewall and selected hostonly. On another virtual box I put the interface in hostonly so I can manage the firewall through http, but I'm not able to get connection between the two host(firewall and machine) I'm getting an ip in the hostonly network from my windows virtual machine, but I've trying assigning and switching the interfaces on the setup of firewall, but I still get no communication. How could I identify which interface is which in the firewall in order to assign an ip to the interface facing the hostonly network?

thanks
Thanks
==========
blog:pctechtips.org
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: problem networking two virtual machine

Post by Sasquatch »

NAT gives you 10.0.2.15 as IP. If the point is creating a firewall only for the second VM, you can use Internal Networking too, which will keep the Host out of the network part and you manage the network yourself (static or manual set up DHCP). Host-Only does not provide a gateway with it's DHCP server settings, because it's not needed.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
miatech
Posts: 22
Joined: 28. Jul 2009, 12:07
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Fedora 11, Ubuntu 9.04, Vista, Windows 2008, Windows 7

Re: problem networking two virtual machine

Post by miatech »

NAT gives you 10.0.2.15 as IP. If the point is creating a firewall only for the second VM, you can use Internal Networking too, which will keep the Host out of the network part and you manage the network yourself (static or manual set up DHCP). Host-Only does not provide a gateway with it's DHCP server settings, because it's not needed.
No, I'm not creating a firewall for the second vm, I'm just testing firewall before deploying or deciding which one I'm going to use. the point of the second vm is to manage through web the internal interface of the firewall and to make sure the firewall is actually routing internet request from internal network "hostonly," which doesn't have internet connection to NAT, which has internet connection. So the point is to test a firewall in as a real scenario as possible

NAT ----->[FIREWALL]------>HOSTONLY----[VM]

Thanks
Thanks
==========
blog:pctechtips.org
Post Reply