资源描述:
《rcna实验14OSPF单区域配置》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、实验14OSPF单区域配置一、【实验目的】配置OSPF单区域实验,实现简单的OSPF配置二、【实验拓扑】1841Router2三、【实验步骤】步骤1在路由器上配置IP地址RA(config)#intf0/0RA(config-if)#ipaddRA(config-if)#ipaddress192.168.20.1255.255.255.0RA(config-if)#noshutRB(config)#intf0/0RB(config-if)#ipaddress192.168.20.2255.255.255.0RB(config-if)#noshuRB(config-if)#intf0
2、/1RB(config-if)#ipaddress192.168.10.1255.255.255.0RB(config-if)#noshutRC(config)#intf0/1RC(config-if)#ipaddress192.168.10.2255.255.255.0RC(config-if)#noshut步骤2配置OSPFRA(config)#routerospf10RA(config-router)#netRA(config-router)#network192.168.20.00.0.0.3area0RB(config)#routerospf10RB(config-rou
3、ter)#netwRB(config-router)#network192.168.20.20.0.0.3area0RB(config-router)#network192.168.10.10.0.0.3area0RC(config)#routerospf10RC(config-router)#network192.168.10.00.0.0.3area0VlanlunassignedYESunsetadministrativelydowndown步骤4验证测试RA#showipinterfacebriefInterfaceIP-AddressOK?MethodStatusProt
4、ocolFastEthernetO/O192.168.20.1YESmanualupupFastEthernetO/1unassignedYESunsetadministrativelydowndownVlanlunassignedYESunsetadministrativelydowndownRB#showipinterfacebriefInterfaceIP-AddressOK?MethodStatusProtocolFastEthernetO/O192.168.20.2YESmanualupupFastEthernetO/1192.168.10.1YESmanualupupR
5、C#showipinterfacebriefInterfaceIP-AddressOK?MethodStatusProtocolFastEthernetO/OunassignedYESunsetadministrativelydowndownFastEthernetO/1192.168.10.2YESmanualupupVlanlunassignedYESunsetadministrativelydowndownRA#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPex
6、ternal,O-OSPF,IA-OSPFinterareaN1・OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype15E2-OSPFexternaltype2,E・EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia・IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotsetO192.16
7、8.10.0/24[110/2]via192.168.20.2,00:03:37,FastEthernetO/OC192.168.20.0/24isdirectlyconnected,FastEthernetO/ORB#showiprouteCodes:C・connected,S・static,I-IGRP,R-RIP,M・mobile,B・BGPD・EIGRP,EX・EIGRPexternal,O-OSPF,IA・OSPFinterareaN1-OSPFNSSAex