zoukankan      html  css  js  c++  java
  • 关于模拟Framerelay的解决办法转贴

    新BSCI拓扑图

    关于模拟Frame-relay的解决办法

    以下为新的BSCI拓扑!

    '800')this.width='800';if(this.height>'600')this.height='600';" border=0>

    大家现在应该都在使用GEN或者是GUI来做dynamips实验吧.
    对于dynamips里面的FR的模拟,老是觉得似乎不尽人意.------说白了,就是不爽!!!
    DLCI号都在-f参数指定的文件中定义好了,相当与FR网络已经搭建OK了.那我们还实验个PP啊!!!
    我想了想,去掉了-f参数,拿路由器充当FR-Switch效果更好一些!!
    大家只看FR-S和R1,R2.就拿它们三个来简单描述一下FR-S的配置.
    完成FR-S的配置,命令如下:
    hostname FR-S
    enable password cisco
    frame-relay switching       !路由器用作帧中继交换机
    interface Serial1/0
    no ip address
    encapsulation frame-relay   !配置帧中继封装
    clockrate 56000             !dce配置时钟
    frame-relay lmi-type cisco   !帧中继lmi类型(11.2后就不需此配置了.)
    frame-relay intf-type dce     !端口类型为dce
    frame-relay route 18 interface Serial1/1 28             !配置帧中继交换表
    上面这条命令说简单点:从哪个DLCI(18)进入S1/0(inter s1/0)的数据要到哪个DLCI(28).它将从哪个接口出去(S1/1)
    同样的进S1/1口为其做配置.
    interface Serial1/1
    no ip address
    encapsulation frame-relay
    clockrate 56000
    frame-relay lmi-type cisco
    frame-relay intf-type dce
    frame-relay route 28 interface Serial1/0 18

    现在FR中心的FR-S已经配置完毕.就好象-f参数定义好了.
    接下来,该配置FR用户端了.
    R1
    R1(config)#int s1/0
    R1(config-if)#ip address 192.168.12.1 255.255.255.0
    R1(config-if)#encapsulation frame-relay
    R1(config-if)#frame-relay lmi-type cisco
    R1(config-if)#frame-relay map ip 192.168.12.2 18 broadcast
    上面这条命令:协议地址映射.即远端IP映射到本地的DLCI.后面的Broadcast参数指明路由更新信息通过该电路穿越网络(让NBMA支持广播)

    R2
    R2(config)#int s1/0
    R2(config-if)#ip address 192.168.12.2 255.255.255.0
    R2(config-if)#encapsulation frame-relay
    R2(config-if)#frame-relay lmi-type cisco
    R2(config-if)#frame-relay map ip 192.168.12.1 28 broadcast

    查看:
    1.检查各个pvc是否处于active状态,命令show frame-relay pvc;
    2.启动路由协议;
    3.使用ping命令检查各个用于路由器是否连通;
    4.用show frame-relay lmi看lmi信息;
    5.用show frame-relay map看帧中继映射表;
    6.用show ip route看路由表是否正确?

    以上内容即为FR-S的简单配置,当然,大家可以尝试配置FR的子接口等等.

    写此文目的:放弃dynamips的-f参数.自己来配置FR交换机,指定DLCI.对FR环境了解的更透彻.

    以下内容为批处理文件:
    FR-S
    title FR-S
    mkdir FR-S
    cd FR-S
    :reload
    ..\dynamips-wxp.exe -P 3745 -r 96 -c 0x2102 -p 0:GT96100-FE -T 2008 -p 1:NM-4T -p 2:NM-1FE-TX -s 1:0:udp:61100:127.0.0.1:11110 -s 1:1:udp:61101:127.0.0.1:11210 -s 1:2:udp:61102:127.0.0.1:11211 -s 1:3:udp:61103:127.0.0.1:11610 ..\c3745-adventerprisek9-mz124-12.bin --idle-pc=0x60486c04
    goto reload

    R1
    title Router1
    mkdir Router1
    cd Router1
    :reload
    ..\dynamips-wxp.exe -E ..\ETHERNET -T 2001 -P 3725 -r 96 -c 0x2102 -p 0:GT96100-FE -p 1:NM-4T -s0:0:udp:10110:127.0.0.1:10011 -s 1:0:udp:11110:127.0.0.1:61100 -s 1:1:udp:11111:127.0.0.1:11211 -s 1:2:udp:16161:127.0.0.1:16166 ..\c3725-is-mz.123-1a.bin --idle-pc=0x605b6e0c
    goto reload

    R2
    title Router2
    mkdir Router2
    cd Router2
    :reload
    ..\dynamips-wxp.exe -P 3725 -r 96 -T 2002 -c 0x2102 -p 0:GT96100-FE -p 1:NM-4T -s 0:0:udp:10220:127.0.0.1:10022 -s 1:1:udp:11211:127.0.0.1:11111 -s 1:0:udp:11210:127.0.0.1:61101 -s 1:2:udp:11212:127.0.0.1:11312 ..\c3725-is-mz.123-1a.bin --idle-pc=0x605b6e0c
    goto reload

    R3
    title Router3    
    mkdir Router3
    cd Router3
    :reload
    ..\dynamips-wxp.exe -f ..\FRSWITCH2 -P 3725 -T 2003 -r 96 -c 0x2102 -p 0:GT96100-FE -p 1:NM-4T -s 0:0:udp:10330:127.0.0.1:10033 -s 1:0:udp:11211:127.0.0.1:61102 -s 1:2:udp:11312:127.0.0.1:11212 ..\c3725-is-mz.123-1a.bin --idle-pc=0x605b6e0c
    goto reload

    R4
    title Router4
    mkdir Router4
    cd Router4
    :reload
    ..\dynamips-wxp.exe -P 3725 -r 96 -c 0x2102 -p 0:GT96100-FE -T 2004 -p 1:NM-4T -s 0:0:udp:10440:127.0.0.1:10044 -s 1:1:udp:14747:127.0.0.1:17474 -s 1:2:udp:11454:127.0.0.1:11455 ..\c3725-is-mz.123-1a.bin --idle-pc=0x605b6e0c
    goto reload

    R5
    title Router5
    mkdir Router5
    cd Router5
    :reload
    ..\dynamips-wxp.exe -P 3725 -T 2005 -r 96 -c 0x2102 -p 0:GT96100-FE -p 1:NM-4T -s 0:0:udp:10550:127.0.0.1:10055 -s 1:1:udp:15757:127.0.0.1:17575 -s 1:2:udp:11455:127.0.0.1:11454 ..\c3725-is-mz.123-1a.bin --idle-pc=0x605b6e0c
    goto reload

    R6
    title Router6
    mkdir Router6
    cd Router6
    :reload
    ..\dynamips-wxp.exe -P 3725 -T 2006 -r 96 -c 0x2102 -p 0:GT96100-FE -p 1:NM-4T -s 1:1:udp:16166:127.0.0.1:16161 -s 1:0:udp:11610:127.0.0.1:61103 -s 1:2:udp:16676:127.0.0.1:16677 ..\c3725-is-mz.123-1a.bin --idle-pc=0x605b6e0c
    goto reload

    R7
    title Router7
    mkdir Router7
    cd Router7
    :reload
    ..\dynamips-wxp.exe -P 3725 -T 2007 -r 96 -c 0x2102 -p 0:GT96100-FE -p 1:NM-4T -s 1:0:udp:17474:127.0.0.1:14747 -s 1:1:udp:17575:127.0.0.1:15757 -s 1:2:udp:16677:127.0.0.1:16676 ..\c3725-is-mz.123-1a.bin --idle-pc=0x605b6e0c
    goto reload

    ETHERNET(-E参数)
    IF:E0:gen_eth:\Device\NPF_{F72074D5-4AF1-4BD5-A0EE-4A337551B46D}
    IF:E1:udp:10011:127.0.0.1:10110
    IF:E2:udp:10022:127.0.0.1:10220
    IF:E3:udp:10033:127.0.0.1:10330
    IF:E4:udp:10044:127.0.0.1:10440
    IF:E5:udp:10055:127.0.0.1:10550


  • 相关阅读:
    走出软件作坊
    [Flash入门基本动画]第8课
    [Flash入门基本动画]第6课
    数据中心十项节能妙招
    全面实施虚拟化的五个步骤
    Javascript的匿名函数
    TSQL调试器重返SQL Server 2008
    SQL Server 2008(BI)PPT下载
    通过数据中心整合和虚拟化实现高密度服务器配置
    [Flash入门基本动画]第7课
  • 原文地址:https://www.cnblogs.com/jjkv3/p/1173174.html
Copyright © 2011-2022 走看看