资源描述:
《lab10动态路由协议――单域ospf配置》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、LAB.10动态路由协议一单域0SPF配置实验目的:1.理解动态路由协议0SPF的内容;2.理解0SPF等链路状态协议的算法处理过程;3.掌握0SPF的基木配置,并与距离失量协议的配置过程相比较;4.掌握DR和BDR,手动配置DR、BDR。实验拓扑如下单域OSPF配置www.79it.coid实验过程:R1配置如下:R1(config)#interfaceLoopbackORl(config-if)#ipaddress1.1.1.1255.255.255.255R1(config-if)#interfaceFastEthernetO
2、/ORl(config-if)#ipaddress172.16.13.1255.255.255.0R1(config-if)#interfaceSerial1/0R1(config-if)#ipaddress172.16.12.1255.255.255.0R1(config-if)#clockrate64000R1(config)#routorospf110R1(config-router)#router-id1.1.1.1R1(config-router)#network1.1.1.10.0.0.0area0R1(config-r
3、outer)#network172.16.12.00.0.0.255area0R1(config-router)tfnetwork172.16.13.00.0.0.255area0R2配置如下:R2(config)#interfaceLoopbackOR2(config-if)#ipaddress2.2.2.2255.255.255.255R2(config-if)#interfaceSeriall/0R2(config-if)#ipaddress172.16.12.2255.255.255.0R2(config-if)#clock
4、rate64000R2(config-if)#interfaceSeriall/1R2(config-if)#ipaddress172.16.23.2255.255.255.0R2(config-if)#clockrate64000R2(config)routerospf110R2(config-router)#router-id2.2.2.2R2(config-router)^network2.2.2.20.0.0.0area0R2(config-router)^network172.16.12.00.0.0.255area0R2
5、(config-router)^network172.16.23.00.0.0.255area0R3配置如下:R3(config)#interfaceLoopbackOR3(config-if)#ipaddress3.3.3.3255.255.255.255R3(config-if)#interfaceFastEthernet0/0R3(config-if)#ipaddress172.16.13.2255.255.255.0R3(config-if)^interfaceSeriall/1R3(config-if)#ipaddress
6、172.16.23.1255.255.255.0R3(config-if)#clockrate64000R3(config)#routerospf110R3(config-router)#router~id3.3.3.3R3(config-router)^network3.3.3.30.0.0.0area0R3(config-router)^network172.16.13.00.0.0.255area0R3(config-router)^network172.16.23.00.0.0.255area0查看Rl、R2、R3路由表Co
7、des:C-connected,S-static,R-RIP,M-mobile,B-BGPD-ETGRP,EX-ETGRPexternal,0-OSPF,TA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2El-OSPFexternaltype1,E2-OSPFexternaltype2i-1S-IS,su-1S-ISsummary,LI-1S-1Slevel-1,L2-1S-1Slevel-2ia-IS-ISinterarea,*-candidatede
8、fault,U-per-userstaticrouteo-ODR,P-periodicdownloadedstaticrouteRl#showiprouteGatewayoflastresortisnotset1.0.0.0/321.