ITPUB??ì3
ITPUB论坛 » Cisco认证系列 【已迁移到IXPUB】 » Cisco 7200 Simulator (boot from IOS)


您有 2 条公共消息
  • 来自: 公共消息 标题: 3-5月ITPUB数据库 ... 内容: ITPUB与3月和5月分别安排了Oracle 11g DBA和Oracle性能优化培训,以及 ...
  • 来自: 公共消息 标题: ITPUB邮箱已经恢复 内容: ITPUB邮箱用户请注意,邮箱现在已经恢复 web访问地址 http://emai ...

    标题: Cisco 7200 Simulator (boot from IOS)
    在线/呼叫 webmedia
    中级会员


    精华贴数 0
    个人空间 0
    技术积分 1468 (1443)
    社区积分 6594 (297)
    注册日期 2004-9-5
    论坛徽章:27
    ITPUB元老会员2007贡献徽章授权会员2010年世界杯参赛球队:斯洛文尼亚2010新春纪念徽章2010新春纪念徽章
    ITPUB8周年纪念徽章2009日食纪念生肖徽章2007版:牛生肖徽章2007版:羊生肖徽章2007版:龙生肖徽章2007版:马

    发表于 2006-2-26 18:03 
    Cisco 7200 Simulator (boot from IOS)

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


    "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. "




    IOS Download URL
    http://www.chinanetwork.com.cn/rs_i...&name=Cisco_IOS

    Linux环境下测试过Debian(在VMware的虚拟PC中),可以跑起来.

    下面都是Windows环境中(需要安装WinPcap)做的测试((版本0.2.3c,最新的是0.2.4命令好像有改变))

    模拟三台设备互联
    R1:
    dynamips -p 0:C7200-IO-FE:udp:10001:127.0.0.1:10002 image.bin

    R2:
    dynamips -p 0:C7200-IO-FE:udp:10002:127.0.0.1:10001 -p 1:PA-FE-TX:udp:10003:127.0.0.1:10004 image.bin

    R3:
    dynamips -p 0:C7200-IO-FE:udp:10004:127.0.0.1:10003 image.bin


    让emulato使用你的网卡
    使用下面的命令后可以用Ethereal抓到emulator在你的网卡上释放的IP包!
    dynamips -p 0:C7200-IO-FE:gen_eth:"\Device\NPF_{40371D28-B992-495E-AD5C-C3ED05DCB000}" image.bin
    换句话,你可以结合Zebra或Quagga(和VMware的虚拟网络)甚至真实的网络设备测试了.

    COLOR=red]"\Device\NPF_{40371D28-B992-495E-AD5C-C3ED05DCB000}" 在你的机器上这项可能不同,执行"dynamips.exe -e"确定.



    下面的是一个PPPoE Server配制

    试验环境: Linksys broad router(run rip)+Cisco 7200 Simulator+WinRadius +测试时使用在WinXP中建立的一个PPPoE联接

    PPPoE-Server#sh run
    Building configuration...

    Current configuration:
    !
    version 12.1
    service timestamps debug uptime
    service timestamps log uptime
    no service password-encryption
    !
    hostname PPPoE-Server
    !
    aaa new-model
    aaa authentication ppp vpdn group radius //如果不使用WinRadius可以 改为 aaa authentication ppp vpdn local 其他与radius相关的也需要改变
    enable password cisco
    !
    username test password 0 test
    username cisco password 0 cisco
    !
    !
    !
    !
    ip subnet-zero
    ip cef
    !
    vpdn enable
    no vpdn logging
    !
    vpdn-group PPPoE_1
    accept-dialin
    protocol pppoe
    virtual-template 1
    pppoe limit per-mac 1
    !
    lane client flush
    !
    !
    !
    !
    !
    !
    !
    interface Loopback1
    ip address 192.168.10.1 255.255.255.0
    !
    interface FastEthernet0/0
    ip address 192.168.1.77 255.255.255.0
    half-duplex
    pppoe enable
    no cdp enable
    !
    interface Virtual-Template1
    mtu 1492
    ip unnumbered Loopback1
    no ip route-cache cef
    ip mroute-cache
    keepalive 5
    peer default ip address pool PPPoE_Pool
    ppp authentication chap vpdn
    ppp ipcp dns 202.96.199.133
    !
    router rip //如无支持RIP的设备改为静态路由
    network 192.168.1.0
    network 192.168.10.0
    !
    ip local pool PPPoE_Pool 192.168.10.200 192.168.10.205
    ip classless
    no ip http server
    ip http authentication local
    !
    no cdp run
    snmp-server engineID local 0000000902000005FF362000
    snmp-server community test RW
    snmp-server packetsize 2048
    snmp-server chassis-id 123123
    radius-server host 192.168.1.5 auth-port 1812 acct-port 1813 key 123123 //需要在WinRadius上做相应配置
    radius-server retransmit 3
    !
    !
    line con 0
    transport input none
    line aux 0
    line vty 0 4
    login local
    !
    end

    相关问题

    1.需要7200路由器的IOS镜像软件,可以去思科网站下载或用搜索引擎找.
    eg:http://ftpsearch.rambler.ru/db/ftpsearch

    2.根据不同的机器平台和系统选择不同的文件:

    3.为了增快启动速度,可以预先对IOS镜像软件解压缩.Windowns中可以把后缀.bin改为ZIP后解压.

    4.Windows中需要安装WinPcap,模拟器可以借用PC的网卡收发IP包.可以用Ethereal抓包分析.

    5.最新版本是0.2.4与以前版本的命令有区别,具体参考
    http://www.ipflow.utc.fr/dynamips/README-0.2.4.txt

    6.UNIX/LINUX中需要libelf库,
    Reahat参看(注意其讨论的版本):http://www.vmiao.com/article.asp?id=671

    Debian(安装在VMware中)安装使用:
    # wget http://www.ipflow.utc.fr/dynamips/d...s-0.2.4-x86.bin
    # unzip -p c7200-js-mz.123-9.bin > image.bin
    # apt-get install libelfg0
    # ./dynamips-0.2.4-x86.bin -p 0:C7200-IO-FE -s 0:0:udp:10001:127.0.0.1:10002 image.bin
    # netstat -an
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State
    udp 0 0 127.0.0.1:10001 127.0.0.1:10002 ESTABLISHED

    技巧交流
    1.为了在UNIX/LINUX中安装和使用更方便可以使用SSH登陆后安装后使用.
    2.Windosw环境下我是在几台PC上安装,先让让模拟器使用网卡启动,配制好IP.使用telnet登陆到路由器上.
    3.可以结合Zebra,Qugga,Olive和真实网络设备测试路由协议的兼容性.




    欢迎大家跟贴这个模拟器的使用案例.


    __________________
    One for all,all for one.
    只看该作者    顶部
    离线 BugBig
    CCIE小组成员



    精华贴数 0
    个人空间 0
    技术积分 268 (8554)
    社区积分 4 (20955)
    注册日期 2002-11-16
    论坛徽章:1
    授权会员     
          

    发表于 2006-2-28 14:14 
    请教,在Windows环境下,模拟多台路由器互联,用WinPcap还是VMware?


    只看该作者    顶部
    在线/呼叫 webmedia
    中级会员


    精华贴数 0
    个人空间 0
    技术积分 1468 (1443)
    社区积分 6594 (297)
    注册日期 2004-9-5
    论坛徽章:27
    ITPUB元老会员2007贡献徽章授权会员2010年世界杯参赛球队:斯洛文尼亚2010新春纪念徽章2010新春纪念徽章
    ITPUB8周年纪念徽章2009日食纪念生肖徽章2007版:牛生肖徽章2007版:羊生肖徽章2007版:龙生肖徽章2007版:马

    发表于 2006-3-2 11:07 
    在Windows环境下需要用WinPcap,,只要多次运行各个命令(最好复制dynamips,Cywin1.dll,IOS在不同目录下运行)就能模拟多台路由器互联,


    __________________
    One for all,all for one.
    只看该作者    顶部
    在线/呼叫 webmedia
    中级会员


    精华贴数 0
    个人空间 0
    技术积分 1468 (1443)
    社区积分 6594 (297)
    注册日期 2004-9-5
    论坛徽章:27
    ITPUB元老会员2007贡献徽章授权会员2010年世界杯参赛球队:斯洛文尼亚2010新春纪念徽章2010新春纪念徽章
    ITPUB8周年纪念徽章2009日食纪念生肖徽章2007版:牛生肖徽章2007版:羊生肖徽章2007版:龙生肖徽章2007版:马

    发表于 2006-3-5 13:08 
    Cisco IOS Boarland Simple VPN Configuration Lab

    Cisco IOS Boarland Simple VPN Configuration Lab
    1.Lab Environment
    1.1.Lab Device
    PC1(running Windows XP SP2):
    running Cisco 7200 Simulator

    dynamips -p 0:C7200-IO-FE -s 0:0:gen_eth:"\Device\NPF_{40371D28-B992-495E-AD5C-C3ED05DCB000}" -p 1:PA-FE-TX -s 1:0:udp:10001:127.0.0.1:10000 image.bin


    IOS Version:
    Cisco Internetwork Operating System Software
    IOS (tm) 7200 Software (C7200-JS-M), Version 12.2(11)T,  RELEASE SOFTWARE (fc1)
    TAC Support: http://www.cisco.com/tac
    Copyright (c) 1986-2002 by cisco Systems, Inc.
    Compiled Tue 30-Jul-02 21:31 by ccai
    Image text-base: 0x60008940, data-base: 0x61C24000

    PC2(running Windows XP SP2):
    for remote configuration an run test software

    Swith:
    connection the two PC.

    1.2.Test software(omit its configuration)
    A Boarland pppoe connection at Windows XP SP2(for establishing a pppoe connection)

    A VPN connection at Windows XP SP2 (for testing pptp tunnel)

    EnterNet500(for testing l2tp tunnel without IPSec )

    2.Configuration
    2.1.Configuration at Cisco 7200 Simulator

    !
    version 12.2
    no service pad
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    no service dhcp
    !
    hostname pppoe-pptp-l2tp-AccessServer
    !
    no logging console
    aaa new-model
    !
    !
    aaa authentication ppp default local
    aaa session-id common
    enable password cisco
    !
    username cisco password 0 cisco
    username test password 0 test
    ip subnet-zero
    no ip source-route
    !
    !
    no ip domain lookup
    !
    no ip bootp server
    ip cef
    vpdn enable
    !
    vpdn-group l2tp
    ! Default L2TP VPDN group
    accept-dialin
      protocol l2tp
      virtual-template 30
    no l2tp tunnel authentication
    !
    vpdn-group pppoe
    accept-dialin
      protocol pppoe
      virtual-template 10
    pppoe limit per-mac 1
    pppoe limit max-sessions 1
    !
    vpdn-group pptp
    ! Default PPTP VPDN group
    accept-dialin
      protocol pptp
      virtual-template 20
    !
    interface Loopback0
    ip address 192.168.7.1 255.255.255.0
    !
    interface Loopback1
    ip address 192.168.6.1 255.255.255.0
    !
    interface FastEthernet0/0
    ip address 192.168.1.71 255.255.255.0
    no ip unreachables
    no ip proxy-arp
    duplex full
    pppoe enable
    !
    interface FastEthernet1/0
    ip address 192.168.77.1 255.255.255.0
    duplex full
    !
    interface Virtual-Template10
    mtu 1492
    ip unnumbered Loopback0
    no ip route-cache cef
    peer default ip address pool pppoe-pool
    ppp authentication chap
    ppp ipcp dns 192.168.77.2
    !
    interface Virtual-Template20
    ip unnumbered Loopback1
    peer default ip address pool pptp-pool
    ppp authentication chap
    !
    interface Virtual-Template30
    ip unnumbered Loopback1
    peer default ip address pool l2tp-pool
    ppp authentication chap
    !
    ip local pool pppoe-pool 192.168.7.100 192.168.7.200
    ip local pool pptp-pool 192.168.6.100 192.168.6.200
    ip local pool l2tp-pool 192.168.6.210 192.168.6.250
    ip classless
    ip route 0.0.0.0 0.0.0.0 192.168.77.2
    no ip http server
    !
    !
    no cdp run
    !
    !
    !
    no call rsvp-sync
    !
    !
    mgcp profile default
    !
    dial-peer cor custom
    !
    !
    !
    !
    gatekeeper
    shutdown
    !
    !
    line con 0
    exec-timeout 0 0
    line aux 0
    line vty 0 4
    exec-timeout 0 0
    !
    !
    end

    2.2.Configuration at test software
    omit its configuration

    3.Show and Debug Command
    show vpdn ?

    Ethernet Layer :
        debug vpdn pppoe-data
        debug pppoe-errors
        debug pppoe-packets
        debug vpdn pppoe-events

    PPP Layer:
        debug ppp negotiation
        debug ppp authentication


    __________________
    One for all,all for one.
    只看该作者    顶部
     
        

    相关内容


    CopyRight 1999-2006 itpub.net All Right Reserved.
    北京皓辰网域网络信息技术有限公司. 版权所有
    E-mail:Webmaster@itpub.net
    网站律师 隐私政策 知识产权声明
    京ICP证:060528号 联系我们