12th October 2024

Generate Cisco IOURC license key on GNS3 VM using Python 3

We want to add an IOU L2 Switch image on GNS3. For this, after clicking “New IOU device template“, we select an image from the “Browse” button. In the “Type” section, we choose “L2 image“. After clicking the “Finish” button, I get the error “License section not found in iourc file /tmp/tmpe_pho577/iourc“. When I wanted to add an IOU L2 Switch image on GNS3, I got the following license error.

Name and Image
Name and Image
gns3 license error
gns3 license error

 

When I checked the license, I realized there was no license key.

IOS on Unix Preferences
IOS on Unix Preferences

 

Problem Solution

1- To solve the problem, we access the shell of your virtual machine.

a shell of your VM
shell of your VM

 

2. Download the Keygen using the following command.

wget http://www.ipvanquish.com/download/CiscoIOUKeygen3f.py

 

3. After download, run the following command to generate the license.

python3 CiscoIOUKeygen3f.py
generate the license
generate the license

 

4. After running this command, a file called iourc.txt will be created.

iourc.txt
iourc.txt

 

5. Copy and paste the license key in the file to the Preference> IOS on the UNIX section of GNS3.

IOS on UNIX section
IOS on UNIX section

 

6. Finally, everything is green😀!!!

Problem Solution
Problem Solution

 

LEARN MORE  Some Scenarios for DLP (Data Loss Prevention) POC

8 thoughts on “Generate Cisco IOURC license key on GNS3 VM using Python 3

  1. Had to do following to get it to work

    The CiscoIOUKeygen3f.py script has an error. You need to change the format in struct.pack() function to ‘!I’ instead of ‘!i’. The ‘i’ format is for signed integers whereas the ‘I’ format is for unsigned. The variable md5input is unsigned and therefore you need to use the ‘I’ format.

    https://gns3.com/community/featured/iou-4

  2. Is it mandatory to use/install VMware/Virtual-Box?

    For those users who are already on the Linux distro, can he tweak the Cisco Router to figure it for his PC using the python script?

Leave a Reply

Your email address will not be published. Required fields are marked *