收藏 分销(赏)

两台路由器来模拟帧中继环境.doc

上传人:xrp****65 文档编号:7687938 上传时间:2025-01-12 格式:DOC 页数:5 大小:54KB 下载积分:10 金币
下载 相关 举报
两台路由器来模拟帧中继环境.doc_第1页
第1页 / 共5页
两台路由器来模拟帧中继环境.doc_第2页
第2页 / 共5页


点击查看更多>>
资源描述
环境:两台路由器,由串口相连。 要求:用两台路由器来模拟帧中继环境,fr-sw为帧中继交换机,并使用静态路由使网络联通。 步骤一:配置帧中继及联通性 fr-sw的配置: fr-sw (config)#frame-relay switching ?启用帧中继交换机 fr-sw (config)#interface loopback 0 fr-sw (config-if)#ip address 1.1.1.1 255.255.255.0 fr-sw (config-if)#interface serial 0 fr-sw (config-if)#encapsulation frame-relay ?封装帧中继 fr-sw (config-if)#frame-relay intf-type dce ?时钟提供端 fr-sw (config-if)#clock rate 64000 fr-sw (config-if)#ip address 10.1.1.1 255.255.255.0 fr-sw (config-if)#frame-relay map ip 10.1.1.2 102 broadcast?启用静态映射,此DLCI号码同时也是分配给对端设备的DLCI。因此,要求两端的DLCI号码必须相同。 fr-sw (config-if)#frame-relay map ip 10.1.1.1 102 broadcast?指向自己的目的,是为了PING通本路由器的接口。 fr-sw (config-if)#no shutdown r2的配置 r2(config)#interface loopback 0 r2(config-if)#ip address 2.2.2.2 255.0.0.0 r2(config-if)#interface serial0 r2(config-if)#encapsulation frame-relay r2(config-if)#ip address 10.1.1.2 255.255.255.0 r2(config-if)#frame-relay map ip 10.1.1.1 102 broadcast?与对端相同。 r2(config-if)#frame-relay map ip 10.1.1.2 102 broadcast?与对端相同。 r2(config-if)#no shutdown 步骤二、配置路由 fr-sw (config)#ip route 2.2.2.0 255.255.255.0 10.1.1.2 r2(config)#ip route 1.1.1.0 255.255.255.0 10.1.1.1 步骤三、测试 fr-sw #ping ip Target IP address: 2.2.2.2 Extended commands [n]: y Source address or interface: 1.1.1.1 !!!!! r2#ping Protocol [ip]: Target IP address: 1.1.1.1 Extended commands [n]: y Source address or interface: 2.2.2.2 !!!!! 步骤四、查看状态 fr-sw的帧中继状态 fr-sw #show frame-relay pvc ?查看PVC状态 PVC Statistics for interface Serial0 (Frame Relay DCE) Active Inactive Deleted Static Local 1 0 0 0 Switched 0 0 0 0 Unused 0 0 0 0 DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0 input pkts 69 output pkts 49 in bytes 6074 out bytes 5052 dropped pkts 0 in pkts dropped 0 out pkts dropped 0 out bytes dropped 0 in FECN pkts 0 in BECN pkts 0 out FECN pkts 0 out BECN pkts 0 in DE pkts 0 out DE pkts 0 out bcast pkts 0 out bcast bytes 0 pvc create time 00:48:44, last time pvc status changed 00:47:23 fr-sw #show frame-relay map ?查看帧中继映射 Serial0 (up): ip 10.1.1.1 dlci 102(0x66,0x1860), static, broadcast, CISCO, status defined, active Serial0 (up): ip 10.1.1.2 dlci 102(0x66,0x1860), static, broadcast, CISCO, status defined, active r2帧中继的状态: r2#show frame-relay pvc ?显示PVC状态 PVC Statistics for interface Serial0 (Frame Relay DTE) Active Inactive Deleted Static Local 1 0 0 0 Switched 0 0 0 0 Unused 0 0 0 0 DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0 input pkts 26 output pkts 35 in bytes 2660 out bytes 3137 dropped pkts 0 in pkts dropped 0 out pkts dropped 0 out bytes dropped 0 in FECN pkts 0 in BECN pkts 0 out FECN pkts 0 out BECN pkts 0 in DE pkts 0 out DE pkts 0 out bcast pkts 9 out bcast bytes 477 pvc create time 00:20:07, last time pvc status changed 00:20:07 r2#show frame-relay map ?显示帧中继映射 Serial0 (up): ip 10.1.1.1 dlci 102(0x66,0x1860), static, broadcast, CISCO, status defined, active Serial0 (up): ip 10.1.1.2 dlci 102(0x66,0x1860), static, broadcast, CISCO, status defined, active 步骤五、显示当前配置 fr-sw的当前配置: fr-sw #show running-config hostname fr-sw ! frame-relay switching ! ! ! interface Loopback0 ip address 1.1.1.1 255.255.255.0 ! interface Serial0 ip address 10.1.1.1 255.255.255.0 encapsulation frame-relay clockrate 64000 frame-relay map ip 10.1.1.1 102 broadcast frame-relay map ip 10.1.1.2 102 broadcast frame-relay intf-type dce ! ip route 2.2.2.0 255.255.255.0 10.1.1.2 ! end r2的当前配置: r2#show running-config hostname r2 ! ! interface Loopback0 ip address 2.2.2.2 255.255.255.0 ! interface Serial0 ip address 10.1.1.2 255.255.255.0 encapsulation frame-relay frame-relay map ip 10.1.1.1 102 broadcast frame-relay map ip 10.1.1.2 102 broadcast ! ip route 1.1.1.0 255.255.255.0 10.1.1.1 ! end 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的子接口等
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 教育专区 > 其他

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服