[Cisco][GNS3]Install IOU device in GNS3
Posted jbite9057
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Cisco][GNS3]Install IOU device in GNS3相关的知识,希望对你有一定的参考价值。
1. 下載並安裝GNS3
下載位置 https://gns3.com/software
安裝 gns3-all-in-one
部屬GNS3 VM至virtualbox
下載並安裝VIX API https://www.vmware.com/support/developer/vix-api/,重啟GNS3 GUI
2. 新增一個文件命名為"CiscoIOUKeygen3f.py",內容新增下列程式碼,上傳CiscoIOUKeygen3f.py至GNS3 VM中的/opt/gns3/images/IOU/目錄下,
#! /usr/bin/python3 print("*********************************************************************") 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 hostid=os.popen("hostid").read().strip() 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 = b‘x4Bx58x21x81x56x7Bx0DxF3x21x43x9Bx7ExACx1DxE6x8A‘ iouPad2 = b‘x80‘ + 39*b‘