Configure GNS3 for Automation
In this guide I will demonstrate how to configure a GNS3 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 GNS3 . This How To assumes you already have GNS3 installed with iOS devices. If you do not know how to setup GNS3 in Ubuntu follow the How To guides in the related articles links down below.
Instructions
Follow these steps to configure GNS3 for Automation
The NAT 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 Ubuntu will use this default address space. Now we will configure the router. *** NOTE*** All base configuration for my devices will also be in my GIT 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 PAT on the router. Follow this code for this configuration.
Now that we have configured PAT 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 OSPF routing between the devices.
Now that we have verified we OSPF 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 GNS3 environment is ready to be automated from our machine!
Related articles
Last updated