[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 = bx4Bx58x21x81x56x7Bx0DxF3x21x43x9Bx7ExACx1DxE6x8A
iouPad2 = bx80 + 39*b
md5input=iouPad1 + iouPad2 + struct.pack(!i, ioukey) + iouPad1
iouLicense=hashlib.md5(md5input).hexdigest()[:16]

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

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

3. 在GNS3 VM中執行此程式

cd /opt/gns3/images/IOU/
python3 CiscoIOUKeygen3f.py

4. 下載iourc.txt,並導入至gns3 GUI中

  edit -> preferences -> ios on UNIX

  browse -> 找到iourc.txt並匯入再應用

5. 新增IOU設備

  edit -> preferences -> IOS on UNIX -> IOU Devices

  new -> "Run this IOU device on the GNS3 VM" ->

  技术图片

   name this device -> select image -> finish

  技术图片

 

 6. 新增設備至GNS3 GUI 中

  技术图片

以上是关于[Cisco][GNS3]Install IOU device in GNS3的主要内容,如果未能解决你的问题,请参考以下文章

搭建GNS3 2.1.5 + IOU 平台

10.1-GLBP Round-robin //IOU(用VM中的GNS3镜像来做的)

cisco 模拟器上如何访问ftp服务器

IT技术分享思科CCNA/CCNP/CCIE 实验环境GNS3+IOU的安装

Cisco_IOU_Crack

Cisco模拟器GNS3(2.0.0b4版本)安装和配置