Kamis, 16 Februari 2017

GNS3 Virtual Lab Mikrotik example

GNS3

Virtual Lab Mikrotik


example
Recomended Using Oracle Virtual BOX, Qemu failed with memory management result os so lag. don't wanna use it again. virtual box win in performance.

My System
A68N-5000
4GB memory
Windows 10 Pro 32 Bit
low spek but run smooth with Virtual BOX

First Thing Oracle Virtual BOX

GNS3 
hosted by github so we might need to create an account before download it.

Windows
last part mikrotik chr
extra package for usermanager etc.
extra package 6.38.1
Note: x86 not support IP Cloud yet. so we can't use it.

we will need to install all of it some might be need to download automatically while install like wireshark etc.

NOTE:  vdi chr image only run on virtual box with linux 64 bit with KVM acceleration
so make sure we choose linux other 64 bit and set the VM acceleration to KVM


NOTE: Make sure to share internet adapter with Virtual Box Adapter, this will allow Mikrotik to gain internet access / also using it to access mikrotik from VM host.
  
Last preparation we need create windows 7 image in virtual box
we can use any os (linux, windows 8, XP, x86 Android etc.) this only to virtualize client access to mikrotik.
when done. shut it down.
NOTE: gns3 only detect VirtualBox Image if we already run it at least one time.

everything set its time to make the lab.

1. run the GNS3 app, in user interface go to edit-preference (crtl+shift+p)

 on server tab make sure local server enable
go to VirtualBox VMs
select new button choose RouterOS_CHR create earlier from dropdown menu.
Note: if not listed than we might need to run it manually from VirtualBox UI for the first time.
in GNS3 1.5 or 64 bit system make sure change it from ENDDEVICE to ROUTER. but in GNS3 1.3 for windows 32 bit no option for that. alternative we can only change the picture to router. but still won't listed in router device on GNS3 UI.

Virtual Box only support 4 LAN Adapter, we can set it more than 4 but it will loop the adapter and confusing us because only one adapter active on mikrotik. virtual box share ether1 with ether5, ether2 with ether6 so on, so for this only limit maximum adapter to 4 only.
Note: make sure to tick Allow GNS3 use any configured VirtualBox Adapter

Do it again with windows7 image create earlier.
  so we have to virtualbox image one Routeros_chr and second windows7 image.
save all the change

2. Draw the network topology in gns3 Canvas.
select browse all device button from gns3 UI. drag Cloud, Hub or Switch, RouterOS_CHR, and Windows 7 Image from listed device to GNS canvas

configure the Cloud to select VirtualBox host only Adapter than click add button. this will connect GNS3 to outside (internet and the Host).


connect all the device in canvas by drawing a line.
select link button
draw line from windows 7 to Router_os chr ether2
draw line from RouterOS CHR ether1 to hub/switch ether1
draw line from hub/switch ether2 to Cloud.



3. Run the GNS3
now we've done try run it. by pressing start button on GNS3 UI.
 
Troubleshoot:
1. No User Interface VirtualBox display.
            right click vbox image on gns3 canvas select configure-> select the image-> 
            untick start VM in headless mode.
2. RouterOS CHR cant get ip address
           make sure to share the internet adapter with virtual box host only adapter
3. No internet Access
          Route on mikrotik haven't set yet. or internet adapter not sharing haven't set yet
 4. can't access via winbox
          login to mikrotik box on virtual box, /ip address print. check if mikrotik get the ip from 
         dhcp server use that ip to remote mikrotik.
         NOTE: ether1 ip must be the same subnet with dhcp server windows 
                      default value 192.168.137.1/24.

any other troubleshot ask me, will try to answer it.

Tidak ada komentar:

Posting Komentar