资源描述:
《7.ospf广播型》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、OSPF:OpenShortestPathFirst开放最短路径优先协议拓扑图如下:(广播多路访问型)接口连接:Router1E0/0<---->Router4F0/1Router2E0/0<---->Router4F0/2Router3E0/0<---->Router4F0/3路由器参考配置如下:路由器R1的配置:Router>//用户模式Router>enable//从用户模式进入到特权模式Router#configureterminal//从特权模式进入到全局模式Router(config)#hostnameR1//给路由器从命名为R1R1(config)#no
2、ipdomainlookup//关闭域名查找R1(config)#lineconsole0//进入控制口R1(config-line)#loggingsynchronous//光标跟随R1(config-line)#exec-timeout00//关闭延迟R1(config-line)#exitR1(config)#interfaceloopback0//配置回环接口的ip地址R1(config-if)#ipaddress1.1.1.1255.255.255.0R1(config-if)#interfacee0/0//配置以太口的ip地址R1(config-if)#i
3、paddress192.1.1.1255.255.255.0R1(config-if)#noshutdown//激活物理接口R1(config-if)#endR1#showiprouteCodes:C-connected,S-static,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2i-IS-IS,s
4、u-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticrouteo-ODR,P-periodicdownloadedstaticrouteGatewayoflastresortisnotset1.0.0.0/24issubnetted,1subnetsC1.1.1.0isdirectlyconnected,Loopback0C192.1.1.0/24isdirectlyconnected,Ethernet0/0R1#confi
5、gureterminalR1(config)#routerospf1R1(config-router)#network1.1.1.10.0.0.0area2R1(config-router)#network192.1.1.10.0.0.0area2R1(config-router)#endR1#showiprouteCodes:C-connected,S-static,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFN
6、SSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticrouteo-ODR,P-periodicdownloadedstaticrouteGatewayoflastresortisnotset1.0.0.0/24issubnetted,1subnetsC1.1.1.0isdirectlyconne
7、cted,Loopback02.0.0.0/32issubnetted,1subnetsO2.2.2.2[110/11]via192.1.1.2,00:00:13,Ethernet0/03.0.0.0/32issubnetted,1subnetsO3.3.3.3[110/11]via192.1.1.3,00:00:13,Ethernet0/0C192.1.1.0/24isdirectlyconnected,Ethernet0/0R1#showipprotocolsRoutingProtocolis"ospf1"Outgoingupdatefilter