Vous êtes sur la page 1sur 17

chy 2008

CCNA
Cisco Certified Network Associate
www: www.chinaIPlab.com
mail : chinaIPlab@163.com
QQ: 728907069 QQ: 97324581

--IP
Cisco IOU
2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100

1 Cisco IOU
1.1 What is Cisco IOU
1.2 Cisco IOU
2
2.1 What is the iourc file?
2.2 netmap
2.3 wrapper-linux
2.4
2.5

3 Cisco IOU
3.1 windows
3.2 linux
4
4.1 IOU Usage
4.2 license
4.3 Is this legal?
4.4 FAQ
2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100
1.1 What is cisco IOU
CiscoIOU Cisco IOS on UnixSolaris
Linuxlinux
IOScpu

IOU
i86bi_linux-adventerprisek9-ms // IOS IOU
i86bi_linux-ipbase-ms // IP IOU
i86bi_linux-tpgen+ipbase-ms.PAGENT.4.7.0 // IP
IOU
iourc // lisence
NETMAP // GNS3 NET TOP
wrapper-linux //IOU
2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100
1.2 Cisco IOU
Cisco IOUSolaris (SPARC)linux
linux


1 linux linux
2 shellshell
2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100
2.1 What is the IOURC file?
The IOURC file is where IOU looks for your license code at startup.
Where does the IOURC file go?
IOU will look for the following:
A file named iourc in the current working directory
The file pointed to by the IOURC environment variable
What is the format of the IOURC file?
For licensing, your IOURC file needs to look like this:
[license]
hostname = 4242424242424242;
Replace hostname with your computer's (short) hostname
4242424242424242 with your license code.
Make sure the line ends with a semi-colon.
2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100
2.2.1 NETMAP
What is the NETMAP file?
The network topology map, or NETMAP, file is similar to a .net file for
dynagen. It is used for controlling the layout of the virtual cabling.

Where does the NETMAP file go?
IOU will look for the following:
A file named NETMAP in the current working directory
The file pointed to by the NETIO_NETMAP environment
variable
2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100
2.2.2 NETMAP
: :
1:0/0 2:0/0
1:3/0 2:3/0
1 e0/0 2 e0/0
1 s3/0 2 s3/0
ethernet n,serial n+1
IOU -e -s 2 Serial
2+1,s3/0 Serial
NETMAP IOU

netmap
2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100
2.2.3 Netmap
,Ethernet 4 ,Serial 4,
128M ,2 .
$./i86bi_linux-adventerprisek9-ms -e 4 -s 4 2
-e 4 //4 ethernet 4 0-3
-s 4 //4 Serial 4 0-3
2 //

Ethernet 16 Ethernet0/0----Ethernet3/3
Serial 16 Serial4/0----Serial7/3
Ethernet Serial

2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100
2.3 wrapper-linux
The wrapper program can be used to redirect a TCP port to the console of
the router so that you can do exactly this.
wrapper-linux
./wrapper-linux [-v] -m<image name> -p<port number> -- [iou
options] <router ID>
-m iou image
-p telnet 1024-65550
-- iou

./wrapper-linux -m ./i86bi_linux-adventerprisek9-ms -p 2000 -- -
e 4 -s 4 1
iou image i86bi_linux-adventerprisek9-ms
telnet 2000
4 Ethernet 4 Serial
1
2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100
2.4
start
#!/bin/sh
export NETIO_NETMAP=../TS2/NETMAP
../wrapper-linux -m ../i86bi_linux-
adventerprisek9-ms -p 2001 -- -e 1 -s 1 -n 1024 -m
128 -R -U 1 &
sleep 5
stop
#!/bin/sh
killall i86bi_linux-adventerprisek9-ms
IOU
2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100
2.5
konsole
#!/bin/sh
/usr/bin/konsole --new-tab -p tabtitle=R1 -e telnet
127.0.0.1 2001 >/dev/null 2>&1 &
Xterm
#!/bin/sh
xterm -T R1 -e 'telnet 127.0.0.1 2001' > /dev/null 2>&1
&
gnome-terminal
#!/bin/sh
gnome-terminal -t R1 -e 'telnet 127.0.0.1 2001'
>/dev/null 2>&1 &
linuxxtermgnomegnome-terminal kde
konsolectrl+alt+F1-7tty

2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100
3 Cisco IOU
3.1 windows
3.1.1 linuxvmwareandlinux
IOU
3.1.2
3.2 linux
3.2.1
3.2.1 ln s sourcefile linkfile
3.2.3 chmod a+x filename
3.2.4 NETMAPstart
3.2.5 start
3.2.6 sudo sh start stop
2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100
4.1 IOU Usage
Usage:
<image> [options] <application id>
<image>: unix-js-m | unix-is-m | unix-i-m | ...
<application id>: instance identifier (0 < id <=
1024)
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 16K)
-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 64)
-L Disable local console, use remote console
-u <n> UDP port base for distributed networks
2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100
4.2 license
Do I need a license to use IOU?
It does not seem that older IOU images needed a license to be used,
while newer IOU images (including the Linux ones I have seen) do
require a valid license.
How do I get a license?
Unfortunately, licenses are only able to be acquired inside of Cisco.
An individual license code is generated, based upon the machine's
hostname and IP address.
Will you post your script to crack it?
Although I initially said I would, I have decided against this after
careful thought. You may do this on your own, if you are so inclined.
2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100
4.3 Is this legal?
Usage of IOU outside of Cisco (and trusted partners) is a potentially legal
gray area. From an old internal-only Cisco web page:
Cisco IOS on Unix is a tool intended for internal use only. Distribution of IOU
images to customers or external persons, or discussion of IOU with
customers or external persons, is prohibited. Dont do it or well have to come
and kill you.
Does IOU attempt to call home?
Yes. At startup, IOU images will attempt to make an HTTP POST of some
XML data to xml.cisco.com. The data includes your (short) hostname (e.g. not
the FQDN), the username of the user running IOU, the version, etc. It
appears that xml.cisco.com is not reachable from the Internet, however, so
the connection will not be made. This could change in the future, though, so
you may want to do the following:
# echo '127.0.0.1 xml.cisco.com' >> /etc/hosts
I can't find it, will you send me a copy?
No, don't even ask. Seriously.
2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100
4.4.1 FAQ
Q: What doesUNIX ERR:tcgetattr:Invalid argumentmean?
A: No idea, but it doesn't seem to hurt anything. it appears that it can
be safely ignored.
Q: I'm getting an error about libcrypto.so.4.
A:These images were compiled against an older version of the
libcrypto shared library than what your Linux distribution may have.
For me, creating a symbolic link from /lib/libcrypto.so.0.9.8 to
/lib/libcrypto.so.4 took care of the error.
Q: I'm getting ahost not found in iourc fileerror.
A: Fix your IOURC file. See above.
2008 lchy

2010
QQ: 7289 07069 136 0371 9271 0371 6611 0100
4.4.2 FAQ
Q: How can I add an NM-16ESW module?
A: You can't.
Q: There must be some way to add ATM or NM-16ESW modules!
A: There's not.
Q: When running ./wrapper-linux -m i86bi_linux-adventerprisek9-ms I get
No such file or directory.
A: Provide the path to the IOU image. If its in the working directory, refer to it
as ./i86bi_linux-adventerprisek9-ms, for example.
Q: I've tried everything and I can't get it to work. What should I do?
A: Google gns3 and follow a tutorial on how to download and install it.
Seriously.
Q: If I e-mail you will you help me?
A: No

Vous aimerez peut-être aussi