Before I uninstall VMware Workstation, I need to make sure VirtualBox can replace it. I need to setup a VM as a layer 2 firewall, with another VM behind that firewall with internet access. With VMware I created a firewall with eth0 bridged (no IP), eth1 host-only (no IP), and those two NICs were bridged together in Linux, then I had eth2 bridged (192.168.1.101) for managing the firewall. Then the VM behind the firewall had one host-only NIC (192.168.1.102). That's all I had to do to get things working.
Reading the VirtualBox manual, I can't have the problems NAT creates. Is Host Interface Networking the same as VMware's bridged mode, and Internal Networking the same as VMware's host-only mode? Can I use VirtualBox to create a similar setup like I had with VMware, and if so how?
Switching from VMware to VirtualBox-- Will this work?
-
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
HIF in VB is like VMWare's Bridged mode. You can talk to the interface you select directly. Internal Networking is for VMs only. If you select that, your VMs will be attached to a virtual switch/hub that your Host does not know about. If you want to have Guest <> Host connection, you can either use your physical NIC and set an IP outside the internet scope, or install the MS loopback adapter.
If you can't get it to work like you had it in VMWare, a diagram would help to give you more information on the setup you need.
If you can't get it to work like you had it in VMWare, a diagram would help to give you more information on the setup you need.
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.
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.
Thanks for the reply Sasquatch! Here is a diagram of what I had in VMware.

192.168.1.103 could communicate with the Internet and vice versa. All traffic relating to 192.168.1.103 had to go through the bridge (layer 2) firewall. 192.168.1.103 was running Ubuntu Server and the firewall was running Centos with eth0 and eth1 bridged into a new interface called br0, so it was acting as a bridge/firewall.

192.168.1.103 could communicate with the Internet and vice versa. All traffic relating to 192.168.1.103 had to go through the bridge (layer 2) firewall. 192.168.1.103 was running Ubuntu Server and the firewall was running Centos with eth0 and eth1 bridged into a new interface called br0, so it was acting as a bridge/firewall.
-
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
Ah, use HIF on the Guest, set it to use the NIC the Host uses for internet. Bridge it in the Guest with it's internal network that has the other Guest attached. You should be done now with the 'physical' network plan. All that's left, is the configuration.
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.
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.
Okay, just to make sure I understand this right... I replace the firewall's eth0 that's in "bridged" mode with HIF in VirtualBox. Then the firewall's eth1 interface that's in Host-only mode, I should instead use Internal Networking for that interface, as well as Internal Networking for 192.168.1.103's eth0 interface? If so this could be easier than I had thought.
-
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
Yes, this is correct. It should work this way.
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.
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.