Building a networking inside of Virtualbox

silentbyte

Beta member
Messages
2
Location
USA
First let me say I am a student (not a kid) so I don't know as much as everyone else. So please be nice and explain things out. I am trying to put together a lab in virtualbox. I have 2 OSs (Windows 7 and Linux Mint) and Server 2012. I am trying to making them all communicate to each other and be able to reach the outside world (the web). I am trying to find a virtual router but I am not sure which one would be best but my professor says I need a virtual switch instead of a router to make it all work. So what I am asking is for advice and someone to point me in the right direction.

This lab is for pen. testing and other school projects that will be coming down the pike. I don't have the money make a real lab so virtual will have to do.
 
I believe that virual box is able to handle the switching functionality. Try following along in this video: https://www.youtube.com/watch?v=bAxpBChGxas. He does what you are trying to do. For each VM that will be on the same local network, he enables a second network adapter in the VM's settings, and attaches it to "internal network" and gives this network a name. Do the same for each VM and use the same name for the adapter on each. Think of the name as representing a switch that these machines plug in to.

Another option is to just attach the VMs to your physical network and let your real router assign IP addresses to them. I've done it that way in the past.

By the way, if you have Windows 8.1 or Windows 10, they now include Hyper-V for free. Hyper-V has a few more options for creating virtual switches. I used to use virtual box but I've switched to hyper-v as I found it to be easier and more reliable.
 
Back
Top Bottom