设为首页收藏本站language 语言切换
查看: 3197|回复: 7
收起左侧

[Cisco IOU] 关于IOU的start文件

[复制链接]
发表于 2012-3-26 22:20:57 | 显示全部楼层 |阅读模式
andlinux安装后,我把IOU文件复制到andlinux的目录下创建的CiscoIOU文件夹里,安网上的操作我都做了一边,在. ./start的时候提示:
Waiting on port 3001 ...
Process Id for child is 2525, parent is 2524
Unable to run router: No such file or directory
IOU 2525 exit
': not a valid identifierAP
': not a valid identifier

请高手们帮忙看一下是什么原因啊,下面是start文件
#!/bin/bash
#set -v
cd /root/mnt/and/CiscoIOU/Lab3
export NETIO_NETMAP=/root/mnt/and/CiscoIOU/Lab3/NETMAP
export IOURC=/root/mnt/and/CiscoIOU/Lab3/iourc
./wrapper-linux -m /root/mnt/and/CiscoIOU/Lab3/i86bi_linuxl2-upk9-ms.M -p 3001 1 -- -e 2 -n 1024
unset NETIO_NETMAP
unset IOURC
echo *************Powered by:http://www.cisco.com***********
echo *************All routers started***********************
echo *************This is shenghua luo  Haha!!!*************
发表于 2012-3-26 22:25:48 | 显示全部楼层
11111111111
沙发 2012-3-26 22:25:48 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-3-27 09:02:35 | 显示全部楼层
export NETIO_NETMAP=/root/mnt/and/CiscoIOU/Lab3/NETMAP改成./NETMAP
export IOURC=/root/mnt/and/CiscoIOU/Lab3/iourc改成./iourc
./wrapper-linux -m /root/mnt/and/CiscoIOU/Lab3/i86bi_linuxl2-upk9-ms.M -p 3001 1 -- -e 2 -n 1024改成./wrapper-linux -m ./i86bi_linuxl2-upk9-ms.M -p 3001 1 -- -e 2 -n 1024
板凳 2012-3-27 09:02:35 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-3-27 09:14:50 | 显示全部楼层
hongrun007 发表于 2012-3-27 09:02
export NETIO_NETMAP=/root/mnt/and/CiscoIOU/Lab3/NETMAP改成./NETMAP
export IOURC=/root/mnt/and/Cisco ...

这样不行啊,改了以后提示输入输出错误啊
地板 2012-3-27 09:14:50 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-3-27 13:39:23 | 显示全部楼层
xiaodon 发表于 2012-3-27 09:14
这样不行啊,改了以后提示输入输出错误啊

什么错?应该不会错了啊
5# 2012-3-27 13:39:23 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-3-27 17:08:24 | 显示全部楼层
hongrun007 发表于 2012-3-27 13:39
什么错?应该不会错了啊

你的意思是让我这么改是吗:
[root@andLinux Lab3]# cat start
#!/bin/bash
#set -v
cd /root/mnt/and/CiscoIOU/Lab3
export NETIO_NETMAP= ./NETMAP
export IOURC./iourc
./wrapper-linux -m ./i86bi_linuxl2-upk9-ms.M -p 3001 1 -- -e 2 -n 1024
unset NETIO_NETMAP
unset IOURC

我改了以后就出现下面的错误:
[root@andLinux Lab3]#
[root@andLinux Lab3]# . ./start
: No such file or directoryscoIOU/Lab3
': not a valid identifier
': not a valid identifierurc
Waiting on port 3001 ...
Process Id for child is 2486, parent is 2485
Options:
-e <n>          Number of Ethernet interfaces (default 2)
-s <n>          Number of Serial interfaces (default 2)
-n <n>          Size of nvram in Kb (default 16KB)
-b <string>     IOS debug string
-c <name>       Configuration file name
-d              Generate debug information
-t              Netio message trace
-q              Suppress informational messages
-h              Display this help
-C              Turn off use of host clock
-m <n>          Megabytes of router memory (default 256MB)
-L              Disable local console, use remote console
-u <n>          UDP port base for distributed networks
-R              Ignore options from the IOURC file
-U              Disable unix: file system location
-W              Disable watchdog timer
-N              Ignore the NETMAP file
IOU 2484 exit
': not a valid identifierAP
': not a valid identifier
6# 2012-3-27 17:08:24 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-3-27 17:13:28 | 显示全部楼层
hongrun007 发表于 2012-3-27 13:39
什么错?应该不会错了啊

我是在WIN XP下安装的,安装目录:C:\Program Files\andLinux\CiscoIOU\Lab3 。Lab3下面放的crack.py,i86bi_linuxl2-upk9-ms.M,iourc,NETMAP,start,wrapper-linux这几个文件。
另外还有一个问题就是我安装了andlinux以后,按网上的操作步骤是在开始--程序--andlinux下运行start andlinux以后,就看到框子闪了一下,之后就没反应了,也不知道是什么情况。我在安装目录里一个startup这个文件运行的。麻烦你帮忙看一下是不是和这个有关呢?谢谢你了啊
7# 2012-3-27 17:13:28 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-3-28 14:33:43 | 显示全部楼层
我想你在WIN下装的是虚拟机,看到你export IOURC./iourc写错了吧,当中有“=”的,仔细看看原来的
8# 2012-3-28 14:33:43 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-23 13:43 , Processed in 0.066523 second(s), 23 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表