Connecting GNS3 to Real Networks

One of the interesting things about GNS3 is that you can connect your topology to the real world. For some of your CCNA and CCNP studies you may need to run an actual Web browser or Cisco’s Security Device Manager (SDM) among others. Just connect your topology to your real PC. You could even connect to virtual machines running on your computer inside VMware or Virtual PC. I’ve even set up two copies of Windows XP Professional running inside VMware virtual machines. Then, I ran Cisco soft IP Phones that could talk to each other. You could connect your virtual network to a real network as well. Connecting a virtual topology running within GNS3 to real devices is very exciting, but again, your throughput is going to be limited compared to using real equipment for the entire topology. It only makes sense to use GNS3 in a lab environment and for learning purposes.

Drag a Cloud into your workspace. Right-click the Cloud and choose Configure. Click on C1 under Clouds, but choose the NIO Ethernet tab. Administrator rights are required (root account under Linux).

For Windows users, click on the box directly beneath Generic Ethernet NIO, and choose the network adapter you wish to use. For Linux users, click on the drop-down box to choose your network adapter (either your real adapter or a loopback adapter). Click the Add button and OK. You will need to configure the IP settings for your computer’s adapter, and then use the Add a link toolbar button to create your connection.

You may use your regular network adapter, but I usually create an MS Loopback adapter to connect to. In Windows, use the Add Hardware wizard in Control Panel. Choose “Yes, I have already connected the hardware.” On the next screen, choose Add a new hardware device at the end of the list and click Next. Choose to “Install the hardware manually…” and click Next. Choose Network Adapters in the list and click Next. Choose Microsoft as the manufacturer and then Microsoft Loopback Adapter as the network adapter. Finish the wizard. Then right-click My Network Places and choose Properties. You may wish to rename the new Local Area Connection as MS Loopback Adapter. Also, assign the proper IP settings to the adapter in order to connect to your topology. Linux has a built-in loopback adapter already installed.

Now start your router and assign an IP address to the interface that is connected to the Cloud. You should be able to ping from the router to your PC (loopback interface) and the other way around. Don’t forget to deactivate any firewall that could block pings on your computer.

What next?

You may also like these posts

Leave a comment

If you have a question, update, or comment about the article, please leave a comment. We try and respond to every comment, though it may take a few days, so please check back soon.

1 comment to VirtualBox

  • Anonymous

    This guide doesn’t explain what it is trying to achieve. It tells you what Virtualbox is but not what the end result is. It also doesn’t explain what the topology is (is it Virtualbox emulating two PCs on one physical PC?) or how you go about connecting to your host and editing your GNS3 preferences. I also don’t understand what The Linux Microcore is and how it relates to this example. The ‘linked clones’ seem to be over-complicating things and I can’t tell how you go about emulating routers, the prime purpose of this software. A good guide with some fairly fundamental mistakes.