<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

 

       这时,***的第一篇,所以先介绍哈使用的软件。工欲善其事,必先利其器嘛。今天第一更!

      

Dynamips Cisco路由器模拟软件,支持17xx26xx36xx7200Cisco路由器系列。它是在计算机上模拟路由器硬件,并在虚拟路由器中运行真实的IOS。因此,从逻辑上看用户面对的就是真正的Cisco路由器。Dynamips几乎可以完成CCNACCNPCCSPCCIPCCIE所有的路由试验。

Dynamips 模拟器分为两个版本:winxp版和win2k版,本软件包仅提供win xp系统的bat文件,win 2000用户请将bat文件中的dynamips-wxp.exe替换成dynamips-w2000.exe。(备注: win2003视同winxp

Dynagen 是一款基于字符界面的、使用Python开发的Dynamips管理前端,也就是说可以通过它更好地使用DynamipsDynagen通过更友好的操作简化了Dynamips的配置和网络拓朴的实现。

DynamipsGUI 2.7 的是一个比较稳定版本,cisco交换系列:2935,路由系列:252636,我们可以用3620做路由实验,利用3640插交换模块做交换实验。

 

这个是我们本次实验的拓扑图:

<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />

 

按照拓扑图上的选择设备型号:

选择 “计算idle

注:计算idle-pc(idle-pc只为了解决在开启模拟设备时不至于你的CPU占有率达到100%,所以这个值对于能做好实验很重要)

按任意键继续,之后看到的就是设备的启动了(如同真实设备一样).然后在设备的用户模式下Router> 先按组合键ctrl+],接着在单独按i

记住不要三个键一起按.按完以后就是等待了。

建议:多进行几次计算,找出每次都出现的idle值(这个值是16进制的那个值)进行测试 我在实验时用的count那个值是错误的哦,因为每次count值前的16进制值是不一样的。(在一切配置完后启动设备,打开任务管理器看CPU的占用情况,如不满意可修改 .bat文件中的idle值,至到CPU的占用率让你满意为止。正常情况下cpu占用率在10%以下。)

 

寄存器

接下来就如配置真实路由器一样进入特权模式,然后再进入全局配置模式以配置寄存器值。 因为dynamips默认值是0x2142,这样设备启动时是不从NVRAM读配置,所以我们需要在这个地方改为0x2102

全局配置模式下命令为:config-register 0x2102

然后在特权模式下用copy run start进行保存,再关闭窗口。

 

虚拟RAM:

接下接受默认的NPE类型和虚拟内存值,然后点击“确定”按钮完成设备7200的设置。(注:在虚拟内存中大家也可以根据IOS的大小或要根据自己的物理内存而定。而参数128 --disk0 4 中的128的意思是拿128MB的物理内存来作为虚拟设备的RAM。)

请单击“确定”,否则无法保存!

 

PC 桥接参数配置

现在我们选择网卡,首先我们看看自己安装的网卡

Vmware 中的网卡设置呢?

我们计算出来的值是多少??

这时,我们看到有2个网卡都显示的是

Network device list:

   rpcap://\Device\NPF_{CAEBC<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />4C4-4422-49F2-AEDC-F5FCB4129FEF} : Network adapter 'VMware Virtual Ethernet Adapter' on local host

 

   rpcap://\Device\NPF_{398DE88A-8CB2-4B6C-8AD3-4234BCFA7E18} : Network adapter 'VMware Virtual Ethernet Adapter' on local host

我们该如何选择呢? 只有先停用一个,只有一个就好弄了。这里我停用了Vmware 8 ,所以得到了vmware1 的值:

Network device list:

   rpcap://\Device\NPF_{398DE88A-8CB2-4B6C-8AD3-4234BCFA7E18} : Network adapter 'VMware Virtual Ethernet Adapter' on local host

注意: 要点击 ”确定桥接参数“

选择“输出目录“

 

模块的选择

注意:保证你的IOS版本在12.2S以上,在模拟交换时候为了保证实验能成功.IOS版本在12.3以上

首先从C7200开始

Slot 0:

   C7200-IO-FE <------> 支持1Fastethernet接口

   C7200-IO-2FE   <------> 支持2 Fastethernet接口 (DynamipsGUI 2.3 里面没有这个选项,想用只有自己添加了)

   C7200-IO-GE-E <------> 插这个卡以后会同时出现2个端口,Ethernet0/0GigabitEthernet0/0 (反正我没有用到过这个卡)

注意:这三个卡只允许插在Slot0,如果插入后面的slot口是无效的.

 

Slot 1-5:

   PA-2FE-TX <------> 支持2Fastethernet接口

   PA-FE-TX   <------> 支持1Fastethernet接口

   PA-4E     <------> 支持4Ethernet接口

   PA-4T+ <------> 支持4serial接口

   PA-8E     <------> 支持8Ethernet接口

   PA-8T     <------> 支持8serial接口

   PA-A1     <------> 支持1ATM port adapter接口

   PA-GE     <------> 支持1GigabitEthernet接口

   PA-POS-OC3<------> 支持1Packet Over SONET/SDH接口(用于更高速度的接口)

 

C3600(3620/3640/3660)

   NM-16ESW <------> 支持16Fastethernet接口(交换模块,在使用此模块做交换实验时候,请使用no ip routing 关闭端口路由

   NM-1E <------> 支持1Ethernet接口

   NM-1FE-TX<------> 支持1Fastethernet接口 

   NM-4E <------> 支持4Ethernet接口

   NM-4T <------> 支持4serial接口

   Leopard-2FE<------> 支持2Fastethernet接口(3660专用,并且只能在slot 0 下使用)

注意:3620只能使用2slot,3640可以使用4slot,Leopard-2FE模块做了限制,其他模块没有做限制插具体哪个slot.(DynamipsGUI里对slot已经做了限制,最近DynamipSeeV2.0已经发布了,但是里面不支持3660)

 

C3725/C3745/C2691

   GT96100-FE <------> 支持2Fastethernet接口(只限制在slot 0)

   NM-16ESW <------> 支持16Fastethernet接口(不做重复说明)

   NM-1FE-TX   <------> 支持1Fastethernet接口

   NM-4T    <------> 支持4serial接口

 

C2600(2610/2611/2620/2621/2610XM/2620XM/2650XM)

   NM-16ESW <------> 支持16Fastethernet接口

   NM-1E <------> 支持1Ethernet接口

   NM-1FE-TX<------> 支持1Fastethernet接口

   NM-4E <------> 支持4Ethernet接口

   CISCO2600-MB-2E<------> 支持2Ethernet接口

   CISCO2600-MB-2FE<------> 支持2Fastethernet接口

>DynamipsGUI里的模块CISCO2600-MB-2E,CISCO2600-MB-2FE,并且只有2620类型可选

Dynamipsee 里有2610/2611/2620/2621/2610XM/2620XM/2650XM类型选择.但没有

 

其它的连接,我想没有问题了吧!!

这个软件唯一不好的地方,就是到处都要给它“确定”

 
R1 先做基本设置:

启动R1,提示:

Connected to Dynamips VM "default" (ID 0, type c7200) - Console port

 

%Error opening tftp://192.168.168.254/cisconet.cfg (Timed out)

Translating "ho"...domain server (255.255.255.255)

% Unknown command or computer name, or unable to find computer address

如何解决:

启用了网络配置文件

In order to disable this feature, issue the no service config global command.

Router#config terminal

Enter configuration commands, one per line. 

Router(config)#no service config

Router(config)#exit

Router#copy running-config startup-config

 

Router(config)#no service ?

  alignment              Control alignment correction and logging

  compress-config        Compress the nvram configuration file

  config                 TFTP load config files

  dhcp                   Enable DHCP server and relay agent

  disable-ip-fast-frag   Disable IP particle-based fast fragmentation

  exec-callback          Enable exec callback

  exec-wait              Delay EXEC startup on noisy lines

  finger                 Allow responses to finger requests

  hide-telnet-addresses  Hide destination addresses in telnet command

  linenumber             enable line number banner for each exec

  nagle                  Enable Nagle's congestion control algorithm

  old-slip-prompts       Allow old scripts to operate with slip/ppp

  pad                    Enable PAD commands

  password-encryption    Encrypt system passwords

  prompt                 Enable mode specific prompt

  pt-vty-logging         Log significant VTY-Async events

  sequence-numbers       Stamp logger messages with a sequence number

  slave-log              Enable log capability of slave IPs

  tcp-keepalives-in      Generate keepalives on idle incoming network connections

  tcp-keepalives-out     Generate keepalives on idle outgoing network connections

  tcp-small-servers      Enable small TCP servers (e.g., ECHO)

  telnet-zeroidle        Set TCP window 0 when connection is idle

  timestamps             Timestamp debug/log messages

  udp-small-servers      Enable small UDP servers (e.g., ECHO)

继续提示:

%Error opening tftp://255.255.255.255/router-confg (Timed out)

%Error opening tftp://255.255.255.255/ciscortr.cfg (Timed out)

Router#wr  搞定

 

配置e2/0接口参数:

Router#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#int e2/0

Router(config-if)#ip add 10.16.19.190 255.255.255.0

Router(config-if)#no shut

Router(config-if)#end

在路由器上配置ok,在vmware中设置网卡:

配置ip地址:

成功: