加入收藏 设为首页 联系站长
首页 | 虚拟动态 | Cisco模拟 | Juniper仿真 | 虚拟机 | 网络仿真 | 软件路由 | 技术专题 | 相关软件 | 交流论坛
>首页 -> Cisco模拟 -> Dynamips

TOP

Cisco 7200 simulator 官方帮助中文版
[ 录入者:admin | 时间:2007-10-27 14:59:00 | 作者: | 来源: | 浏览:990次 ]
由伤寒2005翻译的官方帮助,大家可以在参考EN文时看看。

Help for Cisco7200 simulator (dynamips-0.2.4)
7200模拟器的帮助文件


Authors: FabienDevaux, Christophe Fillot, MtvE
Emulatedhardware
(作者简介)


By default, aNPE-200 is emulated. You can choose the NPE type with the"-t" option.It is
possible toselect "npe-100", "npe-150", "npe-175","npe-200", "npe-225", "npe-300" and"npe-400". The "npe-g1" is not working.
缺省情况下,NPE-200被模仿。你可以通过“-t”选择NPE形式。"npe-100", "npe-150","npe-175", "npe-200", "npe-225","npe-300" and "npe-400"等等这些形式都可以选择。注意:“NEP-g1”模式不可实现。
Please notethat you must use the C7200-IO-FE PA driver as IO card if you want aFastEthernet interface in slot 0.
请注意如果你想在slot0模块放置快速以太网口你必须使用 “C7200-IO-EF PA”驱动程序
作为IO
For other slots, you must use the PA-FE-TXdriver.

如果是其他的slot,你必须使用“PA-FE-TX”的驱动程序
Command Line Optionsoverview

可选择命令行概况
-r<ram_size>
: Set the virtual RAMsize (default is 256 Mb)

设置虚拟RAM的大小(缺省256M
-o<rom_size>
: Set the virtual ROMsize (default is 4 Mb)


设置虚拟ROM大小(缺省值4M
-n<nvram_size> : Set the NVRAM size (default is 128 Kb)

设置NVRAM大小(缺省128K
-l<log_file>
: Set logging file(default is pred_log0.txt)
设置登陆文件(默认pred_log0.txt,开启模拟器后,在模拟器文件夹可以看到这个文件
-C<cfg_file>
: Import an IOSconfiguration file into NVRAM


输入一个IOS配置文件进NVRAM
-X
: Do not use a file to simulateRAM (faster)


不使用文件模拟RAM(更快)————刀哥给的配置就是这个选择
-R<rom_file>
: Load an alternateROM (default is embedded)

加载一个备用ROM (默认被插入)
-S<sym_file>
: Load a symbol file


加载一个象征文件
-c<conf_reg>
: Set theconfiguration register (default is 0x2102)


设置配置寄存器(默认0x2102
-m<mac_addr>
: Set the MAC addressof the chassis (IOS chooses default)

设置底部MAC地址的(IOS选择默认)
-k<clock_div>
: Set the clock divisor(default is 2)

设置时钟数(默认2s
-T<port>
: Console is on TCP<port> (default is on the terminal)

基于TCP的控制台 (默认
在终端)
-A<port>
: AUX is on TCP<port> (default is no AUX port)

基于TCPAUX控制
-i

: Instruction block trace, veryslow

阻塞路径说明,完全展现
-j
: Disable the JIT compiler, veryslow


禁用just in time 编译
-t<npe_type>
: Select NPE type

选择NPE类型
-M<midplane>
: Select Midplane("std" or "vxr")

选择中平面
-p<pa_desc>
: Define a PortAdapter

定义一个端口适配器
-s<pa_nio>
: Bind a Network IOinterface to a Port Adapter

绑定一个网络接口到端口适配器
-a<cfg_file>
: Virtual ATM switchconfiguration file



虚拟ATM交换机配置文件
-f<cfg_file>
: Virtual Frame relayswitch configuration file

虚拟帧中继交换配置文件
-b<cfg_file>
: Virtual bridgeconfiguration file


虚拟桥接配置文件
-e
: Show network device list of thehost machine


show主要机器的网络设备表(针对网卡的具体参数)

Command Line Optionsdetails
(选择命令详细表)

<clock_div> :
Specify the clock divider (integer) based onthe host clock.
Alter the value to matchthe CISCO clock with the real time.
基于主机时钟指定时钟分离器,于真实时间一起改成适合cisco的数值。
The command"show clock" at the IOS' CLI will help you set this value.
IOS命令行中的命令showclock将帮助你设置这个参数
<pa_desc>:
Format: slot:pa_driver:netio_type[:netio_parameters]


格式:slotpa_driver:netio_typenetio参数】
slot
: the number of the physical slot(starts from 0)

物理slot的数字
pa_driver
: the name of a port adapter driver in:

端口适配驱动器的名字

-C7200-IO-FE
(FastEthernet, slot 0only)


-PA-FE-TX
(FastEthernet, slots 1 to6)


-PA-4T+
(Serial, 4 ports)


-PA-8T
(Serial, 8 ports)


-PA-A1
(ATM)

<pa_nio> :
Format:slot:port:netio_type[:netio_parameters]


slot
: the number of thephysical slot (starts from 0)

port
: the port in thespecified slot (starts from 0)
netio_type :host interface for communication

netio_type:
通信主机接口

unix:<local_sock>:<remote_sock>


unix:本地接口:远程接口

Use unixsockets for local communication.


本地通信使用unix接口


<local_sock> is created and represents the local NIC.


本地接口创造并表现的本地网卡上
<remote_sock>is the file used by the other interface.
远程接口是被其他接口所使用的文件

(ex. "/tmp/local:/tmp/remote")

tap:<tap_name>
Use a virtual ethernet device forcommunication.
Tap
为通信使用一个虚拟以太网设备


<tap_name> is the name of the tap device (ex."tap0")

gen_eth:<dev_name>
Use a real ethernet device forcommunication, using libpcap 0.9 or WinPcap. Works on Windows and Unixsystems.

Gen_eth :为通信使用一个真正的以太网设备,使用在windowsunix平台的libpcap0.9或者winpcao

<dev_name>is the name of the Ethernet device (ex. "eth0")

The device listcan be found using the "-e" option.

Dev_name是以太网设备的名称,可以使用-e命令列出来



linux_eth:<dev_name>
Use a real ethernet device forcommunication (Linux specific).

<dev_name>is the name of the Ethernet device (ex. "eth0")


linux_eth:<dev_name>:为通信使用这个真正的以太网设备
dev-name是以太网设备的名字

udp:<local_port>:<remote_host>:<remote_port>

Use an UDPsocket for connection between remote instances.

Udp
:本地端口:远程主机:远程端口

<local_port> is the port we listen to.


<remote_host> is the host listening the port you want to connectto.

<remote_port> is the port you want to connect to.


(ex."1000:somehost:2000" and "2000:otherhost:1000" on the otherside)

例如:udp10000127.0.0.120000p

tcp_cli:<host>:<port>

Client side of a tcpconnection.


<host> is the ip address of the server.

<port> isthe port to connect to.

Tcp_cli:<主机><端口>
一个tcp连接的客户端
主机是服务器的ip地址
端口是连接的端口

tcp_ser:<port>
Server side of a tcp connection.


<port> is the port to listen to.

null
Dummy netio (used fortesting/debugging), no parameters needed.
Tcp_ser<prot>
Tcp
连接的服务器端
Null
虚拟netio(为测试和除错用),没有参数

Escape commands
退出命令




You can press
Ctrl +]
anytime,followed by one of these characters:

你可以在任何时候在这些关键字后面更Ctrl +]
d : Show the device list
show设备清单
r : Dump MIPS CPU registers
卸掉MIPS CPU寄存器
t : Dump MIPS TLB entries

m : Dump the latest memory accesses

s : Suspend CPU emulation
延缓CPU竞争
u : Resume CPU emulation
恢复CPU竞争
q : Quit the emulator
离开CPU竞争
b : Dump the instruction block tree
卸掉阻塞路径指令
h : JIT hash table statistics

c : Write IOS configuration to disk(ios_cfg.txt)

向盘写入IOS配置
j : Non-JIT mode statistics

x : Experimentations (can crash the box!)
^]: Send ^]
If you press an unrecognized key, help willbe shown.
Note: on Windows, it may bethe "Ctrl + $" sequence.
如果你输入一个未知键,将被认为是帮助,注意:在win中有可能是Ctrl + $语句


Virtual Bridge
虚拟桥接
The virtual bridge is used to emulate ashared network between emulator
instances.Any emulator instance can ast asa virtual bridge.
虚拟桥接被用来在模拟器之间模拟一个共享网络
例如:任何模拟器可以被当作一个虚拟的桥接
The configuration file (specified by the"-b" option) contains a list of NetIO descriptors, which thefollowing

配置文件(-b命令可以列出)包括一个netIO描述符列表,如下
syntax: netio_type[:netio_parameters]

语法:netio-type
Example:
# Connection to instance "I0"
连接I0
udp:10000:127.0.0.1:10001
# Connection to instance "I1"
udp:10002:127.0.0.1:10003

# Connection to instance "I2"
udp:10004:127.0.0.1:10005

The "I0" would be launched withthe following parameters:
I0将以下面的参数开始


dynamips ios.bin -p 1:PA-FE-TX:udp:10001:127.0.0.1:10000


Virtual ATM switch
虚拟ATM交换机
******************

The virtual ATM switch fabric is used toemulate an ATM backbone between
emulator instances. The use of this virtualswitch is not mandatory, you
can directly connect emulator instances forpoint-to-point ATM connections.
Please note that only basic VP/VC switchingis supported, there is no
support for ILMI/QSAAL/... or otherspecific ATM protocols.
虚拟ATM交换机过去习惯被模拟成一个在模拟器设备之间的ATM骨干网。虚拟交换机的使用不是强制的,你可以直接把模拟器直接成点对点的ATM连接。请注意,仅仅基础VP/VCb被模拟器支持,对于其他的ATM协议并不支持。
Any emulator instance can act as a virtualATM switch.
模拟器可以被当作一台虚拟ATM交换机
Example of configuration file (specified bythe "-a" option):
配置实例(-a命令可以列举出)
# Virtual Interface List
IF:A0:udp:10001:127.0.0.1:10000
IF:A1:udp:10002:127.0.0.1:10003
IF:A2:udp:10004:127.0.0.1:10005

# VP connection between I0 and I1
VP:A0:10:A1:20
VP:A1:20:A0:10

# VP connection between I0 and I2
VP:A0:11:A2:30
VP:A2:30:A0:11

# VC connection between I1 and I2
VC:A1:5:2:A2:7:3
VC:A2:7:3:A1:5:2

In this example, we have 3 virtualinterfaces, A0, A1 and A2. The syntax
for interface definition is similar to PortAdapters:
在这个例子中,有三个虚拟接口,A0A1A2

IF:interface_name:netio_type[:netio_parameters]

You can do VP switching or VC switching:
你还能做VP交换或者VC交换
1) VP switching

syntax:VP:input_if:input_vpi:output_if:output_vpi

2) VC switching

syntax: VC:input_if:input_vpi:input_vci:output_if:output_vpi:output_vci


Testing the Virtual ATM switch with onedynamips instance
*********************************************************
(Contribution of Mtv Europe)

Virtual ATM switch configuration file("atm.cfg"):

IF:A0:udp:10003:127.0.0.1:10001
IF:A1:udp:10004:127.0.0.1:10002

# a0/vpi=1/vci=100 connects toa1/vpi=2/vci=200
VC:A0:1:100:A1:2:200

VC:A1:2:200:A0:1:100

Invoking dynamips:

./dynamips -p1:PA-A1:udp:10001:127.0.0.1:10003 -p 2:PA-A1:udp:10002:127.0.0.1:10004 -aatm.cfg IOS.BIN

(note input ports of IOS interfaces areoutput ports of ATM switch
interfaces, and vice versa).

IOS configuration:

ip cef
ip vrf test

rd1:1

route-targetboth 1:1
int a1/0

noshut
int a1/0.2 p

ipaddr 1.1.1.1 255.255.255.0

pvc1/100
interface a2/0

noshut
interface a2/0.2 p

ipvrf forwarding test

ipaddr 1.1.1.2 255.255.255.0

pvc2/200
!

# ping 1.1.1.2
!!!!!


Virtual Frame-Relay switch
虚拟帧中继交换机
**************************

The virtual Frame-Relay switch fabric isused to emulate a Frame-Relay
backbone between emulator instances. Theuse of this virtual switch is not
mandatory, you can directly connectemulator instances with appropriate IOS
configuration.
虚拟帧中继交换机构造过去习惯于被模拟成一个模拟器之间的帧中继骨干。虚拟交换机的使用不是强制的,你可以用适合的IOS直接连接模拟器设备
Any emulator instance can act as a virtualFrame-Relay switch.
任何模拟器可以当作成一个虚拟帧中继交换机
There is only a basic implementation of theLMI protocol (ANSI Annex D), which isprobably not conforming but works withCisco IOS. Fortunately, Cisco IOS
isable to detect automatically the LMI protocol.
这儿仅仅有一个基础的LMI协议设备,这样的设备不可能一致但是却能用IOS工作,幸运的是,cisco IOS能自动选择LMI协议
Example of configuration file (specified bythe "-f" option):
配置例子
# Virtual Interface List
IF:S0:udp:10001:127.0.0.1:10000
IF:S1:udp:10002:127.0.0.1:10003

# DLCI switching between S0 and S1
VC:S0:200:S1:100
VC:S1:100:S0:200

In this example, we have 2 virtualinterfaces, S0 and S1. The syntax for interface definition is similar to PortAdapters:
在这个例子中,有两个虚拟接口,s0s1。端口定义的构造与端口适配器很接近。

IF:interface_name:netio_type[:netio_parameters]

IF:接口名称
DLCI switching syntax:
DLCI交换构造

VC:input_if:input_dlci:output_if:output_dlci

VC:进入接口:进入_DLCI 出口接口:出口_DLCI
In the example above, the switch is configuredto switch packets received on interface S0 with DLCI 200 to interface S1 withDLCI 100, and vice-versa.
在上面的例子中,交换机被配置为被接收到的包——从DLCI200s0接口到DLCI100S1接口,反之亦然。

[上一篇]linux as4 dynamips+dynagen安装.. [下一篇]dynamips 0.2.8 支持的模块
※相关文章
 

评论

称  呼:
内  容:

相关栏目

最新文章

热门文章

推荐文章

赞助商链接