[福建金科]CCNP ROUTE OSPF综合实验

上传人:gui****hi 文档编号:129611047 上传时间:2022-08-03 格式:DOC 页数:17 大小:431KB
返回 下载 相关 举报
[福建金科]CCNP ROUTE OSPF综合实验_第1页
第1页 / 共17页
[福建金科]CCNP ROUTE OSPF综合实验_第2页
第2页 / 共17页
[福建金科]CCNP ROUTE OSPF综合实验_第3页
第3页 / 共17页
点击查看更多>>
资源描述
金科教育CCNP ROUTE OSPF综合实验一、 实验目的 掌握OSPF的配置命令,学会应用一些OSPF的高级功能,如虚链路,手动指定网络类型,帧中继环境中的OSPF配置,OSPF选路的修改,完全末梢区的配置,OSPF区域验证,手动汇总,默认路由的传递。二、 实验拓扑实验背景假定著名医生Dr.Stai拥有一些地方性的事务所,每个事务所专门研究牙科的某个特定领域,如牙根管填弃手术,补牙等等。DR.Stai希望通过一个帧中继网络将他的这些事务所连接起来这些事务所同时还希望通过共享一个公用连接实现与Internet互联,这样他们才能及时获取牙科新技术的最新发展动态要求按照下列标准配置一个OSPF网络。三、 实验需求:1. 配置一个IP网络,实验逻辑图如图,IP地址由IP地址规划而定。2. 路由协议采用OSPF,进程ID为2014,RID为loopback0地址。3. 模拟帧中继环境,PVC如图所示(现实中这由ISP提供商提供)。4. 将与帧中继相连的三个事务所配置成广播型,共子网:99.99.99.0/28,其中dental_ho(R66)事务所的路由器做为永久性DR,且采用子接口方式。5. 按照图示配置OSPF区域,其中crowns(R55),root_canals(R44),pain_center(R11)之间的区域要配置成完全末梢区域。6. Orthopaedics(R22)是新收购的事务所,由于来不及布线施工而暂时并到surgery(R33)事务所,配置使得所有网络可达(ping测试)。7. 在dental_ho(R66)事务上配置使得所有访问internet的流量都指向网络其直连的以太网络,同时把这条路由告诉OSPF区域。8. Area0基于安全的原因配置上MD5认证,密码:goldtech9. pain_center(R11)是事务所总部,将其做为指定路由器,与它直连的两个事务所邻居关系保持two-way状态。10. 为了减少网络流量,将pain_center(R11)所在区域汇总有主类网络通告出去。11. 由于root_canals(R44)与dental_ho(R66)之间的PVC链路质量较好,适当配置使得pain_center(R11)优先选取root_canals(R44)访问自身区域除外的外部网络。12. 在area0以外的所有区域启用OSPF明文认证,密码:goldtech13. (可选)当dental_ho的E0网段出现故障而没出现在路由表时,此时dental_ho不能通告默认路由。配置部分:实验拓扑:需求一:配置一个IP网络,实验逻辑图如图,IP地址由IP地址规划而定1) 本次实验使用GNS3模拟器来实现网络需求,IP地址规划如下表。路由器接口IPR11Fa0/0148.148.148.254/24R22Fa1/023.23.23.2/24R33Fa1/023.23.23.1/24Fa0/036.36.36.1/24R44S2/199.99.99.1/28Fa0/0148.148.148.2/24R55Fa0/0148.148.148.1/24 s2/099.99.99.2/28R66S2/2.199.99.99.3/28Fa0/036.36.36.2/24R77 需求二:路由协议采用OSPF,进程ID为2014,RID为loopback0地址。 1) 由拓扑图可知一共需要划分4个区域,分别是Area148, Area0, Area36, Area23.R1(config)#network 1.1.1.1 0.0.0.0 area 148 /宣告本地直连网段并宣告OSPF区域ID network 148.148.148.0 0.0.0.255 area 148R4(config)#network 4.4.4.4 0.0.0.0 area 0 network 99.99.99.0 0.0.0.15 area 0 network 148.148.148.0 0.0.0.255 area 148R5(config)#network 5.5.5.5 0.0.0.0 area 0 network 99.99.99.0 0.0.0.15 area 0 network 148.148.148.0 0.0.0.255 area 148R6(config)#network 6.6.6.6 0.0.0.0 area 0 network 36.36.36.0 0.0.0.255 area 36 network 99.99.99.0 0.0.0.15 area 0R3(config)#network 3.3.3.3 0.0.0.0 area 36 network 23.23.23.0 0.0.0.255 area 23 network 36.36.36.0 0.0.0.255 area 36R2(config)#network 23.23.23.0 0.0.0.255 area 23需求三:模拟帧中继环境,PVC如图所示(现实中这由ISP提供商提供)。使用R7模拟作为帧中继交换机建立两条PVC虚链路,R5出口的DLCI号为806,R4出口的DLCI号为604,R6出口的DLCI号为608/604.R7(config-if)#frame-relay switching /需要封装成帧中继交换机interface Serial2/0encapsulation frame-relayframe-relay intf-type dce /模拟ISP需要将帧中继接口类型改为dce frame-relay route 806 interface Serial2/2 608interface Serial2/1encapsulation frame-relayframe-relay intf-type dce frame-relay route 406 interface Serial2/2 604interface Serial2/2encapsulation frame-relayframe-relay intf-type dce frame-relay route 604 interface Serial2/1 406 frame-relay route 608 interface Serial2/0 806需求四:将与帧中继相连的三个事务所配置成广播型,共子网:99.99.99.0/28,其中dental_ho(R66)事务所的路由器做为永久性DR,且采用子接口方式。1) 帧中继默认为NBMA(非广播)类型网络,需要将R6,R4,R5帧中继接口网络类型改为广播型:R6(config)#int s2/2R6(config-if)# ip ospf network broadcastR4(config)#int s2/1R4(config-if)# ip ospf network broadcastR5(config)#int s2/0R5(config-if)# ip ospf network broadcast2) 共子网:99.99.99.0/28其中dental_ho(R66)事务所的路由器做为永久性DR,且采用子接口方式:R6(config)#interface Serial2/2 no ip address encapsulation frame-relay / 子接口要开启多点链路主接口需要封装帧中继interface Serial2/2.1 multipoint /将子接口网络类型改为多点 ip address 99.99.99.3 255.255.255.240ip ospf priority 100 / 修改接口优先级使其成为DR frame-relay map ip 99.99.99.1 604 broadcast frame-relay map ip 99.99.99.2 608 broadcastR4(config)#interface Serial2/1 ip address 99.99.99.1 255.255.255.240 encapsulation frame-relay ip ospf network broadcastframe-relay map ip 99.99.99.3 406 broadcast R5(config)#interface Serial2/0 ip address 99.99.99.2 255.255.255.240 encapsulation frame-relay ip ospf network broadcast serial restart-delay 0 frame-relay map ip 99.99.99.3 806 broadcast需求五:按照图示配置OSPF区域,其中crowns(R55),root_canals(R44),pain_center(R11)之间的区域要配置成完全末梢区域。 1) 区域148需要配置完全末节区域即过滤三类LSA(network LSA)又过滤五类LSA(External LSA)。R1(config-router)#area 148 stub /将R1设为末节区域R4(config-router)#area 148 stub no-summary / ABR(R4,R5)设为完全末节区域R5(config-router)#area 148 stub no-summary R1#show ip routGateway of last resort is 148.148.148.1 to network 0.0.0.0 1.0.0.0/32 is subnetted, 1 subnetsC 1.1.1.1 is directly connected, Loopback0 148.148.0.0/24 is subnetted, 1 subnetsC 148.148.148.0 is directly connected, FastEthernet0/0 /R1上无法收到外部路由需求六:Orthopaedics(R22)是新收购的事务所,由于来不及布线施工而暂时并到surgery(R33)事务所,配置使得所有网络可达(ping测试)1) OSPF协议区域23未与骨干区域相连接要实现所以网络可达需要在R3与R6建立虚链路。R3(config-router)#area 36 virtual-link 6.6.6.6R6(config-router)#area 36 virtual-link 3.3.3.3需求七:在dental_ho(R66)事务上配置使得所有访问internet的流量都指向网络其直连的以太网络,同时把这条路由告诉OSPF区域。1) 要使访问internet的流量都指向网络其直连的以太网络,需要在R6路由器上将默认路由重发布进OSPF中。R6(config-router)#default-information originate always / 加入always 即使R6路由表上默认路由不存在也能下发默认路由。 需求八:Area0基于安全的原因配置上MD5认证,密码:goldtech1) R6(config-if)#int s2/2.1R6(config-subif)# ip ospf message-digest-key 1 md5 goldtech / 配置MD5密钥 R6(config-if)# area 0 authentication message-digest / 在区域里0启用区域MD5认证 R4(config)#interface Serial2/1ip ospf message-digest-key 1 md5 goldtechrouter ospf 2014area 0 authentication message-digestR5(config)#interface Serial2/0ip ospf message-digest-key 1 md5 goldtechrouter ospf 2014area 0 authentication message-digest需求九:pain_center(R11)是事务所总部,将其做为指定路由器,与它直连的两个事务所邻居关系保持two-way状态。1) 要使R1直连的R4,R5 邻居保持two-way状态 则需要把OSPF的直连接口优先级改为0使其不参与DR与BDR的选举。R1(config)#int fa0/0R1(config-if)#ip ospf priority 0R4(config)#int fa0/0R4(config-if)#ip ospf priority 0R5(config)#int fa0/0R5(config-if)#ip ospf priority 0需求十:为了减少网络流量,将pain_center(R11)所在区域汇总主类网络通告出去。1) 要将区域148的路由汇总主类网络通告出去,则需要在区域148的ABR(R4,R5)上进行OSPF汇总配置。R4(config)#router ospf 2014R4(config-router)#area 148 range 148.148.0.0 255.255.0.0R5(config)#router ospf 2014R5(config-router)#area 148 range 148.148.0.0 255.255.0.0R6#show ip routO IA 148.148.0.0/16 110/65 via 99.99.99.2, 00:01:41, Serial2/2.1 110/65 via 99.99.99.1, 00:01:41, Serial2/2.1需求十一:由于root_canals(R44)与dental_ho(R66)之间的PVC链路质量较好,适当配置使得pain_center(R11)优先选取root_canals(R44)访问自身区域除外的外部网络。1) 要使R1在访问外网时优走R4路线,则需要修改R4 OSPF的优先级。R4(config)#int fa0/0 R4(config-if)#ip ospf priority 200R1#traceroute 99.99.99.3Type escape sequence to abort.Tracing the route to 99.99.99.3 1 148.148.148.1 16 msec 44 msec 8 msec /此时 R1访问R6优走R4接口 2 99.99.99.3 24 msec 52 msec 20 msec需求十二:在area0以外的所有区域启用OSPF明文认证,密码:goldtech1) 需要在区域23,36,148配置明文认证,不同的区域使用不同的认证只要密码相同就能实现认证。R1(config)#int fa0/0R1(config-if)#ip ospf authentication-key goldtech /配置明文密码R1(config)#router ospf 2014R1(config-router)#area 148 authentication/启用区域认证R4(config)#int fa0/0R4(config-if)#ip ospf authentication-key goldtechR4(config)#router ospf 2014R4(config-router)#area 148 authenticationR5(config)#int fa0/0R5(config-if)#ip ospf authentication-key goldtechR5(config)#router ospf 2014R5(config-router)#area 148 authenticationR6(config)#int fa0/0R6(config-if)#ip ospf authentication-key goldtechR6(config)#router ospf 2014R6(config-router)#area 36 authenticationR3(config)#int fa0/0R3(config-if)#ip ospf authentication-key goldtechR3(config)#router ospf 2014R3(config-router)#area 36 authenticationR3(config)#int fa1/0R3(config-if)#ip ospf authentication-key goldtechR3(config)#router ospf 2014R3(config-router)#area 23 authenticationR2(config)#int fa1/0R2(config-if)#ip ospf authentication-key goldtechR2(config)#router ospf 2014R2(config-router)#area 23 authentication需求十三:当dental_h(R6)的E0网段出现故障而没出现在路由表时,此时dental_ho不能通告默认路由。1) 当R6上的默认路由发生故障没有出现在路由表中,要使其这时候不能通告默认路由,则需要在下下发OSPF默认路由器的命令中去除always。R6(config-router)#router ospf 2014R6(config-router)#default-information originate 第 17 页
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 图纸专区 > 小学资料


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!