EVE-NG模拟器基本配置及关联SecureCRT、Wireshark及VNC


EVE-NG(全称Emulated Virtual Environment – NextGeneration),继Unetlab 1.0后的Unetlab的2.0新版本,改了名字,原名是UnifiedNetworking Lab统一网络实验室。笔者觉得名字改的非常合理,这款模拟器已经不仅可以模拟网络设备,也可以运行一切虚拟机。理论上,只要能将虚拟机的虚拟磁盘格式转换为qcow2都可以在EVE-NG上运行。所以,EVE-NG可以算得上是仿真虚拟环境。EVE-NG是国外大神们开发的,融合了dynamips,IOL,KVM。它是深度定制的Ubuntu操作系统,可以直接把它安装在x86架构的物理主机上。它也有ova版本,可以导入到VMware等虚拟机软件中运行。EVE-NG在交互模式上更加具有优势,与GNS3截然不同。GNS3更像是用户使用的软件,只有GNS3支持的 OS才能使用;而EVE-NG更像是CS模型,EVE-NG是服务端,用户端可以是支持http/https的任意OS。


EVE-NG模拟器的安装配置

可以在EVE-NG官网下载到ova格式的虚拟机文件,在VMware Workstation Pro或VSPHERE等虚拟机中导入即可,root的默认密码是eve,老版本可能是unl,第一次进入系统会进入初始化配置界面,按照向导进行设置即可,之后会自动进行重启,再次进入系统可以使用apt-get update获取更新列表,然后使用apt-get install eve-ng安装eve-ng的更新版本。

使用vim将下面的python脚本写到文件,然后使用命令pydoc3 文件名执行后即可进行破解并自动写入序列号。


CiscoIOUKeygen.py
#! /usr/bin/python
print("*********************************************************************")
print("Cisco IOU License Generator - Kal 2011, python port of 2006 C version")
print("Modified to work with python3 by c_d 2014")
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'\x4B\x58\x21\x81\x56\x7B\x0D\xF3\x21\x43\x9B\x7E\xAC\x1D\xE6\x8A'
iouPad2 = b'\x80' + 39*b'\0'
md5input=iouPad1 + iouPad2 + struct.pack('!I', ioukey) + iouPad1
iouLicense=hashlib.md5(md5input).hexdigest()[:16]
 
print("\nAdd the following text to ~/.iourc:")
print("[license]\n" + hostname + " = " + iouLicense + ";\n")
print("You can disable the phone home feature with something like:")
print(" echo '127.0.0.127 xml.cisco.com' >> /etc/hosts\n")
 
 
lic = ["[license]\n" + hostname + " = " + iouLicense + ";" + "\n"]
f = open('/opt/unetlab/addons/iol/bin/iourc','w')
f.writelines(lic)
f.close()

IOL和QEMU设备导入路径分别为:/opt/unetlab/addons/iol/bin以及/opt/unetlab/addons/qemu,导入后需执行以下命令对权限进行修复:/opt/unetlab/wrappers/unl_wrapper -a fixpermissions

至此EVE模拟器的配置部分结束,EVE前台的用户名和密码默认为admin/eve。


关联SecureCRT

建议安装SecureCRT 8.1及其以上版本,打开http://EVE-NG地址/files/windows.zip下载eve-ng的Windows关联文件,然后使用文本编辑工具编辑win7_64bit_crt.reg注册表文件。

将上述文件中的SecureCRT路径改成系统中SecureCRT的实际安装路径,默认安装在C盘,如果你的SecureCRT是一路默认安装的,此处一般情况下不需要再进行修改,确认无误后,双击导入注册表即可。

最后将解压出来的UNetLab目录复制到C:\Program Files\目录下!


关联Wireshark

下载安装一个Wireshark,然后需要下载一个plink.exe,下面链接是64位系统的pink,https://the.earth.li/~sgtatham/putty/latest/w64/plink.exe

将下载回来的plink.exe复制到C:\Program Files\UNetLab下,然后双击win7_64bit_wireshark.reg导入注册表进行关联,然后编辑wireshark_wrapper.bat将最开头的root密码修改为正确的root密码即可,默认eve。

如果报错,请在bat文件里面添加plink -batch -ssh ..

关联VNC

测试使用安装的VNC版本是VNC Viewer Enterprise Edition E4.29,有尝试过最新版的VNC,传参有问题,懒得研究就找了一个直接就能用的版本,和之前的关联设置差不多,打开C:\Program Files\UNetLab,找到ultravnc_wrapper.bat并进行编辑,修改VNC路径,并删-connect参数,即可使用,不同版本VNC的参数可能不同,反正我是不知道需要用-connect的是哪个版本VCN,用4.29删除该参数就可以直接使用,然后导入win7_64bit_ultravnc.reg即可完成关联操作。

5 Comments

  1. 赶路人 says:

    大佬,好人一生平安

  2. I enjoy what you guys tend to be up too. This kind of clever work and coverage!
    Keep up the terrific works guys I’ve incorporated you
    guys to blogroll.

  3. I’m not sure why but this web site is loading very slow for me.
    Is anyone else having this issue or is it a issue on my end?

    I’ll check back later on and see if the problem still
    exists.

  4. Generally I do not read post on blogs, however I wish to say that this write-up very pressured me to try and do
    so! Your writing style has been surprised me.
    Thanks, quite great post.

  5. I every time spent my half an hour to read this website’s content every
    day along with a mug of coffee.

回复 tadalafil 20 mg 取消回复

您的电子邮箱地址不会被公开。 必填项已用*标注