Page cover

Configure GNS3 for Automation

In this guide I will demonstrate how to configure a GNS3arrow-up-right environment using a VIRL Layer 2 switch, and a 7200 series router. This How To will show the base configuration of iOS devices, how to make connectivity between your host machine and the emulated network devices in GNS3arrow-up-right . This How To assumes you already have GNS3arrow-up-right installed with iOS devices. If you do not know how to setup GNS3arrow-up-right in Ubuntu follow the How To guides in the related articles links down below.

Instructions

Follow these steps to configure GNS3arrow-up-right for Automation

  • First let’s create a project in GNS3arrow-up-right . Open up GNS3arrow-up-right and a window should appear titled “project”. Name your the title of your project whatever you want and click “ok”.

  • Now let’s place a few appliance in our working pane. For this demonstration i will be connecting a 7200 series router to my NATarrow-up-right appliance. Connected to that router will be a VIRLarrow-up-right switch. This switch will be layer 3 and will be running OSPFarrow-up-right to route between it and the router.

  • The NATarrow-up-right cloud appliance you see pictured will create a virtual network with a standard address of 192.168.122.0/24. Any virtualization you run in Ubuntuarrow-up-right will use this default address space. Now we will configure the router. *** NOTE*** All base configuration for my devices will also be in my GITarrow-up-right repository linked in the related articles table below.

  • Once you have pasted the base configuration lets test connectivity from router to its gateway and internet.

  • Now that we have connectivity you can start Automating the router. But what if we need to reach that layer 3 switch?? Now we configure dynamic routing and PATarrow-up-right on the router. Follow this code for this configuration.

  • Now that we have configured PATarrow-up-right let’s configure our switch. Again paste a base configuration in the switch.

  • Now that the base configuration it complete let’s configure dynamic routing on the switch do some verification commands.

  • Run a few show commands to make sure there is OSPFarrow-up-right routing between the devices.

  • Now that we have verified we OSPFarrow-up-right routing between neighbors let’s see if our switch can reach the gateway, our host machine, and then the internet! We will complete this with a trace route.

  • With a few hiccups along the way we have managed to reach the internet! Now our GNS3arrow-up-right environment is ready to be automated from our machine!

Related links

This will help you with any GNS3 help.

This will take you to my GIT page which has every link to all my GIT repo's.

Will help you navigate through Cisco devices

Last updated