www.CCIEtrack.com

Dynamips for Win XP helps CCIE lab preparation

Basic Windows XP Dynamips/Dynagen Installation and Troubleshooting steps to Support the DOiT Workbook from Netmasterclass.

 

 

Software download

 

  1. Dynamips/Dynagen simulation will be performed in D:\sim directory in this document

 

  1. Download to D:\sim and install Dynamips simulator (Executable for Windows (with Cygwin DLL) from the following site:

 

http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator

 

  1. Download and install WinPCap library from :

 

The minimum required version is 0.4beta1

http://www.winpcap.org/install/default.htm

 

  1. Download and install Dynagen from :

 

http://dyna-gen.sourceforge.net/

�����������

Testing dynamips with 3640 IOS image

 

  1. Copy IOS image to D:\sim and uncompress it with for example WinRAR. It is optional but highly recommended to save time on the booting process

 

  1. Open cmd.exe window (DOS command line interface) and run the Dynamips with this IOS image, gather "pc-idle" values. Try these values to find the lowest processor utilization.

 

D:\sim>dynamips-wxp.exe -P 3600 -t 3640 c3640-jk9o3s-mz.124-5-uncompressed.bin

Cisco 7200 Simulation Platform (version 0.2.5-x86)

Copyright (c) 2005,2006 Christophe Fillot.

 

IOS image file: c3640-jk9o3s-mz.124-5-uncompressed.bin

 

CPU0: carved JIT exec zone of 16 Mb into 512 pages of 32 Kb.

C3600 instance 'default' (id 0):

� VM Status� : 0

� RAM size�� : 128 Mb

� NVRAM size : 128 Kb

� Chassis��� : 3640

� IOS image� : c3640-jk9o3s-mz.124-5-uncompressed.bin

 

Loading ELF file 'c3640-jk9o3s-mz.124-5-uncompressed.bin'...

ELF entry point: 0x80008000

 

C3600 'default': starting simulation (CPU0 PC=0xffffffffbfc00000), JIT enabled.

ROMMON emulation microcode.

 

Launching IOS image at 0x80008000...

 

Smart Init is disabled. IOMEM set to: 5

 

Using iomem percentage: 5

 

������������� Restricted Rights Legend

 

Use, duplication, or disclosure by the Government is

subject to restrictions as set forth in subparagraph

(c) of the Commercial Computer Software - Restricted

Rights clause at FAR sec. 52.227-19 and subparagraph

(c) (1) (ii) of the Rights in Technical Data and Computer

Software clause at DFARS sec. 252.227-7013.

 

���������� cisco Systems, Inc.

���������� 170 West Tasman Drive

���������� San Jose, California 95134-1706

 

 

 

Cisco IOS Software, 3600 Software (C3640-JK9O3S-M), Version 12.4(5), RELEASE SOF

TWARE (fc3)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2005 by Cisco Systems, Inc.

Compiled Mon 31-Oct-05 21:24 by alnguyen

Image text-base: 0x60009004, data-base: 0x62B40000

 

 

This product contains cryptographic features and is subject to United

States and local country laws governing import, export, transfer and

use. Delivery of Cisco cryptographic products does not imply

third-party authority to import, export, distribute or use encryption.

Importers, exporters, distributors and users are responsible for

compliance with U.S. and local country laws. By using this product you

agree to comply with applicable laws and regulations. If you are unable

to comply with U.S. and local laws, return this product immediately.

 

A summary of U.S. laws governing Cisco cryptographic products may be found at:

http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

 

If you require further assistance please contact us by sending email to

export@cisco.com.

 

% Error! No serial number found for this platform.

MIPS64: unhandled opcode 0x4620103c at 0x627baeb4 (ra=0x627bae64)

MIPS64 Registers:

� zr ($ 0) = 0x0000000000000000�� at ($ 1) = 0x0000000040400000

� v0 ($ 2) = 0x0000000000000000�� v1 ($ 3) = 0x0000000064edc3f3

� a0 ($ 4) = 0x0000000000000091�� a1 ($ 5) = 0x0000000064edc3e0

� a2 ($ 6) = 0x0000000064acacd4�� a3 ($ 7) = 0x0000000000000136

� t0 ($ 8) = 0x000000006594b074�� t1 ($ 9) = 0x000000006594b070

� t2 ($10) = 0x000000006594b06c�� t3 ($11) = 0x000000006594b068

� t4 ($12) = 0x000000006594b064�� t5 ($13) = 0x000000006594b060

� t6 ($14) = 0x000000006594b05c�� t7 ($15) = 0x000000006594b058

� s0 ($16) = 0x0000000000000014�� s1 ($17) = 0x000000000000000a

� s2 ($18) = 0x000000000000000a�� s3 ($19) = 0x0000000000000014

� s4 ($20) = 0x0000000064edc3f8�� s5 ($21) = 0x0000000064edc3f8

� s6 ($22) = 0x0000000064aca8a8�� s7 ($23) = 0x0000000064edc3e0

� t8 ($24) = 0x0000000064edc408�� t9 ($25) = 0x0000000000000000

� k0 ($26) = 0xffffffffbfc003e0�� k1 ($27) = 0x000000000000e100

� gp ($28) = 0x0000000064925ec0�� sp ($29) = 0x0000000064edc3c8

� fp ($30) = 0x000000000000000a�� ra ($31) = 0x00000000627bae64

� lo = 0x0000000000000049, hi = 0x00000000008da720

� pc = 0x00000000627baeb4, ll_bit = 0

 

CP0 Registers:

� index����� ($ 0) = 0x0000000000000004�� random���� ($ 1) = 0x0000000000000017

� entry_lo0� ($ 2) = 0x0000000000c80015�� entry_lo1� ($ 3) = 0x0000000000cc0015

� context��� ($ 4) = 0x0000000000000000�� pagemask�� ($ 5) = 0x0000000001ffe000

� wired����� ($ 6) = 0x0000000000000000�� info������ ($ 7) = 0x0000000020000000

� badvaddr�� ($ 8) = 0x0000000000000000�� count����� ($ 9) = 0x000000001aaf138d

� entry_hi�� ($10) = 0x0000000032000001�� compare��� ($11) = 0x000000001ab17871

� status���� ($12) = 0x000000003400e101�� cause����� ($13) = 0x0000000000000000

� epc������� ($14) = 0x0000000060521578�� prid������ ($15) = 0x0000000000002112

� config���� ($16) = 0x0000000000c08ff0�� ll_addr��� ($17) = 0x0000000000000000

� watch_lo�� ($18) = 0x0000000000000000�� watch_hi�� ($19) = 0x0000000000000000

� xcontext�� ($20) = 0x0000000000000000�� cp0_r21��� ($21) = 0x0000000000000000

� cp0_r22��� ($22) = 0x0000000000000000�� cp0_r23��� ($23) = 0x0000000000000000

� cp0_r24��� ($24) = 0x0000000000000000�� cp0_r25��� ($25) = 0x0000000000000000

� ecc �������($26) = 0x0000000000000000�� cache_err� ($27) = 0x0000000000000000

� tag_lo���� ($28) = 0x0000000000000000�� tag_hi���� ($29) = 0x0000000000000000

� err_epc��� ($30) = 0x0000000000000000�� cp0_r31��� ($31) = 0x0000000000000000

 

� IRQ count: 1314, IRQ false positives: 1, IRQ Pending: 0

� Timer IRQ count: 1313, pending: 1, timer drift: 0

 

 

MIPS64: unhandled opcode 0x45000005 at 0x627baebc (ra=0x627bae64)

MIPS64 Registers:

� zr ($ 0) = 0x0000000000000000�� at ($ 1) = 0x0000000040400000

� v0 ($ 2) = 0x0000000000000000�� v1 ($ 3) = 0x0000000064edc3f3

� a0 ($ 4) = 0x0000000000000091�� a1 ($ 5) = 0x0000000064edc3e0

� a2 ($ 6) = 0x0000000064acacd4�� a3 ($ 7) = 0x0000000000000136

� t0 ($ 8) = 0x000000006594b074�� t1 ($ 9) = 0x000000006594b070

� t2 ($10) = 0x000000006594b06c�� t3 ($11) = 0x000000006594b068

� t4 ($12) = 0x000000006594b064�� t5 ($13) = 0x000000006594b060

� t6 ($14) = 0x000000006594b05c�� t7 ($15) = 0x000000006594b058

� s0 ($16) = 0x0000000000000014�� s1 ($17) = 0x000000000000000a

� s2 ($18) = 0x000000000000000a�� s3 ($19) = 0x0000000000000014

� s4 ($20) = 0x0000000064edc3f8�� s5 ($21) = 0x0000000064edc3f8

� s6 ($22) = 0x0000000064aca8a8�� s7 ($23) = 0x0000000064edc3e0

� t8 ($24) = 0x0000000064edc408�� t9 ($25) = 0x0000000000000000

� k0 ($26) = 0xffffffffbfc003e0�� k1 ($27) = 0x000000000000e100

� gp ($28) = 0x0000000064925ec0�� sp ($29) = 0x0000000064edc3c8

� fp ($30) = 0x000000000000000a�� ra ($31) = 0x00000000627bae64

� lo = 0x0000000000000049, hi = 0x00000000008da720

� pc = 0x00000000627baebc, ll_bit = 0

 

CP0 Registers:

� index����� ($ 0) = 0x0000000000000004�� random���� ($ 1) = 0x0000000000000017

� entry_lo0� ($ 2) = 0x0000000000c80015�� entry_lo1� ($ 3) = 0x0000000000cc0015

� context��� ($ 4) = 0x0000000000000000�� pagemask�� ($ 5) = 0x0000000001ffe000

� wired����� ($ 6) = 0x0000000000000000�� info������ ($ 7) = 0x0000000020000000

� badvaddr�� ($ 8) = 0x0000000000000000�� count����� ($ 9) = 0x000000001aaf138d

� entry_hi�� ($10) = 0x0000000032000001�� compare��� ($11) = 0x000000001ab17871

� status���� ($12) = 0x000000003400e101�� cause����� ($13) = 0x0000000000000000

� epc������� ($14) = 0x0000000060521578�� prid������ ($15) = 0x0000000000002112

� config���� ($16) = 0x0000000000c08ff0�� ll_addr��� ($17) = 0x0000000000000000

� watch_lo�� ($18) = 0x0000000000000000�� watch_hi�� ($19) = 0x0000000000000000

� xcontext�� ($20) = 0x0000000000000000�� cp0_r21��� ($21) = 0x0000000000000000

� cp0_r22��� ($22) = 0x0000000000000000�� cp0_r23��� ($23) = 0x0000000000000000

� cp0_r24��� ($24) = 0x0000000000000000 ��cp0_r25��� ($25) = 0x0000000000000000

� ecc������� ($26) = 0x0000000000000000�� cache_err� ($27) = 0x0000000000000000

� tag_lo���� ($28) = 0x0000000000000000�� tag_hi���� ($29) = 0x0000000000000000

� err_epc��� ($30) = 0x0000000000000000�� cp0_r31��� ($31) = 0x0000000000000000

 

� IRQ count: 1314, IRQ false positives: 1, IRQ Pending: 0

� Timer IRQ count: 1313, pending: 4, timer drift: 0

 

 

MIPS64: unhandled opcode 0x46341000 at 0x627baec4 (ra=0x627bae64)

MIPS64 Registers:

� zr ($ 0) = 0x0000000000000000�� at ($ 1) = 0x0000000040400000

� v0 ($ 2) = 0x0000000000000000�� v1 ($ 3) = 0x0000000064edc3f3

� a0 ($ 4) = 0x0000000000000091�� a1 ($ 5) = 0x0000000064edc3e0

� a2 ($ 6) = 0x0000000064acacd4�� a3 ($ 7) = 0x0000000000000136

� t0 ($ 8) = 0x000000006594b074�� t1 ($ 9) = 0x000000006594b070

� t2 ($10) = 0x000000006594b06c�� t3 ($11) = 0x000000006594b068

� t4 ($12) = 0x000000006594b064�� t5 ($13) = 0x000000006594b060

� t6 ($14) = 0x000000006594b05c�� t7 ($15) = 0x000000006594b058

� s0 ($16) = 0x0000000000000014�� s1 ($17) = 0x000000000000000a

� s2 ($18) = 0x000000000000000a�� s3 ($19) = 0x0000000000000014

� s4 ($20) = 0x0000000064edc3f8�� s5 ($21) = 0x0000000064edc3f8

� s6 ($22) = 0x0000000064aca8a8�� s7 ($23) = 0x0000000064edc3e0

� t8 ($24) = 0x0000000064edc408�� t9 ($25) = 0x0000000000000000

� k0 ($26) = 0xffffffffbfc003e0�� k1 ($27) = 0x000000000000e100

� gp ($28) = 0x0000000064925ec0�� sp ($29) = 0x0000000064edc3c8

� fp ($30) = 0x000000000000000a�� ra ($31) = 0x00000000627bae64

� lo = 0x0000000000000049, hi = 0x00000000008da720

� pc = 0x00000000627baec4, ll_bit = 0

 

CP0 Registers:

� index����� ($ 0) = 0x0000000000000004�� random���� ($ 1) = 0x0000000000000017

� entry_lo0� ($ 2) = 0x0000000000c80015�� entry_lo1� ($ 3) = 0x0000000000cc0015

� context��� ($ 4) = 0x0000000000000000�� pagemask�� ($ 5) = 0x0000000001ffe000

� wired����� ($ 6) = 0x0000000000000000�� info������ ($ 7) = 0x0000000020000000

� badvaddr�� ($ 8) = 0x0000000000000000�� count����� ($ 9) = 0x000000001aaf138d

� entry_hi�� ($10) = 0x0000000032000001�� compare��� ($11) = 0x000000001ab17871

� status���� ($12) = 0x000000003400e101�� cause����� ($13) = 0x0000000000000000

� epc������� ($14) = 0x0000000060521578�� prid������ ($15) = 0x0000000000002112

� config���� ($16) = 0x0000000000c08ff0�� ll_addr��� ($17) = 0x0000000000000000

� watch_lo�� ($18) = 0x0000000000000000�� watch_hi�� ($19) = 0x0000000000000000

� xcontext�� ($20) = 0x0000000000000000�� cp0_r21��� ($21) = 0x0000000000000000

� cp0_r22��� ($22) = 0x0000000000000000�� cp0_r23��� ($23) = 0x0000000000000000

� cp0_r24��� ($24) = 0x0000000000000000�� cp0_r25��� ($25) = 0x0000000000000000

� ecc������� ($26) = 0x0000000000000000�� cache_err� ($27) = 0x0000000000000000

� tag_lo���� ($28) = 0x0000000000000000�� tag_hi���� ($29) = 0x0000000000000000

� err_epc ���($30) = 0x0000000000000000�� cp0_r31��� ($31) = 0x0000000000000000

 

� IRQ count: 1314, IRQ false positives: 1, IRQ Pending: 0

� Timer IRQ count: 1313, pending: 5, timer drift: 0

 

 

Cisco 3640 (R4700) processor (revision 0xFF) with 124928K/6144K bytes of memory.

 

Processor board ID 00000000

R4700 CPU at 100MHz, Implementation 33, Rev 1.2

DRAM configuration is 64 bits wide with parity enabled.

125K bytes of NVRAM.

8192K bytes of processor board System flash (Read/Write)

 

 

 

Press RETURN to get started!

 

<after 5 sec PRESS CNTRL-] i>

 

Please wait while gathering statistics...

Done. Suggested idling PC:

�� 0x606100e8 (count=77)

�� 0x60610168 (count=38)

�� 0x604e0334 (count=64)

�� 0x6055a5f8 (count=78)

�� 0x60555958 (count=76)

�� 0x60555980 (count=59)

�� 0x60555b4c (count=75)

�� 0x60556d9c (count=59)

�� 0x60556dc4 (count=53)

�� 0x60556df0 (count=54)

Restart the emulator with "--idle-pc=0x606100e8" (for example)

 

*Mar� 1 00:00:02.871: %LINK-4-NOMAC: A random default MAC address of 0000.0c02.d

f3b has

� been chosen.� Ensure that this address is unique, or specify MAC

� addresses for commands (such as 'novell routing') that allow the

� use of this address as a default.sslinit fn

 

*Mar� 1 00:00:06.975: %PARSER-4-BADCFG: Unexpected end of configuration file.

 

*Mar� 1 00:00:07.111: %SYS-3-HARIKARI: Process CCSIP_UDP_SOCKET top-level routin

e exited

*Mar� 1 00:00:07.167: %LINEPROTO-5-UPDOWN: Line protocol on Interface VoIP-Null0

, changed state to up

*Mar� 1 00:00:07.175: %LINEPROTO-5-UPDOWN: Line protocol on Interface IPv6-mpls,

�changed state to up

*Mar� 1 00:00:08.035: %SYS-5-RESTART: System restarted --

Cisco IOS Software, 3600 Software (C3640-JK9O3S-M), Version 12.4(5), RELEASE SOF

TWARE (fc3)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2005 by Cisco Systems, Inc.

Compiled Mon 31-Oct-05 21:24 by alnguyen

*Mar� 1 00:00:08.051: %SNMP-5-COLDSTART: SNMP agent on host Router is undergoing

�a cold start

*Mar� 1 00:00:08.147: %SYS-3-HARIKARI: Process CCH323_CT top-level routine exite

d

Router>en

Router#relo

Proceed with reload? [confirm]

 

*Mar� 1 00:00:22.183: %SYS-5-RELOAD: Reload requested by console. Reload Reason:

�Reload Command.

 

ROM: reload requested...

Shutdown in progress...

Shutdown completed.

 

D:\sim>

 

If you get the output similar to provided above, move to dynagen testing

 

 

Testing Dynagen

 

 

  1. In D:\sim create aaa.net file with your favorite text editor:

 

[localhost]

workingdir = d:\sim\

autostart = true

 

[[3640]]

image = d:\sim\c3640-jk9o3s-mz.124-5-uncompressed.bin

ram = 128

disk0 = 64� �����# Set size of PCMCIA ATA disk0

confreg = 0x2102

 

[[ROUTER R1]]

console = 2001

model = 3640

 

If you installed Dynagen correctly you should see this icon in the windows explorer in D:\sim:

 

 

 

  1. Open cmd.exe and run Dynamips in a Hypervisor mode:

 

 

  1. It should pop up another cmd.exe window:

  1. Double click on aaa.net, it should automatically launch Dynagen:

 

 

 

  1. It should pop up the Dynagen window, type list /all there:

 

 

R1 router should be in a running state

 

  1. Meanwhile in the dynamips window you should see booting progress:

 

 

 

  1. Now you can try to telnet to the router from securecrt or from windows telnet, or any other telnet clients:

 

 

 

 

  1. When you get all this working try to follow the steps in article http://www.ccietrack.com/articles/Dynamips_for_Netmasterclass_DOiT_basic_Windows_XP_installation_and_troubleshooting _files/nmc_doit_dynamips.php

 

         Make sure you have enough RAM and a fast processor

         Create a batch file in the D:\sim to run two instances of dynamips:

For example:

 

Dynamips.bat:

 

start /belownormal /min "Dynamips" "dynamips-wxp.exe" -H 7200

start /belownormal /min "Dynamips" "dynamips-wxp.exe" -H 7201

 

It will open two dynamips windows, one will be used for one group of routers and the second one for the other.�

 

 

 

 

home | about us | disclaimer