帧中继的配置命令.doc_第1页
帧中继的配置命令.doc_第2页
帧中继的配置命令.doc_第3页
帧中继的配置命令.doc_第4页
帧中继的配置命令.doc_第5页
已阅读5页,还剩5页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

实验九 Frame-Rely 广域网实验2010-04-25 19:17:12|分类: 网络实验 |标签: |字号大中小订阅 一、实验目的1使用Frame-Rely点对点接口实现拓扑一各节点间业务网段的连通性。2掌握Frame-Rely点对点接口的配置及调试。3熟悉Frame-Rely交换机的配置及调试。4使用Frame-Rely NBMA主接口实现拓扑二各节点之间业务网段的连通性。5熟悉Frame-Rely NBMA主接口的配置及调试。二、实验拓朴拓扑一三、实验内容1基本配置Router(config)#hostname RT1RT1(config)#no ip domain-lookupRT1(config)#line console 0RT1(config-line)#logging synchronous RT1(config-line)#no loginRT1(config-line)#privilege level 15RT1(config-line)#exitRT1(config)#line vty 0 4 RT1(config-line)#logging synchronous RT1(config-line)#no loginRT1(config-line)#privilege level 15Router(config)#hostname RT3RT3(config)#no ip domain-lookupRT3(config)#line console 0RT3(config-line)#logging synchronous RT3(config-line)#no loginRT3(config-line)#privilege level 15RT3(config-line)#exitRT3(config)#line vty 0 4 RT3(config-line)#logging synchronous RT3(config-line)#no loginRT3(config-line)#privilege level 15Router(config)#hostname RT5RT5(config)#no ip domain-lookupRT5(config)#line console 0RT5(config-line)#logging synchronous RT5(config-line)#no loginRT5(config-line)#privilege level 15RT5(config-line)#exitRT5(config)#line vty 0 4 RT5(config-line)#logging synchronous RT5(config-line)#no loginRT5(config-line)#privilege level 15Router(config)#hostname RT7RT7(config)#no ip domain-lookupRT7(config)#line console 0RT7(config-line)#logging synchronous RT7(config-line)#no loginRT7(config-line)#privilege level 15RT7(config-line)#exitRT7(config)#line vty 0 4 RT7(config-line)#logging synchronous RT7(config-line)#no loginRT7(config-line)#privilege level 152帧中继交换机配置RT1(config)#frame-relay switching /启动帧中继交换RT1(config)#interface serial 0/0 /配置主接口RT1(config-if)#clock rate 1000000 /配置DCE端的时钟速率RT1(config-if)#encapsulation frame-relay ietf /配置帧中继封装RT1(config-if)#frame-relay lmi-type q933a /配置LMI类型RT1(config-if)#frame-relay intf-type dce /配置帧中继接口类型RT1(config-if)#frame-relay route 101 interface serial 0/2 201 /配置帧中继路由,本端口的DLCI号为101对应端口为serial 0/0 DLCI号为201。RT1(config-if)#frame-relay route 102 interface serial 0/2 202 /配置帧中继路由,本端口的DLCI号为102对应端口为serial 0/0 DLCI号为202。RT1(config-if)#no shutdown RT1(config-if)#exitRT1(config)#interface serial 0/2 RT1(config-if)#clock rate 500000 RT1(config-if)#encapsulation frame-relay ietf /配置帧中继封装RT1(config-if)#frame-relay lmi-type q933a /配置帧中继LMI类型RT1(config-if)#frame-relay intf-type dce /配置帧中继接口类型RT1(config-if)#frame-relay route 201 interface serial 0/0 101 /配置帧中继路由,本端口的DLCI号为201对应端口为serial 0/0 DLCI号为101。RT1(config-if)#no shutdown RT1(config-if)#exitRT1(config)#interface serial 0/3RT1(config-if)#clock rate 500000 RT1(config-if)#encapsulation frame-relay ietf /配置帧中继封装RT1(config-if)#frame-relay intf-type dce /配置帧中继接口类型RT1(config-if)#frame-relay route 202 interface s 0/0 102 /配置帧中继路由,本端口的DLCI号为202对应端口为serial 0/0 DLCI号为102。RT1(config-if)#no shutdown3查看帧中继路由RT1#show frame-relay route Input Intf Input Dlci Output Intf Output Dlci StatusSerial0/0 101 Serial0/2 201 activeSerial0/0 102 Serial0/2 202 inactiveSerial0/2 201 Serial0/0 101 activeSerial0/3 202 Serial0/0 102 active4接口配置RT3(config)#interface ethernet 3/0 /进入以太网接口3/0RT3(config-if)#ip address 192.168.10.1 255.255.255.0 /配置接口ipRT3(config-if)#no shutdown RT3(config-if)#no keepalive /路由器的以太网接口如果没有接网线时,可采用no keepalive使接口up;如果接口接了网线,必须配置成默认的keepalive。RT3(config-if)#exitRT3(config)#interface serial 0/0RT3(config-if)#encapsulation frame-relay ietf /主接口封装帧中继,帧中继封装类型与相连的帧中继交换机接口一致。RT3(config-if)#frame-relay lmi-type q933a /主接口配置帧中继LMI,帧中继LMI类型与相连的帧中继交换机接口一致。RT3(config-if)#no shutdown RT3(config-if)#exitRT3(config)#interface serial 0/0.101 point-to-point /创建点对点子接口,此处必须指明为point-to-point类型。RT3(config-subif)#frame-relay interface-dlci 101 /配置子接口DLCI号为101RT3(config-fr-dlci)#exit RT3(config-subif)#ip address 192.168.1.1 255.255.255.252RT3(config-subif)#no shutdown RT3(config-subif)#exitRT3(config)#interface serial 0/0.102 point-to-point /创建点对点子接口,此处必须指明为point-to-point类型。RT3(config-subif)#frame-relay interface-dlci 102 /配置子接口DLCI号为102RT3(config-subif)#exitRT3(config-subif)#ip address 192.168.1.5 255.255.255.252RT3(config-subif)#no shutdown RT3(config-subif)#exitRT5(config)#interface ethernet 3/0RT5(config-if)#ip address 192.168.18.1 255.255.255.0RT5(config-if)#no keepalive /路由器的以太网接口如果没有接网线时,可采用no keepalive使接口up;如果接口接了网线,必须配置成默认的keepalive。RT5(config-if)#no shutdown RT5(config-if)#exitRT5(config)#interface serial 0/0RT5(config-if)#encapsulation frame-relay ietf /主接口封装帧中继,帧中继封装类型与相连的帧中继交换机接口一致。RT5(config-if)#frame-relay lmi-type q933a /主接口配置帧中继LMI,帧中继LMI类型与相连的帧中继交换机接口一致。RT5(config-if)#no shutdown RT5(config-if)#exitRT5(config)#interface serial 0/0.201 point-to-point /创建点对点子接口,此处必须指明为point-to-point类型。RT5(config-subif)#frame-relay interface-dlci 201 /配置子接口DLCI号为201RT5(config-fr-dlci)#exitRT5(config-subif)#ip address 192.168.1.2 255.255.255.252RT5(config-subif)#no shutdown RT5(config-subif)#exitRT7(config-if)#ip address 192.168.22.1 255.255.255.0 RT7(config-if)#no keepalive /路由器的以太网接口如果没有接网线时,可采用no keepalive使接口up;如果接口接了网线,必须配置成默认的keepalive。RT7(config-if)#no shutdownRT7(config-if)#exitRT7(config)#interface serial 0/0RT7(config-if)#encapsulation frame-relay ietf /主接口封装帧中继,帧中继封装类型与相连的帧中继交换机接口一致。RT7(config-if)#frame-relay lmi-type q933a /主接口配置帧中继LMI,帧中继LMI类型与相连的帧中继交换机接口一致。RT7(config-if)#no shutdown RT7(config-if)#exitRT7(config)#interface serial 0/0/202RT7(config)#interface serial 0/0.202 point-to-point RT7(config-subif)#frame-relay interface-dlci 202 /配置子接口DLCI号为202RT7(config-subif)#ip address 192.168.1.6 255.255.255.252RT7(config-subif)#no shutdown RT7(config-subif)#exit5.路由配置及测试RT3(config)#ip route 192.168.18.0 255.255.255.0 192.168.1.2 /配置静态路由RT3(config)#ip route 192.168.22.0 255.255.255.0 192.168.1.6 /配置静态路由RT3#show ip route /查看静态路由C 192.168.10.0/24 is directly connected, Ethernet3/0S 192.168.22.0/24 1/0 via 192.168.1.6 192.168.1.0/30 is subnetted, 2 subnetsC 192.168.1.0 is directly connected, Serial0/0.101C 192.168.1.4 is directly connected, Serial0/0.102S 192.168.18.0/24 1/0 via 192.168.1.2RT5(config)#ip route 192.168.10.0 255.255.255.0 192.168.1.1 /配置静态路由RT5(config)#ip route 192.168.22.0 255.255.255.0 192.168.1.1 /配置静态路由RT5#show ip route /查看静态路由S 192.168.10.0/24 1/0 via 192.168.1.1S 192.168.22.0/24 1/0 via 192.168.1.1 192.168.1.0/30 is subnetted, 1 subnetsC 192.168.1.0 is directly connected, Serial0/0.201C 192.168.18.0/24 is directly connected, Ethernet3/0RT7(config)#ip route 192.168.10.0 255.255.255.0 192.168.1.5 /配置静态路由RT7(config)#ip route 192.168.18.0 255.255.255.0 192.168.1.5 /配置静态路由RT7#show ip route /查看静态路由S 192.168.10.0/24 1/0 via 192.168.1.5C 192.168.22.0/24 is directly connected, Ethernet3/0 192.168.1.0/30 is subnetted, 1 subnetsC 192.168.1.4 is directly connected, Serial0/0.202S 192.168.18.0/24 1/0 via 192.168.1.5四、实验验证RT3#ping 192.168.18.1 /验证RT3与RT5之间的连通性Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.18.1, timeout is 2 seconds:! /能通,数据流分析:由于手动给RT3配置了到达192.168.18.0网段的下一跳是192.168.1.2,所以当RT3封装数据从入接口S0/0的子接口S0/0.101和入DLCI号为101发出时,帧中继根据入接口和入DLCI号,从MAP映射表中查到相对应的出接口和出DLCI号,从而从DLCI号为201的接口IP为192.168.1.2的子接口发出。到达RT5路由器后,路由器查找路由表发级目标IP192.168.18.1,然后RT5再回应RT3。Success rate is 100 percent (5/5), round-trip min/avg/max = 40/116/252 msRT3#ping 192.168.22.1 /验证RT3与RT7之间的连通性Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.22.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 64/102/172 msRT5#ping 192.168.22.1 source 192.168.18.1 /验证RT7与RT5之间的连通性,要加source,否则不通。因为当不加source时,默认情况下路由器将以直连的子接口的IP作为源IP发送信息。当不加source时,RT5发数据给RT7时能去,因为我们手动配置了到达192.168.22.0网段的下一跳为192.168.1.1,而在RT3上出手动配置了到达RT7的下一跳为192.168.1.6,据此二条静态路由RT3发的数据可以到达RT7,但是RT7在回应数据时由于RT7不知道到达192.168.1.0网段(没加source时默认源IP为直连接口S0/0.201的IP)的下一跳是多少,因而回应数据无法到达。Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.22.1, timeout is 2 seconds:Packet sent with a source address of 192.168.18.1 !Success rate is 100 percent (5/5), round-trip min/avg/max = 112/180/220 msRT5#ping 192.168.22.1 Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.22.1, timeout is 2 seconds:.Success rate is 0 percent (0/5)RT7#ping 192.168.1.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:.Success rate is 0 percent (0/5)RT7#ping 192.168.1.5Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.5, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 64/103/140 msRT7#ping 192.168.10.1 soRT7#ping 192.168.10.1 source 192.168.22.1 /验证RT7与RT3之间的连通性,要加source,否则不通。因为当不加source时,默认情况下路由器将以直连的子接口的IP作为源IP发送信息。Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:Packet sent with a source address of 192.168.22.1 !Success rate is 100 percent (5/5), round-trip min/avg/max = 64/104/152 ms拓扑二一、实验拓扑二、实验内容1基本配置RT1、RT3、RT5、RT7的基本配置同拓扑一RT1的帧中继配置与拓扑一相同2接口配置RT3(config)#interface serial 0/0 RT3(config-if)#encapsulation frame-relay ietf /配置主接口封装帧中继RT3(config-if)#frame-relay lmi-type q933a /主接口配置帧中继LMIRT3(config-if)#ip address 192.168.1.33 255.255.255.224 /配置主接口IPRT3(config-if)#frame-relay map ip 192.168.1.34 101 broadcast /手动配置帧中继映射,将对端IP映射到相应的本地DLCI。RT3(config-if)#frame-relay map ip 192.168.1.35 102 broadcast /手动配置帧中继映射,将对端IP映射到相应的本地DLCI。RT3(config-if)#no shutdown RT3(config-if)#exitRT5(config)#interface serial 0/0RT5(config-if)#encapsulation frame-relay ietf /配置主接口封装帧中继RT5(config-if)#frame-relay lmi-type q933a /主接口配置帧中继LMIRT5(config-if)#ip address 192.168.1.34 255.255.255.224 /配置主接口IPRT5(config-if)#frame-relay map ip 192.168.1.33 201 broadcast /手动配置帧中继映射,将对端IP映射到相应的本地DLCI。RT5(config-if)#frame-relay map ip 192.168.1.35 201 broadcast /手动配置帧中继映射,将对端IP映射到相应的本地DLCI。RT5(config-if)#no shutdownRT5(config-if)#exitRT7(config)#interface serial 0/0RT7(config-if)#encapsulation frame-relay ietf /配置主接口封装帧中继RT7(config-if)#frame-relay lmi-type q933a /配置主接口帧中继LMI类型RT7(config-if)#ip ad 192.168.1.35 255.255.255.224 /配置主接口IPRT7(config-if)#frame-relay map ip 192.168.1.34 202 bro /手动配置帧中继映射,将对端IP映射到相应的本地DLCI。RT7(config-if)#frame-relay map ip 192.168.1.33 202 bro /手动配置帧中继映射,将对端IP映射到相应的本地DLCI。RT7(config-if)#no shutdownRT7(config-if)#exit3.配置静态路由RT3(config)#ip route 192.168.18.0 255.255.255.0 192.168.1.34 /为RT5、RT7的业务配置静态路由RT3(config)#ip route 192.168.22.0 255.255.255.0 192.168.1.35RT5(config)# ip route 192.168.10.0 255.255.255.0 192.168.1.33 /为RT3、RT7的业务配置静态路由RT5(config)# ip route 192.168.22.0 255.255.255.0 192.168.1.35RT7(config)#ip route 192.168.10.0 255.255.255.0 192.168.1.33 /为RT3、RT5的业务配置静态路由RT7(config)#ip route 192.168.18.0 255.255.255.0 192.168.1.34三、实验验证1 .查看接口状态RT3#show ip interface brief Interface IP-Address OK? Method Status ProtocolSerial0/0 192.168.1.33 YES manual up up RT5#show ip interface brief Interface IP-Address OK? Method Status ProtocolSerial0/0 192.168.1.34 YES manual up up RT7#show ip interface brief Interface IP-Address OK? Method Status ProtocolSerial0/0 192.168.1.35 YES manual up up2查看帧中继映射RT3#show frame-relay map /查看帧中继映射Serial0/0 (up): ip 192.168.1.34 dlci 101(0x65,0x1850), static, broadcast, /本地DLCI号为101相对应对端的ip为 192.168.1.34 IETF, status defined, activeSerial0/0 (up): ip 192.168.1.35 dlci 102(0x66,0x1860), static, broadcast, /本地DLCI号为102相对应对端的ip为 192.168.1.35 IETF, status defined, activeRT5#show frame-relay map /查看帧中继映射Serial0/0 (up): ip 192.168.1.33 dlci 201(0xC9,0x3090), static, broadcast, IETF, status defined, activeSerial0/0 (up): ip 192.168.1.35 dlci 201(0xC9,0x3090), static, broadcast, IETF, status defined, activeRT7#show frame-relay map Serial0/0 (up): ip 192.168.1.33 dlci 202(0xCA,0x30A0), static, broadcast, IETF, status defined, activeSerial0/0 (up): ip 192.168.1.34 dlci 202(0xCA,0x30A0), static, broadcast, IETF, status defined, active3连通性验证RT3#ping 192.168.1.35 /测试RT3与RT7主接口之间的连通性。Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.35, timeout is 2 seconds:! /Success rate is 100 percent (5/5), round-trip min/avg/max = 52/97/144 msRT5#ping 192.168.22.1 /测试RT5与RT7以太网接口3/0之间的连通性。Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.22.1, timeo

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论