ITPUB论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
更多
查看: 5245|回复: 3

Cisco 7200 Simulator (boot from IOS) [复制链接]

注册会员

中级会员

精华贴数
0
技术积分
1605
社区积分
10345
注册时间
2004-9-5
论坛徽章:
42
ITPUB十周年纪念徽章
日期:2011-11-01 16:20:282010广州亚运会纪念徽章:板球
日期:2010-09-20 10:25:342010世博会纪念徽章
日期:2010-09-14 14:59:352010年世界杯参赛球队:法国
日期:2010-05-31 09:25:112010年世界杯参赛球队:乌拉圭
日期:2010-05-21 12:11:402010年世界杯参赛球队:斯洛文尼亚
日期:2010-03-19 12:43:552010新春纪念徽章
日期:2010-03-01 11:08:242010新春纪念徽章
日期:2010-01-04 08:33:08ITPUB8周年纪念徽章
日期:2009-09-27 10:21:222010广州亚运会纪念徽章:体育舞蹈
日期:2010-09-29 09:01:53ITPUB9周年纪念徽章
日期:2010-10-08 09:28:51咸鸭蛋
日期:2011-07-13 12:41:46
发表于 2006-2-26 18:03:42 |显示全部楼层
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命令好像有改变))

[B]模拟三台设备互联[/B]
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


[B]让emulato使用你的网卡[/B]
使用下面的命令后可以用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"确定.[/COLOR]



[B]下面的是一个PPPoE Server配制[/B]

试验环境: 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和真实网络设备测试路由协议的兼容性.




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

注册会员

CCIE小组成员

精华贴数
0
技术积分
268
社区积分
4
注册时间
2002-11-16
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
发表于 2006-2-28 14:14:51 |显示全部楼层
请教,在Windows环境下,模拟多台路由器互联,用WinPcap还是VMware?

使用道具 举报

注册会员

中级会员

精华贴数
0
技术积分
1605
社区积分
10345
注册时间
2004-9-5
论坛徽章:
42
ITPUB十周年纪念徽章
日期:2011-11-01 16:20:282010广州亚运会纪念徽章:板球
日期:2010-09-20 10:25:342010世博会纪念徽章
日期:2010-09-14 14:59:352010年世界杯参赛球队:法国
日期:2010-05-31 09:25:112010年世界杯参赛球队:乌拉圭
日期:2010-05-21 12:11:402010年世界杯参赛球队:斯洛文尼亚
日期:2010-03-19 12:43:552010新春纪念徽章
日期:2010-03-01 11:08:242010新春纪念徽章
日期:2010-01-04 08:33:08ITPUB8周年纪念徽章
日期:2009-09-27 10:21:222010广州亚运会纪念徽章:体育舞蹈
日期:2010-09-29 09:01:53ITPUB9周年纪念徽章
日期:2010-10-08 09:28:51咸鸭蛋
日期:2011-07-13 12:41:46
发表于 2006-3-2 11:07:22 |显示全部楼层
在Windows环境下需要用WinPcap,,只要多次运行各个命令(最好复制dynamips,Cywin1.dll,IOS在不同目录下运行)就能模拟多台路由器互联,

使用道具 举报

注册会员

中级会员

精华贴数
0
技术积分
1605
社区积分
10345
注册时间
2004-9-5
论坛徽章:
42
ITPUB十周年纪念徽章
日期:2011-11-01 16:20:282010广州亚运会纪念徽章:板球
日期:2010-09-20 10:25:342010世博会纪念徽章
日期:2010-09-14 14:59:352010年世界杯参赛球队:法国
日期:2010-05-31 09:25:112010年世界杯参赛球队:乌拉圭
日期:2010-05-21 12:11:402010年世界杯参赛球队:斯洛文尼亚
日期:2010-03-19 12:43:552010新春纪念徽章
日期:2010-03-01 11:08:242010新春纪念徽章
日期:2010-01-04 08:33:08ITPUB8周年纪念徽章
日期:2009-09-27 10:21:222010广州亚运会纪念徽章:体育舞蹈
日期:2010-09-29 09:01:53ITPUB9周年纪念徽章
日期:2010-10-08 09:28:51咸鸭蛋
日期:2011-07-13 12:41:46
发表于 2006-3-5 13:08:16 |显示全部楼层

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

使用道具 举报

相关内容推荐
您需要登录后才可以回帖 登录 | 注册

TOP技术积分榜 社区积分榜 徽章 电子杂志 团队 统计 邮箱 虎吧 老博客 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档 | IT博客
CopyRight 1999-2011 itpub.net All Right Reserved. 北京皓辰网域网络信息技术有限公司版权所有 联系我们 网站律师 隐私政策 知识产权声明
京ICP证:060528号 北京市公安局海淀分局网监中心备案编号:1101082001 广播电视节目制作经营许可证:编号(京)字第1149号
  
回顶部