Site icon System Zone

MikroTik Router Integration and Configuration on GNS3

GNS3 is a network simulator software used by hundreds of thousands of network engineers worldwide to emulate, configure, test and troubleshoot virtual and real networks. GNS3 can talk a large number of network vendors including MikroTik. MikroTik introduces Cloud Hosted Router (a RouterOS version) that is used to run as virtual machine and a virtual machine can easily be integrated with GNS3. So, network administrators who are fond of MikroTik Router can now configure, test and troubleshoot their MikroTik network with GNS3 so easily. In my previous article I discussed how to install and configure GNS3 in Windows Operating System and in this article I will show how to integrate and configure MikroTik Router on GNS3 to simulate any MikroTik network.

MikroTik Router on GNS3

GNS3 is the best friend for those who are unable to arrange a lot of real devices and fail to configure, test and troubleshoot any complex network with MikroTik Router. GNS3 can now talk with MikroTik Router. So, emulating MikroTik Router on GNS3, a network administrator can easily do R&D and can implement it to production environment.

MikroTik Router integration and configuration on GNS3 can be divided into the following three steps.

Downloading MikroTik Cloud Hosted Router from MikroTik Official Website

MikroTik introduces Cloud Hosted Router (CHR) that can be used as a virtual machine on most of the popular hypervisors such as VMware, Hyper-V, Virtual Box, KVM as well as GNS3. So, we will download MikroTik CHR and integrate it in GNS3. The following steps will show how to download MikroTik CHR from MikroTik Official Website.

MikroTik CHR is now in your Desktop. In the next step, we will install MikroTik Router on GNS3 using this Cloud Hosted Router.

Installing MikroTik Cloud Hosted Router on GNS3

After downloading MikroTik Cloud Hosted Router (CHR image file) from MikroTik official website, it is time to install it on GNS3. The following steps will show how to install MikroTik Cloud Hosted Router on GNS3 as QEMU VM.

We have successfully integrated MikroTik Router on GNS3. Now it is time to configure and test our integrated MikroTik Router by designing and configuring a basic network on GNS3.

Configuring a Basic MikroTik Network on GNS3

After installing MikroTik Router on GNS3, it is time to configure a basic MikroTik network on GNS3 and test whether it is able to talk with the real network or not. Complete network configuration on GNS3 with MikroTik Router can be divided into two parts.

Designing a Basic MikroTik Network on GNS3

Before going to start MikroTik Router configuration, we first need to design a MikroTik network on GNS3. In this article, we will configure a basic network that looks like to the below image.

Basic Mikrotik Network on GNS3

In this network diagram, MikroTik Router’s ether1 port is connected to internet cloud which is also connected to the public network. On the other hand, MikroTik Router’s ether2 port is connected to an Ethernet Switch and two VPCSs are connected to this Switch. We will now configure this network so that MikroTik Router as well as two VPCSs is able to communicate with the public network. So, design this MikroTik network on GNS3 and follow the below section to configure it. If you face any difficulty to design this network on GNS3, feel free to visit my previous article about GNS3 installation and configuration where I have discussed how to design networks on GNS3.

Configuring GNS3 Network Devices to Talk with the Real Network

In the above network diagram, there are five network appliances. Among these Ethernet Switch is a plug and play device. So, there is no configuration for LAN Switch. But we have to configure Internet Cloud, MikroTik Router and two VPCS.

Cloud Configuration

Cloud is the virtual internet POP in GNS3. So, it has to connect to any real network adapter.  Click mouse Right Button on the cloud icon and click on Configure option.  Node properties window will appear. Inside this window, click on Ethernet interfaces tab. Inside Ethernet interfaces tab, choose your desired network adapter that you want to bind with this Cloud from dropdown menu and then click on Add button. (If you don’t find your desired network adapter in dropdown menu, click on Show special Ethernet interfaces checkbox and you will find that your desired network adapter will now be available in interface dropdown menu). Your added network adapter will be listed in the Ethernet interfaces box area. Now click Apply and OK button.

MikroTik Router Configuration

We will just do some basic configurations in MikroTik Router. Basic MikroTik Router configuration includes assigning WAN IP, LAN IP, DNS IP as well as Route and NAT configuration. The following steps will show how to perform these tasks on MikroTik Router.

MikroTik Putty Command Prompt

MikroTik Router has been completed. MikroTik Router is now ready to communicate with the public network. Test with ping command from MikroTik terminal. If everything is OK, you will get result.

Assigning LAN IP in GNS3 VPCS
VPCS is a PC simulator that helps to test network configuration with ping and trace route. VPCS supports either DHCP or static IP. In this article, we will assign static LAN IP in our VPCSs (PC-1 and PC-2) and test whether it can communicate with the real network or not.

Assigning Static LAN IP in PC-1
The following steps will show how to assign static IP address in PC-1.

PC-1 Terminal

Now ping to gateway or any public domain or trace route with trace command. If everything is OK, PC-1 will be able to ping and trace route to real networks.

Assigning Static LAN IP in PC-2
The following steps will show how to assign static IP address in PC-2.

PC-2 Terminal

Now ping to gateway or any public domain or trace route with trace command. If everything is OK, PC-2 will be able to ping and trace route to real networks.

If you face any confusion to follow above steps properly, watch the below video about MikroTik Router integration and configuration on GNS3. I hope it will reduce your any confusion.

How to integrate and configure MikroTik Router on GNS3 has been discussed in this article. I hope you will now be able to design any MikroTik network on GNS3 for R&D purpose. However, if you face any confusion, feel free to discuss in comment or contact with me from Contact page. I will try my best to stay with you.

Exit mobile version