InfoSec.run
• 3 min read •

Add Your Physical PC to a GNS3 Lab (Windows)

Also available in: Read in Español

LAB GNS3

In this article, I will show how to connect your physical computer to the virtual devices in your GNS3 lab.

But why would you want to do this? Well, many times you need to access the graphical interface of the virtual devices in your lab, such as firewalls or servers, since it would be very complicated to configure the devices solely via console.

It is also a measure that lets you save resources, since you do not need to add a virtual PC to your lab to run tests—you can do this with your physical PC.

How to Add Your Physical PC to GNS3?

First, you need to open GNS3 and create a new project or open an existing one.

Now, on the toolbar, click “Edit”, then “Preferences”.

Preferences

Now click “VMware” and then click the “Advanced Local Settings” tab (I am assuming you are using VMware for virtualization).

VMware

We will see the “Managed VMnet Interfaces” setting. What is this? Well, VMware allows the creation of virtual network interfaces and installs them on your physical computer. If you leave the options as shown and click “Configure”, the wizard will create two additional virtual NICs on your computer. If later you need more virtual interfaces, you can increase the range and click “Configure” again to add them, but for the moment we only need one.

Now let’s go to Windows Network Connections settings, where we will find 2 additional network interfaces named “VMware Network Adapter VMnet2 and VMnet3”.

Network Connections

Open the IPv4 configuration of VMnet 2 and enter a network for interconnecting with your virtual devices. In this case, I have chosen the 192.168.99.0/24 network, where host .2 will be my PC, leaving the rest of the IPs free to be used on my virtual devices.

IPv4 Configuration

Now go back to GNS3 and add a “Cloud” node to your topology. If a dialog box appears asking you to choose a server, choose your PC’s name.

Cloud

Next, right-click the newly placed Cloud node and click “Configure”.

Configure

Next, we are going to delete all existing interfaces from the node. Select one and click “Delete”. Do the same with the rest.

Cloud Interfaces

Once all interfaces are deleted, check the “Show special Ethernet interfaces” option.

Special Interfaces

With the option enabled, in the top dropdown select the VMnet2 interface you configured with an IP and click “Add”.

Add Interface

Now all that remains is to connect your devices to the Cloud node so you can access them from your physical PC. In my case, I am going to connect a port on a FortiGate firewall to which I have assigned the IP 192.168.99.1 to the VMnet2 port on the Cloud node.

Connecting devices to the Cloud node

Done! Now I can open a browser on my physical PC and access IP 192.168.99.1 to configure my FortiGate firewall easily.

Accessing the device

Now that you can add your physical computer to the GNS3 topology, you can modify the topology according to your needs and connect to multiple virtual devices, managing them easily via a graphical interface or running connectivity tests from your physical PC.

Add Your Physical PC to a GNS3 Lab (Windows)
Author Jaime Moscoso
Published Nov 19, 2020

Comments