Cisco 7200 simulator中文使用说明Help for Cisco 7200
Cisco 7200 simulator中文使用说明Help for Cisco 7200simulator (dynamips-0.2.4)
7200 模拟器的帮助文件
Authors: Fabien Devaux, Christophe Fillot, MtvE Emulated hardware
(作者简介)
By default, a NPE-200 is emulated. You can choose the NPE type with the"-t" option. It is
possible to select "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 note that you must use the C7200-IO-FE PA driver as IO card if you want a
FastEthernet interface in slot 0.
请注意如果你想在slot0 模块放置快速以太网口你必须使用“C7200-IO-EF PA”驱动程序
作为IO 卡
For other slots, you must use the PA-FE-TX driver.
如果是其他的slot,你必须使用“PA-FE-TX”的驱动程序
Command Line Options overview
可选择命令行概况
-r <ram_size> : Set the virtual RAM> 设置虚拟RAM 的大小(缺省256M)
-o <rom_size> : Set the virtual ROM> 设置虚拟ROM 大小(缺省值4M)
-n <nvram_size> : Set the NVRAM> 设置NVRAM 大小(缺省128K)
-l <log_file> : Set logging file (default is pred_log0.txt)
设置登陆文件(默认pred_log0.txt),开启模拟器后,在模拟器文件夹可以看到这个文件
-C <cfg_file> : Import an IOS configuration file into NVRAM
输入一个IOS 配置文件进NVRAM
-X : Do not use a file to simulate RAM (faster)
不使用文件模拟RAM(更快)————刀哥给的配置就是这个选择
-R <rom_file> : Load an> 加载一个备用ROM (默认被插入)
-S <sym_file> : Load a symbol file
加载一个象征文件
-c <conf_reg> : Set the configuration register (default is 0x2102)
设置配置寄存器(默认0x2102)
-m <mac_addr> : Set the MAC address of 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)
基于TCP 的AUX 控制
-i : Instruction block trace, very slow
阻塞路径说明,完全展现
-j : Disable the JIT compiler, very slow
禁用just in time 编译
-t <npe_type> : Select NPE type
选择NPE 类型
-M <midplane> : Select Midplane ("std" or "vxr")
选择中平面
-p <pa_desc> : Define a Port Adapter
定义一个端口适配器
-s <pa_nio> : Bind a Network IO interface to a Port Adapter
绑定一个网络接口到端口适配器
-a <cfg_file> : Virtual ATM switch configuration file
虚拟ATM 交换机配置文件
-f <cfg_file> : Virtual Frame> 虚拟帧中继交换配置文件
-b <cfg_file> : Virtual bridge configuration file
虚拟桥接配置文件
-e : Show network device list of the host machine
show 主要机器的网络设备表(针对网卡的具体参数)
Command Line Options details (选择命令详细表)
<clock_div> : Specify the clock divider (integer) based on the host clock.> match the CISCO clock with the real time.
基于主机时钟指定时钟分离器,于真实时间一起改成适合cisco 的数值。
The command "show clock" at the IOS' CLI will help you set this value.
在IOS 命令行中的命令show clock 将帮助你设置这个参数
<pa_desc> : Format: slot:pa_driver: netio_type[:netio_parameters]
格式:slot:pa_driver:netio_type【netio 参数】
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 0 only)
- PA-FE-TX (FastEthernet, slots 1 to 6)
- 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 the physical slot (starts from 0)
port : the port in the specified slot (starts from 0)
netio_type : host interface for communication
netio_type: 通信主机接口
unix:<local_sock>:<remote_sock>
unix:本地接口:远程接口
Use unix sockets 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 for communication.
Tap: 为通信使用一个虚拟以太网设备
<tap_name> is the name of the tap device (ex. "tap0")
gen_eth:<dev_name> Use a real ethernet device for communication, using libpcap 0.9 or
WinPcap.Works onWindows and Unix systems.
Gen_eth :为通信使用一个真正的以太网设备,使用在windows 和unix 平台的libpcap0.9
或者winpcao 中
<dev_name> is the name of the Ethernet device (ex. "eth0")
The device list can be found using the "-e" option.
Dev_name 是以太网设备的名称,可以使用-e 命令列出来
linux_eth:<dev_name> Use a real ethernet device for communication (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 UDP socket 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 connect to.
<remote_port> is the port you want to connect to.
(ex. "1000:somehost:2000" and "2000:otherhost:1000" on the other side)
例如:udp:10000:127.0.0.1:20000 -p
tcp_cli:<host>:<port> Client side of a tcp connection.
<host> is the ip address of the server.
<port> is the 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 for testing/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 will be shown. Note: on Windows, it may be the "Ctrl +
$" sequence.
如果你输入一个未知键,将被认为是帮助,注意:在win 中有可能是Ctrl + $语句
Virtual Bridge 虚拟桥接
The virtual bridge is used to emulate a shared network between emulator
instances.Any emulator instance can ast as a virtual bridge.
虚拟桥接被用来在模拟器之间模拟一个共享网络
例如:任何模拟器可以被当作一个虚拟的桥接
The configuration file (specified by the "-b" option) contains a list of NetIO descriptors, which the
following 配置文件(-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 with the 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 to emulate an ATM backbone between
emulator instances. The use of this virtual switch is not mandatory, you
can directly connect emulator instances for point-to-point ATM connections.
Please note that only basic VP/VC switching is supported, there is no
support for ILMI/QSAAL/... or other specific ATM protocols.
虚拟ATM 交换机过去习惯被模拟成一个在模拟器设备之间的ATM 骨干网。虚拟交换机的
使用不是强制的,你可以直接把模拟器直接成点对点的ATM连接。请注意,仅仅基础VP/VCb
被模拟器支持,对于其他的ATM 协议并不支持。
Any emulator instance can act as a virtual ATM switch.
模拟器可以被当作一台虚拟ATM 交换机
Example of configuration file (specified by the "-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 virtual interfaces, A0, A1 and A2. The syntax
for interface definition is similar to Port Adapters:
在这个例子中,有三个虚拟接口,A0,A1,A2。
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 one dynamips 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 to a1/vpi=2/vci=200
VC:A0:1:100:A1:2:200
VC:A1:2:200:A0:1:100
Invoking dynamips:
./dynamips -p 1:PA-A1:udp:10001:127.0.0.1:10003 -p 2:PA-A1:udp:10002:127.0.0.1:10004 -a
atm.cfg IOS.BIN
(note input ports of IOS interfaces are output ports of ATM switch
interfaces, and vice versa).
IOS configuration:
ip cef
ip vrf test
rd 1:1
route-target both 1:1
int a1/0
no shut
int a1/0.2 p
ip addr 1.1.1.1 255.255.255.0
pvc 1/100
interface a2/0
no shut
interface a2/0.2 p
ip vrf forwarding test
ip addr 1.1.1.2 255.255.255.0
pvc 2/200
!
# ping 1.1.1.2
!!!!!
Virtual Frame-Relay switch 虚拟帧中继交换机
**************************
The virtual Frame-Relay switch fabric is used to emulate a Frame-Relay
backbone between emulator instances. The use of this virtual switch is not
mandatory, you can directly connect emulator instances with appropriate IOS
configuration.
虚拟帧中继交换机构造过去习惯于被模拟成一个模拟器之间的帧中继骨干。虚拟交换机的使
用不是强制的,你可以用适合的IOS 直接连接模拟器设备
Any emulator instance can act as a virtual Frame-Relay switch.
任何模拟器可以当作成一个虚拟帧中继交换机
There is only a basic implementation of the LMI protocol (ANSI Annex D), which isprobably not
conforming but works with Cisco IOS. Fortunately, Cisco IOS is able to detect automatically the
LMI protocol.
这儿仅仅有一个基础的LMI 协议设备,这样的设备不可能一致但是却能用IOS 工作,幸运
的是,cisco IOS 能自动选择LMI 协议
Example of configuration file (specified by the "-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 virtual interfaces, S0 and S1. The syntax for interface definition is
similar to Port Adapters:
在这个例子中,有两个虚拟接口,s0 和s1。端口定义的构造与端口适配器很接近。
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 configured to switch packets received on interface S0 with
DLCI 200 to interface S1 with DLCI 100, and vice-versa.
在上面的例子中,交换机被配置为被接收到的包——从DLCI200 的s0 接口到DLCI 100 的
S1 接口,反之亦然。
== EOF ==
页:
[1]