找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 9797|回复: 18

pc 机器上运行 CISCO 7200 转贴

[复制链接]
发表于 2006-3-1 14:15:15 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
原帖地址  http://www.ipflow.utc.fr/index.p ... ator#Current_status  

Cisco 7200 Simulator
From IPFlow Netflow Collector
Table of contents [showhide]  
1 Introduction

2 Current status

3 Contributors are welcome !

4 Download

5 How to use it ?

6 Questions & Answers

[edit]Introduction
I started recently (August 2005) a project to emulate a Cisco 7200 on a traditionnal PC. This kind of emulator would be useful to:

Be used as a training platform, with software used in real world. It would allow people to become more familiar with Cisco devices, Cisco being the world leader in networking technologies ;
Test and experiment features of Cisco IOS ;
Check quickly configurations to be deployed later on real routers.

Of course, this emulator cannot replace a real router, it is simply a complementary tool to real labs for administrators of Cisco networks or people wanting to pass their CCNA/CCNP/CCIE exams.




[edit]Current status
At this time, the emulator I have programmed is able to boot a large number of Cisco IOS releases available for the 7200 platform, including the latest 12.2S and 12.4.

The following devices are emulated in the current release (0.2.4):

MIPS64 CPU processor. The instruction set is not completely emulated now (FPU support is lacking, TLB support is not finished and other minor things), but it is sufficient for IOS ;
DRAM and Packet SRAM memory ;
Non-Volatile Memory (NVRAM) ;
Signetics SCN 2681 DUART (Console and AUX ports);
Dallas DS1620 Temperature Sensors and Voltage Sensors, allowing the Environmental Monitor to work properly ;
NMC93C46 Serial EEPROM ;
Bootflash of 8 Mb (Intel 28F016SA) ;
I/O and Midplane FPGA specific to the C7200 platform ;
Basic Galileo GT64010/GT64120 PCI controller, DEC 21x50 PCI bridges and so.
Ethernet cards "C7200-IO-FE" and "A-FE-TX" based on DEC21140 chip ;
ATM card "A-A1" based on Texas Instruments Tneta1570 chip ;
Serial cards "A-4T+" and "PA-8T"

New features in 0.2.4:

Serial interface support to allow use of PPP/HDLC/Frame-Relay encapsulations
Virtual Frame-Relay switch with basic LMI support (ANSI Annex D)

You can also get some tips/development info... on my technical blog (http://www.ipflow.utc.fr/blog).

To run at a decent speed, the emulator uses a JIT (Just In Time) compiler, which is working on x86 CPU (like Pentium) and x86_64 CPU (AMD64/Intel EM64T). It is also possible to run the emulator without the JIT support on non-x86 machines, but it is slower.

You can find some information about the C7200 hardware on the Cisco Web site (http://www.cisco.com/en/US/produ ... 6a00800942e0.shtml)




[edit]Contributors are welcome !
For people interested to contribute there is a TODO List.




[edit]Download
The current release is 0.2.4, published Feb 14, 2006 (you can consult the README file (http://www.ipflow.utc.fr/dynamips/README-0.2.4.txt)).

You have to download only one binary file corresponding to your architecture:

Executable for Linux/x86 (http://www.ipflow.utc.fr/dynamips/dynamips-0.2.4-x86.bin)
Executable for Linux/x86_64 (AMD64 and EM64T) (http://www.ipflow.utc.fr/dynamips/dynamips-0.2.4-amd64.bin)
Executable for Windows (with Cygwin DLL) (http://www.ipflow.utc.fr/dynamips/dynamips-0.2.4-cygwin.zip)

If you are using the Windows version, you have to download and install the WinPcap library (http://www.winpcap.org/). It is now possible to access the Ethernet card of host machine to send/receive packets on the LAN.


You can also download the source code, published under the GNU General Public Licence (GPL):

The source code of release v0.2.4 (http://www.ipflow.utc.fr/dynamips/dynamips-0.2.4.tar.gz)

Remark: the sources include 3 files which are not written by me: pcireg.h from NetBSD (http://www.netbsd.org) (under BSD licence), amd64-codegen.h and x86-codegen.h from the Mono project (http://www.mono-project.com), under GPL licence. Of course these files keep their licences and their copyrights.




[edit]How to use it ?
To boot quickly, the preferred method is to decompress the IOS image with the "unzip" utility. It avoids to run the self-decompressing process in the emulator.

chris@portchris2:~/mipsemu$ unzip -p c7200-g6ik8s-mz.124-2.T1.bin > image.bin
warning [c7200-g6ik8s-mz.124-2.T1.bin]:  27872 extra bytes at beginning or within zipfile
  (attempting to process anyway)
chris@portchris2:~/mipsemu$ file image.bin
image.bin: ELF 32-bit MSB executable, cisco 7200, version 1 (SYSV), statically linked, stripped
You can ignore the warning, unzip has just skipped the self-decompressing code at the beginning of the image.

Now, you can boot the image:

chris@portchris2:~/dynamips-0.2.4$ ./dynamips image.bin -t npe-400 -p 0:C7200-IO-FE -s 0:0:udp:10000:127.0.0.1:10001 -p 1A-A1 -s 1:0:udp:10002:127.0.0.1:10003 -p 2A-8T -s 2:1:udp:10004:127.0.0.1:10005
Cisco 7200 Simulation Platform (version 0.2.4-x86)
Copyright (c) 2005,2006 Christophe Fillot.

IOS image file: image.bin

C7200: Warning, no MAC address set.

CPU0 Device list:
   ram            : 0x000000000000 (0x10000000)
   rom            : 0x00001fc00000 (0x00400000)
   remote_ctrl    : 0x000011000000 (0x00001000)
   bootflash      : 0x00001a000000 (0x00800000)
   nvram          : 0x00001e000000 (0x00020000)
   zero           : 0x00001f000000 (0x00c00000)
   mp_fpga        : 0x00001e800000 (0x00001000)
   io_fpga        : 0x00001e840000 (0x00001000)
   pci_io         : 0x000100000000 (0x00200000)
   gt64120        : 0x000014000000 (0x00001000)
   PA-8T(2)       : 0x00004d000000 (0x00004000)
   PA-8T(2)       : 0x00004d020000 (0x00004000)
   PA-A1(1)       : 0x000048800000 (0x00800000)
   C7200-IO-FE(0) : 0x000048000000 (0x00800000)

PCI Bus "MB0/MB1" Device list:
   clpd6729       : ID 1013:1100, Bus  2, Dev. 16, Func.  0
   C7200-IO-FE(0) : ID 1011:0009, Bus  1, Dev.  0, Func.  0, IRQ: 2
   PA-A1(1)       : ID 10b5:906e, Bus  5, Dev.  1, Func.  0, IRQ: 2
   PA-A1(1)       : ID 104c:a001, Bus  5, Dev.  0, Func.  0, IRQ: 2
   dec21150       : ID 1011:0023, Bus  0, Dev.  9, Func.  0
   dec21150       : ID 1011:0023, Bus  0, Dev.  8, Func.  0
   dec21150       : ID 1011:0023, Bus  0, Dev.  7, Func.  0
   dec21050       : ID 1011:0001, Bus  0, Dev.  1, Func.  0
   gt64120        : ID 11ab:4620, Bus  0, Dev.  0, Func.  0, IRQ: 4

PCI Bus "MB2" Device list:
   PA-8T(2)       : ID 1137:0001, Bus 11, Dev.  1, Func.  0, IRQ: 2
   PA-8T(2)       : ID 1137:0001, Bus 11, Dev.  0, Func.  0, IRQ: 2
   dec21150       : ID 1011:0023, Bus  0, Dev.  9, Func.  0
   dec21150       : ID 1011:0023, Bus  0, Dev.  8, Func.  0
   dec21150       : ID 1011:0023, Bus  0, Dev.  7, Func.  0

Loading ELF file '../C7200-P-.BIN'...
   * Adding section at virtual address 0x80008000
ELF entry point: 0x80008000

Starting simulation (CPU0 PC=0xffffffffbfc00000), JIT is enabled.
Cisco 7200 (Predator) ROMMON emulation microcode.

Launching IOS image at 0x80008000...

              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, 7200 Software (C7200-P-M), Version 12.2(25)S7, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Fri 28-Oct-05 09:12 by pwade
Image text-base: 0x60008DE0, data-base: 0x6183A000

Cisco 7206VXR (NPE400) processor (revision A) with 229376K/32768K bytes of memory.
Processor board ID 4294967295
R4600 CPU at 100Mhz, Implementation 32, Rev 1.2
6 slot VXR midplane, Version 2.1

Last reset from power-on

PCI bus mb0_mb1 (Slots 0, 1, 3 and 5) has a capacity of 600 bandwidth points.
Current configuration on bus mb0_mb1 has a total of 500 bandwidth points.
This configuration is within the PCI bus capacity and is supported.

PCI bus mb2 (Slots 2, 4, 6) has a capacity of 600 bandwidth points.
Current configuration on bus mb2 has a total of 0 bandwidth points
This configuration is within the PCI bus capacity and is supported.

Please refer to the following document "Cisco 7200 Series Port
Adaptor Hardware Configuration Guidelines" on CCO ,
for c7200 bandwidth points oversubscription/usage guidelines.


1 FastEthernet interface
8 Serial interfaces
1 ATM interface
125K bytes of NVRAM.

8192K bytes of Flash internal SIMM (Sector size 256K).


Press RETURN to get started!
routeros
发表于 2006-3-1 18:06:10 | 显示全部楼层
看不太懂
routeros
回复

使用道具 举报

发表于 2006-3-2 08:14:18 | 显示全部楼层
有时间试试
routeros
回复

使用道具 举报

发表于 2006-3-2 21:01:14 | 显示全部楼层
7200 IOS IMAGE 在哪里下载?
routeros
回复

使用道具 举报

发表于 2006-3-3 08:15:44 | 显示全部楼层
cisco网站
routeros
回复

使用道具 举报

发表于 2006-3-21 17:06:58 | 显示全部楼层
这个好,我得试试。这两天翻译一下传上来。好玩呀。
routeros
回复

使用道具 举报

发表于 2006-3-22 16:35:59 | 显示全部楼层
试过了,什么命令都可以模拟,可惜有点耗资源,同一台机器模拟多个7200,机器会吃不消
routeros
回复

使用道具 举报

发表于 2006-3-22 18:45:55 | 显示全部楼层
谁能将IOS Image放出来,谢谢。
routeros
回复

使用道具 举报

发表于 2006-3-22 22:53:36 | 显示全部楼层
有没有实际应用,,
routeros
回复

使用道具 举报

发表于 2006-3-31 00:36:51 | 显示全部楼层
Win系统下如何做,具体步骤那位能给说一下?
多谢
routeros
回复

使用道具 举报

发表于 2006-4-17 23:02:11 | 显示全部楼层
同台计算机模拟的多台7200之间是否可以互联或者有什么方法可以连接外部设备?

那位兄弟知道?否则只是一台的话就没什么意义了。
routeros
回复

使用道具 举报

发表于 2006-4-18 20:59:48 | 显示全部楼层

回复 #11 hlf 的帖子

当然可以互联了,但是我还不知道怎么模拟WINDOWS客户端与路由器
routeros
回复

使用道具 举报

发表于 2006-4-19 22:53:47 | 显示全部楼层
在winXP,和win2000下试了,非常占用资源。

C7206VXR#sh ver
Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(4)T1, RELEASE SOFTWARE (f
c4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Wed 21-Dec-05 22:58 by ccai

ROM: ROMMON Emulation Microcode
BOOTLDR: ROMMON
C7206VXR uptime is 2 minutes
System returned to ROM by unknown reload cause - suspect boot_data[BOOT_COUNT] 0x0, BOOT_COUNT 0, B
OOTDATA 19
System image file is "tftp://255.255.255.255/unknown"


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.

Cisco 7206VXR (NPE400) processor (revision A) with 229376K/32768K bytes of memory.
Processor board ID 4294967295
R4600 CPU at 100MHz, Implementation 32, Rev 1.2
6 slot VXR midplane, Version 2.1

Last reset from power-on

PCI bus mb0_mb1 (Slots 0, 1, 3 and 5) has a capacity of 600 bandwidth points.
Current configuration on bus mb0_mb1 has a total of 400 bandwidth points.
This configuration is within the PCI bus capacity and is supported.

PCI bus mb2 (Slots 2, 4, 6) has a capacity of 600 bandwidth points.
Current configuration on bus mb2 has a total of 0 bandwidth points
This configuration is within the PCI bus capacity and is supported.

Please refer to the following document "Cisco 7200 Series Port Adaptor
Hardware Configuration Guidelines" on Cisco.com
for c7200 bandwidth points oversubscription and usage guidelines.


2 FastEthernet interfaces
8 Serial interfaces
125K bytes of NVRAM.

8192K bytes of Flash internal SIMM (Sector size 256K).
Configuration register is 0x2102 (will be 0xDEFD at next reload)

我看介绍有的说可以互联,有的说不行。设了IP但ping不通外部实际设备。我在启动命令中只加载了三个模块和引擎,是否还要加载其它选项才能互通?
routeros
回复

使用道具 举报

发表于 2006-5-15 07:57:27 | 显示全部楼层
还是能ping通外部设备的.启动时加上如下参数:
-p 0:C7200-IO-FE -s 0:0:gen_eth:"\Device\NPF_{D7CBC7BB-8CB9-473D-9516-FB9DCFA28805}"
其中双引号内的内容可以用:
dynamips -e
得到,每个网卡是不同的
routeros
回复

使用道具 举报

发表于 2006-6-3 14:34:16 | 显示全部楼层
在FreeBSD下运行也很占资源.
routeros
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-11-23 10:08 , Processed in 0.064071 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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