Mikrotik under Qemu in GNS3 1.2.3

NOTE:
Better alternative is to run Mikrotik under VirtualBox instead of Qemu
Download and install GNS3 All-in-One that already include Qemu and WireShark
Download latest mikrotik iso from http://www.routeros.co.id/ and put into c:\Program Files\GNS3>
click Start/Search cmd
right click cmd and “Run as administrator”
>cd c:\Program Files\GNS3\qemu-2.1.0
>qemu-img.exe create -f qcow2 mikrotik.img 128M
>qemu-system-x86_64w.exe mikrotik.img -boot d -cdrom mikrotik-6.27.iso
04091401
press a
press i
Do you want to keep old configuration? [y/n]n
Warning: all data on the disk will be erased!
Continue? [y/n]y
when it ask to press ENTER to reboot, just click Close
-verify mikrotik.img
>qemu-system-x86_64w.exe mikrotik.img
Mikrotik Login: admin
empty password
-open GNS3 menu Edit/Symbol Manager
040902
-open GNS3 menu Edit/Preferences
click Qemu/Qemu Guest
09-Mar 04.47.46
Install loopback
>hdwwiz.exe
-Welcome to the Add Hardware Wizard
click Next
-The wizard can help you to install other hardware
click Install the hardware that I manually select from a list (Advanced)
click Next
-From the list below…
click Network adapters
click Next
-Select Network Adapter
select Microsoft/Microsoft KM-TEST Loopback Adapter
click Next
-The wizard is ready to install your hardware
click Next
-Completing the Add Hardware Wizard
click Finish
Rename Ethernet 2 nic to Loopback
06091401
click 2x your Loopback nic
disable iov6
06091402
click 2x IPv4 and set your pc loopback ip address
06091403
-right click GNS3/Run as Administrator
06091404
-drag Cloud
-right click Cloud C1 and choose “Change the hostname”
-change C1 to Cloud1 hostname
-click 2x Cloud Cloud1
change NIO Ethernet/Generic Ethernet NIO to Loopback NIC
06091405
click Add
06091406
06091407
NOTE:
In picture above I need to use Hub instead of Switch for GNS3 1.2.3, because if I use switch, I can’t ping host loopback ip address
-Start mikrotik
Click 2x mikrotik
Set console port to 8291, so that you can connect Winbox from your PC to mikrotik ip address
09-Mar 05.22.14
-set Mikrotik ip address
>ip address add address=10.0.0.254/24 interface=ether1
>ip address print
To connect your PC to Cloud1
set your pc ip to static ip
06091408
-click Advanced
06091409
-click Add IP Address
06091410
-click Add
06091411
Now, if you try to ping from your pc to Cloud1 loopback. You should get reply
C:\Users\user>ping 1.1.1.101
Pinging 1.1.1.101 with 32 bytes of data:
Reply from 1.1.1.101: bytes=32 time<1ms TTL=128
Reply from 1.1.1.101: bytes=32 time<1ms TTL=128
Reply from 1.1.1.101: bytes=32 time<1ms TTL=128
Reply from 1.1.1.101: bytes=32 time<1ms TTL=128
Ping statistics for 1.1.1.101:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
-open WInbox and go to 10.0.0.254
Advertisements

One thought on “Mikrotik under Qemu in GNS3 1.2.3

  1. Pingback: Cara Install Mikrotik menggunakan Qemu di GNS3 – Rahmad Rumoh Aceh

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s