资源预览内容
第1页 / 共8页
第2页 / 共8页
第3页 / 共8页
第4页 / 共8页
第5页 / 共8页
第6页 / 共8页
第7页 / 共8页
第8页 / 共8页
亲,该文档总共8页全部预览完了,如果喜欢就下载吧!
资源描述
实验实验 OSPF 点到多点的网络类型配置点到多点的网络类型配置【实验名称实验名称】 OSPF 点到多点的网络类型配置【实验目的实验目的】 掌握在点到多点的帧中继网络中如何配置 OSPF 。【背景描述背景描述】 总公司要与两家分公司互传网络信息,总公司与分公司运行在 Frame-relay 上,跑 OSPF 路由协议,总公司有一个出口,现在要实施帧中继点到多点基础上的 OSPF 协议。 请你给予支持。【实现功能实现功能】 实施帧中继点到多点基础上的 OSPF 协议 。【实验拓扑实验拓扑】 【实验设备实验设备】 R2624 路由器(4 台) 、V35DCE(3 根) 、V35DTE(3 根) )【实验步骤实验步骤】 第一步第一步:基本配置,配置帧中继交换机 Red-Giantenable Red-Giant(config)#hostname FR FR(config)#frame-relay switching ! 路由器模拟成帧中继交换机 FR(config)#interface serial 0 ! 进入广域网接口 serial 0 FR(config-if)#encapsulation frame-relay ietf ! 封装帧中继并封装其格式为 ietf FR(config-if)#frame-relay intf-type dce !封装帧中继接口类型为 dce FR(config-if)#frame-relay lmi-ty ansi ! 定义帧中继本地接口管理类型 FR(config-if)#cloclk rate 64000 !定义时钟速率 FR(config-if)#fram route 20 interface serial 1 21!设定帧中继交换,指定两个同步口之间 的 dlci 互换 FR(config-if)#fram route 30 interface serial 3 31!设定帧中继交换,指定两个同步口之间 的 dlci 互换 FR(config-if)#no sh ! 启用该接口 FR(config-if)#end FR(config)#int serial 1 FR(config-if)#encapsulation frame-relay ietf FR(config-if)#frame-relay intf-type dce FR(config-if)#frame-relay lmi-ty ansi FR(config-if)#cl ock rate 64000 FR(config-if)#frame-relay route 21 interface serial 0 20 FR(config-if)#frame-relay route 23 interface serial 3 32 FR(config-if)#no sh FR(config-if)#end FR(config)#conf t FR(config)#int serial 3 FR(config-if)#encapsulation frame-relay ietf FR(config-if)#frame-relay intf-type dce FR(config-if)#frame-relay lmi-type ansi FR(config-if)#clock rate 64000 FR(config-if)#frame-relay route 31 interface serial 0 30 FR(config-if)#frame-relay route 32 interface serial 1 23验证测试:验证测试:FR#sh frame-relay route Input Intf Input Dlci Output Intf Output Dlci Status Serial0 20 Serial1 21 inactive Serial0 30 Serial3 31 inactive Serial1 21 Serial0 20 inactive Serial1 23 Serial3 32 inactive Serial3 31 Serial0 30 inactive Serial3 32 Serial1 23 inactive 第二步:第二步:帧中继点到多点配置 R1#conf t R1(config)#int s0 R1(config-if)#encapsulation frame-relay ietf ! 封装帧中继并封装其格式为 ietf R1(config-if)#no frame-relay inverse-arp !关闭动态学习 IP 和 DLCI 映射 R1(config-if)# frame-relay lmi-type ansi R1(config-if)#no sh R1(config)#interface Serial0.1 multipoint R1(config-if)#ip address 192.168.12.1 255.255.255.0 R1(config-if)#no frame-relay inverse-arp R1(config-if)#frame-relay map ip 192.168.12.2 20 R1(config-if)#frame-relay map ip 192.168.12.3 30 R1(config-if)#end Red-Giant(config)#hostname R2 R2(config)#int s0 R2(config-if)#ip add 192.168.12.2 255.255.255.0 R2(config-if)#encapsulation frame-relay ietf R2(config-if)#no frame-relay inverse-arp R2(config-if)#frame-relay lmi-type ansi R2(config-if)# frame-relay map ip 192.168.12.1 21 R2(config-if)#endRed-Giant(config)#hostname R3 R3(config)#int s1 R3(config-if)# ip add 192.168.12.3 255.255.255.0 R3(config-if)# encapsulation frame-relay ietf R3(config-if)# frame-relay lmi-ty ansi R3(config-if)# no frame-relay inverse-arp R3(config-if)# frame-relay map ip 192.168.12.1 31 R3(config-if)#no sh验证测试:验证测试: R3#sh fram map Serial1 (up): ip 192.168.12.1 dlci 31(0x1F,0x4F0), static, IETF, status defined, active R2#sh fram map Serial0 (up): ip 192.168.12.1 dlci 21(0x15,0x450), static, IETF, status defined, active R1#sh frame-relay map Serial0 (up): ip 192.168.12.2 dlci 20(0x14,0x440), dynamic,broadcast,IETF, status defined, active Serial0 (up): ip 192.168.12.3 dlci 30(0x1E,0x4E0), dynamic, broadcast, FR#sh frame-relay routeIETF, status defined, activeFR#sh frame-relay route Input Intf Input Dlci Output Intf Output Dlci Status Serial0 20 Serial1 21 active Serial0 30 Serial3 31 active Serial1 21 Serial0 20 active Serial1 23 Serial3 32 active Serial3 31 Serial0 30 active Serial3 32 Serial1 23 active第三步:第三步:测试各点之间的连通性R1#ping 192.168.12.2Type escape sequence to abort. Sending 5, 100-byte ICMP Echoes to 192.168.12.2, timeout is 2 seconds: ! Success rate is 100 percent (5/5), round-trip min/avg/max = 56/56/60 ms R1#ping 192.168.12.3 Sending 5, 100-byte ICMP Echoes to 192.168.12.3, timeout is 2 seconds: ! Success rate is 100 percent (5/5), round-trip min/avg/max = 56/56/60 ms第四步:第四步:配置 OSPF 路由协议R1(config)#router ospf 1 R1(config-router)#net 192.168.12.0 0.0.0.255 area 0R2(config)#router os 1 R2(config-router)#net 192.168.12.0 0.0.0.255 area 0R3(config)#router os 1 R3(config-router)#net 192.168.12.0 0.0.0.255 area 0第五步:第五步:接口下声明网络类型 R1(config)#int s0.1 multipoint R1(config-if)#ip os net point-to-multipoint ! 声明 OSPF 运行在点到多点网络中 R2(config)#int s0 R2(config-if)#ip os net point-to-multipoint R3(config)#int s1 R3(config-if)#ip os net point-to-multipoint【注意事项注意事项】注意声明 OSPF 接口的网络类型是点到多点。【参考配置参考配置】R1#sh run Current configuration: ! version 6.14(2) ! hostname “R1“ ! ip subnet-zero ! interface FastEtherne
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号