资源描述:
《OSPF静态路由配置》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、OSPF静态路由配置IsdevelopedbyIETFforOSPFroutingprotocol,belongstotheinternalgatewayprotocol(IGP),differentfromthedistancevectorprotocolsofRIP,OSPFisalink-stateprotocols,hasfastconvergeneespeedanddistancevector,moresuitableforlargenetworks・OSPFiscurrentlyusedmorewidelydynamicroutingprotocol,heisnotaCI
2、SCO,sproprietaryroutingprotocol,canbeconnectedCISCO,multiplecompaniessuchashuawei,routers,compatibilityisverygood・OSPFprotocolcanruninthreekindsoftopologystructure:radiotypemultipleAccess(BroadcastMulti-Access),point-to-pointtopology(PointToPoint),theBroadcastmultipleAccess(Non-BroadcastMulti-A
3、ccess,NBMA):Whatwe'redoingtodayisthepoint-to-pointtopology(noDR/BDRinthisnetwork)・Therearesomequestionsforyoutodiscuss,solet'stakealookatthefollowingtopology:Routerlconfiguration:PressEntertoStartTheRouter>enableEnterconfigurationcommands,oneperline.EndwithCNTL/Z.TheRouter(config)#hostnameRoute
4、lRoutel(config)#interfaceeORoutel(config-if)#IPaddress192.168.1.2255.255.0Routel(config-if)#noshutdownInterfaceEthernetO,changedstatetoupRoutel(config-if)#interfacesORoutel(config-if)#IPaddress192.16&2.255.255.255.0Routel(config-if)#noshutdownInterfaceSerialO,changedstatetoupInterfaceSerialO,ch
5、angedstatetodownLineprotocolonInterfaceSerialO,changedstatetodownRoutel(config-if)#enRoutel(config-if)#encapsulationPPPRoutel(config)#route?RipRoutingInformationProtocol(rip)IgrpInteriorGatewayRoutingProtocol(igrp)TheeigrpEnhancedInteriorGatewayRoutingProtocol(eigrp)OspfOpenPathFirst(ospf)BGPBo
6、rderGatewayProtocol(BGP)ISISISOis-isWordRoutemaptagRoutel(config)#routeospf?<1-65535>ProcessIDRoutel(config)#routeospf1//enableospfprotocolRoutel(config-router)#network192.16&2.00.0.255area0//releaseadjacencynetworkRoutel(config-router)#network192.16&0.0.255area0//hereis192.168.1.0and192.168.2.
7、0Routel(config)#exitRoutel#copyrunning-configstartup一configDestinationfilename[startup-config]?Buildingtheconfiguration・・・[OK]Router2configuration:PressEntertoStartTheRouter>enableRouter#configterminalEnterconfigurationcommands,on