How to generate Cisco IOU license key in Eve ng

preview_player
Показать описание
Here the download link to Cisco license key:
2- cd /opt/unetlabs/addons/iol/bin

5- sudo touch iourc # Create iourc file
6- sudo nano iourc # Open and copy past the license
END
Рекомендации по теме
Комментарии
Автор

I was almost determined to give up using this laboratory, I'm not kidding. I even downloaded malware yesterday trying to find these two files. but thank god your video gave me the solution; made me want to continue.

* Sorry if I made a typo. I don't speak English, and I used the Google translator to be able to post here on your video.
Thank you very much brother, very grateful to share your knowledge. A hug. God be with you

aceraspire
Автор

I was in the same boat as Acer Aspire. I was ready to give up on Eve-NG as the IOL L2 and L3 Switch images were not starting (only 7200 Dynamips router image was working). But, this worked and I now able to use the Switches as well. Many thanks for your excellent step-by step video.

dark_mystic
Автор

You're the best! Thank you so much!
I actually had to tweak a couple things, but I eventually got it to work.

Trying to fixpermissions using "/wrappers//unl wrapper" didn't seem to work, but a single "/" instead of "//" worked.
I couldn't copy/paste license with a mouse (OracleVM).
I was able to use FileZilla a .txt over and rename it.
(Actually, the keygen I copy/pasted from your site didn't work, but I was able to find another one.)

Ultimately, your guide got me to where I needed to get!
Thanks a million! My future children also thank you.

emrd
Автор

Thank you for the share the valuable information.

satendranigam-dz
Автор

Fixed the issue by converting the script to python3 and also modifying some of the config:


Steps:

> vi Ciscokey.py

press i for insert

<copyy paste the text below>



#! /usr/bin/python3

print("Cisco IOU License Generator - Kal 2011, python port of 2006 C version")
import os
import socket
import hashlib
import struct
# get the host id and host name to calculate the hostkey

hostname = socket.gethostname()
ioukey=int(hostid, 16)
for x in hostname:
ioukey = ioukey + ord(x)
print("hostid=" + hostid +", hostname="+ hostname + ", ioukey=" + hex(ioukey)[2:])
# create the license using md5sum
iouPad1 =
iouPad2 = b'\x80' + 39*b'\0'
md5input=iouPad1 + iouPad2 + struct.pack('!I', ioukey) + iouPad1


print("\nAdd the following text to ~/.iourc:")
print("[license]\n" + hostname + " = " + iouLicense + ";\n")
with open("iourc.txt", "wt") as out_file:
out_file.write("[license]\n" + hostname + " = " + iouLicense + ";\n")
copy to the file iourc.txt\n ")

print("You can disable the phone home feature with something like:")
print(" echo '127.0.0.127 xml.cisco.com' >> /etc/hosts\n")





press escape to get of insert mode
!wq

! Grant execution permission:

> chmod +x Ciscokey.py

!Generate the key:

> python3 Ciscokey.py

Now you can use the generated key and save in iourc

nano -c iourc

End

Good Luck:

maalrush
Автор

Many thanks. very helpful for this case.

luthfanfarizan
Автор

this method doesnt work for me either. the node (catalyst 3560) starts and then stops after a few seconds

jiramos
Автор

hi sir, please how can i get the key generate python script ? the link below the video does not exist. Wish you help me

deenaadam
Автор

sudo: unable to execute ./CiscoKey.py: No such file or directory this error why?

cavid
Автор

i am running the python script...but not able to generate key...any solution?

amitpatil
Автор

am still struggling in 5:39 , i cant view the license after typing the code sudo ./CiscoKey.py

ottowhassan
Автор

link it is not working, can you write another link

mohammedaklief
Автор

It is working.how can i do it same on ASAv License

vaishakpd
Автор

I keep getting this when running the sudo ./Cisco.py command

Cisco IOU License Generator - Kal 2011, python port of 2006 C version
Modified to work with python3 by c_d 2014
hostid=8e0a0500, hostname=eve-comm1, ioukey=8e0a084a
Traceback (most recent call last):
File "./Cisco.py", line 21, in <module>
md5input=iouPad1 + iouPad2 + struct.pack('!i', ioukey) + iouPad1
struct.error: 'i' format requires -2147483648 <= number <= 2147483647

jasonboykins
Автор

when I type -a fixpermissions" it apears "ERROR: Unlicensed"

isaacnavarro
Автор

Donde puedo conseguir el script para generar la licencia

JoséLuisHernandezHernandez-xh
Автор

Hi, Thanks for the video. How could we paste the script on Windows while running VMware Workstation 15 Player. I open the GNU nano 2.5.3 but I can't R-click or use Ctrl+V

bravealikhan
Автор

hi, i followed your script but when i click start on my router it will start and stop at the same time.

FatzyRider
Автор

I have tried many times but getting this error

Cisco IOU License Generator - Kal 2011, python port of 2006 C version
hostid=800a0200, hostname=myserver, ioukey=800a057d
Traceback (most recent call last):
File "CiscoIOUKeygen.py", line 18, in <module>
md5input=iouPad1 + iouPad2 + struct.pack('!i', ioukey) + iouPad1
struct.error: 'i' format requires -2147483648 <= number <= 2147483647

techsupport