Connect GNS3 to the Internet (local server) | GNS3 Documentation
Technology

Connect GNS3 to the Internet (local server) | GNS3 Documentation

intro#

This document explains how to connect gns3 topologies to the internet when using a local gns3 server.

The topology created in this document looks like this:

Reading: How to connect gns3 to internet

screenshotLocal Install#

The following steps show you how to connect a local GNS3 installation to the Internet. In this document a simple topology of two Cisco routers are used to demonstrate:

  • add cloud to gns3 topology
  • configure ip addressing
  • configure dns resolution
  • configure nat on cisco router
  • ad routes in ospf
  • testing
  1. to create a new gns3 topology, select a device group in the devices toolbar by clicking the browse routers
  2. button

screenshotThe routers available will depend on your GNS3 configuration. In this example both a local router and GNS3 VM router are available.screenshotDrag and drop a local router to the GNS3 Workspace. An instance of the node becomes available in the Workspace:screenshotDrag and drop another local server router to the GNS3 Workspace:screenshotClick the End devices button:screenshotDrag and drop a Cloud node to the Workspace, select a local server, and then click OK:screenshotThe Cloud node will now appear in the Workspace:screenshotClick the Toolbar Device button again to collapse the group:screenshotRight click on the Cloud and then click Configure:screenshotA list of available Ethernet interfaces is listed:screenshotUse of physical interfaces is recommended. However, it is possible to use other interfaces, like a bridge interface, or a wireless interface. Configuring those is outside the scope of this article.

Below are examples of enabling “show special ethernet interfaces”, and then viewing the dropdown list:

screenshot

  1. Click the Add a Link button to start adding links to your topology. The mouse cursor will change to indicate that links can be added:

screenshotClick on the first router topology to display available interfaces (this is device dependant):screenshotClick the interface and then select the cloud in the topology to connect the interface to it. In this example FastEthernet 0/0 on R1 was selected. Next, click on the Cloud node, to see a list of available interfaces:screenshot(notice that the listed interfaces on the Cloud node matches what we saw in its properties)

  1. Select an interface on the Cloud to complete the connection. In this example, Ethernet on Cloud 1 was selected:

screenshotAdd another link between R2 and R1:screenshotClick the Add a Link button to stop adding links. The mouse cursor will change back to normal to indicate that you have stopped adding links:screenshotIf not already done, click the Show/Hide interface labels button on the GNS3 Toolbar to display interface labels in your topology:screenshotYou are now ready to power on your network devices. Click the Start/Resume button on the GNS3 Toolbar to start up your network devices:screenshotYou are now ready to configure your devices. Click the Console connect to all devices button on the Toolbar to open a connection to every device in the topology:screenshotA console connection is opened to each router in the topology:screenshotConfigure IP addresses:

See also: Connecting your Xbox controller to a PC or phone and how to quick-swap – The Verge

Option 1: DHCP If using DHCP, configure R1 as follows:

result: the dhcp server assigns an ip address to the router:

option 2: manual configuration if you configure a static ip address, configure r1 with an ip address on the same subnet as your local pc:

set a default gateway:

  1. ping the router’s default gateway:

See also: PayPal Betting Sites | Everything You Need to Know

result pings should be successful.

  1. make sure the router is configured to use the correct dns server:
  1. ping google.com:

result successful pings.

if your pings are unsuccessful, make sure you have connectivity to your default gateway and make sure the default gateway is set to have nat translate the address assigned to the gns3 router.

  1. configure ip addressing in the internal gns3 network:

screenshotConfiguration on the routers:

  1. Configure OSPF on R1 and R2 and advertise a default route:
  1. configure dns settings on r2:
  1. r2 will not be able to ping devices on the internet until you configure nat on r1 (or enable routing between r1 and its internet gateway). In this example, the internet gateway does not support routing, so nat will be configured on r1: r1# configure terminal
  1. test r2 connectivity to the internet:

result r2 is able to ping devices on the internet.

See also: Enable ports 80 (HTTP) and 443 (HTTPS)

  1. congratulations! you have configured the internet connection from gns3.
See Also:  How to Install an Outdoor TV Antenna in 7 Steps - Long Range Signal

Related Articles

Leave a Reply

Your email address will not be published.

Back to top button