Thursday, December 29, 2016

How to Install ASA on GNS3, Step By Step Guide
OR

Configure Cisco ASA 8.4 over GNS3
Cisco ASA stands for Adaptive Security Appliance. In brief, It is a security device that combines firewall, antivirus, intrusion prevention, and virtual private network (VPN) capabilities. It can be used as a security solution for both small and large networks. This post is applicable for adding any versions of Cisco ASA 8.4 on GNS3.

Before we begin, Please make sure that you have below items in your machine.

1.Download & Install GNS3
http://www.gns3.net/download

2.Cisco ASA 8.4 ISO image(valid)
https://www.4shared.com/zip/bum1hWAFba/ASA842.html
or
https://rapidshare.com/files/2538881267/asa.zip

Now Let's assume that, you have installed GNS3 on your machine.

Steps to be Followed,

Step 1:- Download the ASA image & Extract them. Copy the extracted image & Paste them to GNS3 Images Directory.

Ex: C:\Users\<user name>\GNS3\images\

Step 2:-  Open GNS3 --> go to edit---> Preferrence ----> QEMU---> QEMU VMs



Step 3:- Click New ---->Select QEMU VM type ---> ASA 8.4(2) ----> Next Button. 
                                           
Step 4:- Give whatever name you want to assign to ASA4.



Step 5:- Assign RAM size for the ASA. (>=1024MB)


Step 6:- Browse the Boot ISO files, which we have pasted in GNS3 images Directory. Click Finish

Step 7 :-  Press Ok, Then Drag Cisco ASA Image to Workspace. Right Click ASA image ----> Press Start button.



Step 8:- Go to Console view-->  If everything is perfect, It will start booting. In case any issues, add your comments.  After booting process, it will go to enable prompt of ASA.



Step 9:- Type enable ---> and press enter, in the password prompt. To check the Cisco ASA version & License Information. Type " Show Version" Command.

Step 10:- Now ASA is loaded with Default License Key, which has limited features. Issue the following commands, to install the New License Key.
Go to Configure Terminal ---> type "activation-key 0xb23bcf4a 0x1c713b4f 0x7d53bcbc 0xc4f8d09c 0x0e24c6b6" ---------> Write -----> Reload.



Step 11:- Wait for 15-20 mins roughly, it could take more time. During the reboot, it will take some more time for Key Validation Phase. Wait for some time.
Now Your ASA is ready with the New License Installed.

That's All Guys..!! Please let me know for any concern. 

Cisco IOU L2 L3 lab with GNS3 | Switching in GNS3

Cisco IOS on UNIX, also known as Cisco IOU, is released for internal Cisco use only. IOU permits to run IOS natively on x86 platform while GNS3 must emulate the whole hardware. The big difference is that IOU can run more IOS instance than GNS3, but GNS3 can run real IOS version. The purpose of this article is to let you know how IOU can be integrated with GNS3 emulator software to practice switching concepts.

Make sure you have...
Before we start I want to make sure that you all have the required tools and softwares. I have listed down them with download links below,

Virtual Box 4.3.12 (I had some bad experience with version 5.0, Check my article to know more VirtualBox EFAIL error) - https://www.virtualbox.org/wiki/Download_Old_Builds_4_3_pre24
IOU Images - As already mentioned, strictly for Cisco guys! But still you might get these images by Googling!  
GNS3 IOU VM - Available from sourceforge, I downloaded and used a older version in this post. But you can use any version from this link. - http://sourceforge.net/projects/gns-3/files/IOU%20VMs/
IOURC - Cisco license file for IOU Images. It is not available for public use, but while surfing I found this link which could help you! http://forum.gns3.net/topic9032.html

Setting Up GNS3 IOU VM in Virtual Box
Download the IOU Virtual Machine from the given Sourceforge link.



In the above image I have marked the file which I downloaded, However you can use any of the available versions. Once downloaded extract the tar file using 7zip or Winzip. You would see below files inside the zip file,



Open Virtual Box 4.3.12 application from the start menu. Make sure that you have already downloaded and installed it. I downloaded it from the below URL,



In Virtual Box, Click on File -> Import Appliance. It will prompt below window, 



Select the path of your ovf file (you can find it in extracted folder) and click Import as depicted in the above snapshot. And ensure that Network settings looks like below,



As shown, Make sure that VM is attached to Host-only Adapter before we start the VM. Now start the VM and check for the IP configuration using ifconfig command. Use username root and password cisco to login into the appliance. Refer the below image for example,




Now it's time to upload the IOU images. Well! I happened to find some IOU Images from this link. Type 192.168.56.101:8000/upload on your browser address bar. Click on 'Choose file', a file browser window will open. Select the downloaded IOU image and click 'Upload', this might take few minutes.



Make a note of displayed path, /home/gns3/GNS3/images/IOU/xxxxxxxx. Later you will have to enter this path in GNS3.

With this step, we have completed IOU end configuration. Let's start with GNS3...

GNS3 IOU Server Configuration
By default, GNS3 is binded with server address 127.0.0.0:8000. We have to change this value with our new IOU server address. Follow the below instructions to bind the new server.

Go to Edit -> Preferences -> GNS3 Server. Click on Local server tab. From the Host Binding drop down window select '192.168.56.101'. Make sure that port is also set to 8000. Then click Apply and OK.



Again go to Edit -> Preferences -> GNS3 Server. This time click on Remote access tab. Add a host by entering UNIX GNS3 IOU VM IP address that we found using ifconfig (mine 192.168.56.101) and 8000 as port.



Integrating GNS3 and Cisco IOU
Final step of this tutorial would be to add IOU templates to GNS3. Go to Edit -> Preferences -> IOS on UNIX. And click 'General Settings' tab, click browse to set the path to IOURC.txt file. IOURC license file would like below,



Once you have given license file details, click Apply. And now go to IOU Devices, click New button and select server type as Remote. Your remote server will be listed there → Next



Here you will receive a message “You have chosen to use a remote server, please provide the path to IOU image located on the server!”, just click OK.



Now type a Name for the IOU image and set IOU image path to be the one that you noted already while uploading the image through through browser. Refer the snapshot below to understand what I am trying to say,




Click Finish! Yes, we are done with all the configurations. By repeating the above steps, you can upload as many as images you want and you can add them to your GNS3 emulator window. For example I have uploaded 2 images (L3 and L2) as shown below.



Now go to GNS3 main window, pull the configured IOU devices. Power them on, start building your labs! Since you can configure all the devices inside your GNS3 itself, I guess this method is much better than IOU Web.




That's all folks! I believe I have covered all the required steps to get IOU running with GNS3, In case of any clarifications, do let me know through comment section below.