liyi2 发表于 2017-1-3 09:37:52

UNetLab 启动不了设备


UNetLab按教程安装完后启动不了设备。试了4次,修改几次操作错误后,点击start有提示启动失败:Failed to start node (12)    求解??

wzls16 发表于 2017-1-23 15:26:47

镜像不对,或者没有执行权限修正命令

hh63656890 发表于 2017-3-2 09:13:47

我研究了一下 有 3 个方面的问题1.查看nano /etc/hosts
127.0.0.1       localhost
“unl的ip”   unl01.example.com       unl01

# The following lines are desirable for IPv6 capable hosts
::1   localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.127 xml.cisco.com


2权限修复
/opt/unetlab/wrappers/unl_wrapper -a fixpermissions


3。iol 许可
#! /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))

# 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('!L', ioukey) + iouPad1
iouLicense=hashlib.md5(md5input).hexdigest()[:16]

print("\nAdd the following text to ~/.iourc:")
print("\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")

daqindiguo 发表于 2017-3-20 13:03:07

hh63656890 发表于 2017-3-2 09:13
我研究了一下 有 3 个方面的问题1.查看nano /etc/hosts
127.0.0.1       localhost
“unl的ip”   unl0 ...

哥们能详细说一下吗?我也碰到不能启动的问题了,不知道怎么搞
页: [1]
查看完整版本: UNetLab 启动不了设备