Easy way to connect GNS3 to the Internet on Windows host

Saifudheen SidheeqGns3, Latest Posts1 Comment

Internet access on GNS3

The gns3 has evolved from just a simulator for Cisco IOS to a multivendor environment.
You can simulate the physical network virtually in gns3 and it works great!

Wouldn’t be cool if we can get the host internet access shared to the gns3 that way the devices in gns3 can access the internet and you can do a lot more with the labs that require internet access.

Of course it is, so let’s get the internet access enabled on the GNS3.

Enabling Internet access in GNS3

Step1. Shutdown the Gns3 client and the Gns3vm.

Step2. Goto the Vmware workstation where you have installed Gns3vm and right click and click on Settings.

gns3vm vwmare workstation settings

Step3. On the Network Adapter check the virtual network adapter you have connected to, in my case, I have linked to VMnet2.

gns3vm vmware workstation Network adapter settings

Step4. On your Windows host right bottom corner, Right-click on your windows network connection icon and click on Open Network & Internet settings.

windows open Network & Ineternet settings

Step5. Click on Wifi or Ethernet depends on where you have connected.

click on the windows network

Step6. Click on Change adapter options.

change adapter settings for the gns3 to get the internet access

Step7. On your Internet-connected adapter, Right-click and click on the sharing tab.
Check the option which says Allow other network users to connect through this computer’s Internet connection. Select your gns3 adapter here, I have selected VMnet2 since gns3vm was connected to it.

Windows network adapter sharing internet to gns3

Step8. You would get a warning message like below, which basically says your VMnet configuration has been changed. Click on Yes.

The internet sharing enabled and it use the IP gateway 192.168.137.1

Step 9.Lets open Gns3, you may get some error message, ignore them for now.

  • On Gns3, Click on Edit preferences, the preferences window now open
  • Click Server, you can see host binding address it’s connected to the loopback address 127.0.0.1. Change that to VMnet2 adapter IP which is 192.168.137.1
GNS3 server host binding settings
  • The Gns3vm would restart now. Once the Gns3vm back online, You need to make sure that it has got the IP from the subnet 192.168.137.0/24. I can see Gns3 VM got the IP from the same subnet.
GNS3vm properties with internet enabled

How do I test gns3 internet connectivity now?

We enabled the internet on gns3 but how do we test connectivity, the simple and easiest way is to use webterm appliance, which is a small appliance with which you can access the firefox browser.

  • Drag and drop webterm to the gns3 topology.
  • Click on next on the add appliance.
adding webterm appliance to gns3 to test internet connectivity
  • Run the appliance on the Gns3vm and click next.
install webterm on gns3vm
  • Leave the next default options and click Finish, you would get a popup window which says webterm installed.
webterm installed on gns3

Verify the connectivity.

  • In gns3 drag and drop the Cloud icon to the topology.
drag and drop the cloud icon to gns3 topology to test the internet connectivity
  • When it prompts you to choose a server select GNS3 VM and click OK.
choose GNS3VM for the cloud network.
  • Also drag and drop the webterm to the topolgy, and connect them together.
    Note: it may take some time to download the webterm and add to the topology.
Connect webterm and the cloud together.

Configure the network on the webterm host.

Right-click on the webterm host and click on configure.

  • On the configuration windows click on edit on the network configuration option.
webterm configuration
  • Change the network config to act as DHCP client like below.
webterm network configuration
  • Click on Save and turn on the webterm and you are all set.
the internet is up and running in gns3

That’s awesome! You just enabled internet access in the GNS3. The Internet is shared with the Gns3 as below.
Your network adapter–> VMnet adapter–> Gns3vm.