全部博文(1159)
分类: 网络与安全
2016-01-20 14:50:20
We were discussing about physical networking with GNS3. GNS3 is the wonderful software for virtual networking computing. Last article, we had a discussion on virtual LAN network by . In this tutorial I would like to share how to configure GNS3 to connect VirtualBox virtual machines. As we know GNS3, the best virtual network software, supports oracle VirtualBox, hence it is easy to work around VirtualBox virtual machines (VMs) as comparing to vmWare VMs. Even though we could Interface GNS3 to vmWare with some tweaks that I will cover later. By interfacing GNS3 to connect VirtualBox you may realize the real network scenarios as a practical feel.
Now, let’s see the steps for connect GNS3 to VirtualBox Virtual Machines.
Please make sure that you have the knowledge of the following and have equipped with specified tools and hardware.
Preliminary Knowledge
Tools required
My Hardware:
I recommend these hardware configurations to learn virtual networking concepts because virtual machine networking requires at least 2 VMs to be up and run. Anyway you may also proceed even with 4GB RAM.
No you are ready to go….!
VMs acts as virtual network client for GNS3 network topology.The step
by step procedure to connect GNS3 to VirtualBox as follows.
Step 1: Setting up of VMs
Make sure you installed VirtualBox VMs, for me I have 4 VMs installed. Among these I will connect Win7_1 and Win7_2 to GNS3.
Step 2:
Run GNS3, Edit → Preferences → VirtualBox
In the General Settings tab click ‘Test Settings’ button, you will see a message ‘VBoxwrapper and VirtualBox API have successfully started’.
Step 3:
Select ‘VirtualBox Guest’ tab, you may find all VMs in the VM List. Select suitable one after setting an Identifier Name. Set required VMs and the click Save button.
Step 4:
Browse VirtualBox guest to the work space.
If you have more than one VM, you will be asked to select one among those.
Step 5: GNS3 Network scenario with VirtualBox
Build a simple scenario with VirtualBox guest. For me, I done with two VMs and one router.
Step 6: Run Simulation
Now let’s run our Network. Before running the simulation open VirtualBox side by side with GNS3. [Only open VirtualBox, do not run any VMs]. Then click Start button to begin simulation.
After starting the simulation the we can see all of the VMs that you added in the example scenario will run automatically.
Step 7: Set Static IP for VMs
Once the VMs are started change the IP of virtual machines. In my example I assigned 10.0.0.2/8 and 20.0.0.2/8 to the VMs
Step 8: Cisco Router Configuration for VirtualBox Interface.
Now configure the router and assign IP address to each port. Configuration commands are followed.
Step 9: Ping test and verification
Try to ping from the router to the VMs and vice versa.
[Pinging from router CLI to VMs]
Sometimes you can’t ping between VirtualBox VM and router. This is because your firewall blocking ICMP traffic. To get rid of from the issue disable firewall in the VirtualBox VMs or allow the networks 10.0.0./8 and 20.0.0.0/8. Actually disabling firewall is not a proper way, but times being do it. I will be sharing detailed troubleshooting guide for Windows firewall and other third party antivirus firewall.
Keep visiting SPT for more computer networking tutorials and how to guides. Don’t forget to like our Facebook page.