网站推广攻略,专业做网站建设,丹东seo营销,深圳市建设网络有限公司网站【实验名称】 配置 OSPF 多区域。 【实验目的】 配置 OSPF 多区域#xff0c;理解 OSPF 层次型网络的特点。 【背景描述】 本实验拓扑图中有 3 台路由器#xff0c;路由器在区域 0 和区域 1 中#xff0c;路由器 B 在区域 0 和区域 30#xff0c; 路由器 C 在区域 30。 【需… 【实验名称】 配置 OSPF 多区域。 【实验目的】 配置 OSPF 多区域理解 OSPF 层次型网络的特点。 【背景描述】 本实验拓扑图中有 3 台路由器路由器在区域 0 和区域 1 中路由器 B 在区域 0 和区域 30 路由器 C 在区域 30。 【需求分析】 需要基于本拓扑图实现 OSPF 多区域的配置并理解 OSPF 实现层次型网络的优点。 【实验拓扑】 实验的拓扑图如图 11-1 所示。 图 11-1 【实验设备】 路由器 3 台 【预备知识】 路由器基本配置知识、OSPF。 【实验原理】 配置 OSPF 路由协议实现多区域路由。 【实验步骤】 步骤 1 在路由器上配置 IP 地址。 RA#config t RA(config)# interface FastEthernet 0/0 RA(config-if)#ip address 192.168.1.2 255.255.255.0 RA(config)#interface Loopback 0 RA(config-if)#ip address 172.16.0.1 255.255.255.0 RA(config)#interface Loopback 1 RA(config-if)#ip address 172.16.1.1 255.255.255.0 RA(config)#interface Loopback 2 RA(config-if)#ip address 172.16.2.1 255.255.255.0 RA(config)#interface Loopback 3 RA(config-if)#ip address 172.16.3.1 255.255.255.0 RA(config)#interface Loopback 4 RA(config-if)#ip address 172.16.4.1 255.255.255.0 RB#config t RB(config)# interface FastEthernet 0/0 RB(config-if)#ip address 192.168.1.1 255.255.255.0 RB(config)#interface FastEthernet 0/1 RB(config-if)#ip address 192.168.2.1 255.255.255.0 RB(config)#interface Loopback 0 RB(config-if)#ip address 172.24.1.1 255.255.255.0 RB(config)#interface Loopback 1 RB(config-if)#p address 192.168.3.1 255.255.255.0 RC#config t RC(config)# interface FastEthernet 0/0 RC(config-if)#ip address 192.168.2.2 255.255.255.0 RC(config)#interface Loopback 0 RC(config-if)#ip address 172.24.2.1 255.255.255.0 RC(config)#interface Loopback 1 RC(config-if)#ip address 199.0.0.10 255.255.255.240 步骤 2 配置 OSPF。 RA(config)# router ospf 10 RA(config-router)#network 172.16.0.0 0.0.0.255 area 1 RA(config-router)#network 172.16.1.0 0.0.0.255 area 1 RA(config-router)#network 172.16.2.0 0.0.0.255 area 1 RA(config-router)#network 172.16.3.0 0.0.0.255 area 1 RA(config-router)#network 172.16.4.0 0.0.0.255 area 1 RA(config-router)#network 192.168.1.0 0.0.0.255 area 0 RB(config)# router ospf 10 RB(config-router)#network 172.24.1.0 0.0.0.255 area 0 RB(config-router)#network 192.168.1.0 0.0.0.255 area 0 实验 11 OSPF 多区域配置 ·7· RB(config-router)#network 192.168.2.0 0.0.0.255 area 30 RB(config-router)#network 192.168.3.0 0.0.0.255 area 0 RC(config)# router ospf 10 RC(config-router)#network 172.24.2.0 0.0.0.255 area 30 RC(config-router)#network 192.168.2.0 0.0.0.255 area 30 步骤 3 验证测试。 用命令 show ip route 和 sh ip ospf neighbor 来验证配置。 RA#show ip route Codes: C - connected, S - static, R - RIP B - BGP O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default Gateway of last resort is no set C 172.16.0.0/24 is directly connected, Loopback 0 C 172.16.0.1/32 is local host. C 172.16.1.0/24 is directly connected, Loopback 1 C 172.16.1.1/32 is local host. C 172.16.2.0/24 is directly connected, Loopback 2 C 172.16.2.1/32 is local host. C 172.16.3.0/24 is directly connected, Loopback 3 C 172.16.3.1/32 is local host. C 172.16.4.0/24 is directly connected, Loopback 4 C 172.16.4.1/32 is local host. O 172.24.1.1/32 [110/1] via 192.168.1.1, 00:03:13, FastEthernet 0/0 O IA 172.24.2.1/32 [110/2] via 192.168.1.1, 00:00:35, FastEthernet 0/0 C 192.168.1.0/24 is directly connected, FastEthernet 0/0 C 192.168.1.2/32 is local host. O IA 192.168.2.0/24 [110/2] via 192.168.1.1, 00:03:13, FastEthernet 0/0 O 192.168.3.1/32 [110/1] via 192.168.1.1, 00:03:13, FastEthernet 0/0 RC#show ip route Codes: C - connected, S - static, R - RIP B - BGP O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default Gateway of last resort is 0.0.0.0 to network 0.0.0.0 S* 0.0.0.0/0 is directly connected, Loopback 1 O IA 172.16.0.0/24 [110/2] via 192.168.2.1, 00:02:49, FastEthernet 0/0 O IA 172.16.1.0/24 [110/2] via 192.168.2.1, 00:02:49, FastEthernet 0/0 实验 11 OSPF 多区域配置 ·8· O IA 172.16.2.0/24 [110/2] via 192.168.2.1, 00:02:49, FastEthernet 0/0 O IA 172.16.3.0/24 [110/2] via 192.168.2.1, 00:02:49, FastEthernet 0/0 O IA 172.16.4.0/24 [110/2] via 192.168.2.1, 00:02:49, FastEthernet 0/0 O IA 172.24.1.0/24 [110/1] via 192.168.2.1, 00:02:49, FastEthernet 0/0 C 172.24.2.0/24 is directly connected, Loopback 0 C 172.24.2.1/32 is local host. O IA 192.168.1.0/24 [110/2] via 192.168.2.1, 00:02:49, FastEthernet 0/0 C 192.168.2.0/24 is directly connected, FastEthernet 0/0 C 192.168.2.2/32 is local host. O IA 192.168.3.0/24 [110/1] via 192.168.2.1, 00:02:49, FastEthernet 0/0 C 199.0.0.0/28 is directly connected, Loopback 1 C 199.0.0.10/32 is local host. RB#show ip ospf neighbor OSPF process 10: Neighbor ID Pri State Dead Time Address Interface 172.16.4.1 1 Full/DR 00:00:37 192.168.1.2 FastEthernet 0/0 199.0.0.10 1 Full/BDR 00:00:35 192.168.2.2 FastEthernet 0/1 【参考配置】 RA#show running-config Building configuration... Current configuration : 1029 bytes ! version RGNOS 10.1.00(4), Release(18443)(Tue Jul 17 20:50:30 CST 2007 -ubu1server) hostname RA ! enable secret 5 $1$db44$8x67vy78Dz5pq1xD ! interface FastEthernet 0/0 ip address 192.168.1.2 255.255.255.0 duplex auto speed auto ! interface FastEthernet 0/1 duplex auto speed auto ! interface Loopback 0 ip address 172.16.0.1 255.255.255.0 ! interface Loopback 1 ip address 172.16.1.1 255.255.255.0 实验 11 OSPF 多区域配置 ·9· ! interface Loopback 2 ip address 172.16.2.1 255.255.255.0 ! interface Loopback 3 ip address 172.16.3.1 255.255.255.0 ! interface Loopback 4 ip address 172.16.4.1 255.255.255.0 ! router ospf 10 network 172.16.0.0 0.0.0.255 area 1 network 172.16.1.0 0.0.0.255 area 1 network 172.16.2.0 0.0.0.255 area 1 network 172.16.3.0 0.0.0.255 area 1 network 172.16.4.0 0.0.0.255 area 1 network 192.168.1.0 0.0.0.255 area 0 ! line con 0 line aux 0 line vty 0 4 login ! end RB#show running-config Building configuration... Current configuration : 807 bytes ! version RGNOS 10.1.00(4), Release(18443)(Tue Jul 17 20:50:30 CST 2007 -ubu1server) hostname RB ! enable secret 5 $1$db44$8x67vy78Dz5pq1xD ! interface FastEthernet 0/0 ip address 192.168.1.1 255.255.255.0 duplex auto speed auto ! interface FastEthernet 0/1 ip address 192.168.2.1 255.255.255.0 实验 11 OSPF 多区域配置 ·10· duplex auto speed auto ! interface Loopback 0 ip address 172.24.1.1 255.255.255.0 ! interface Loopback 1 ip address 192.168.3.1 255.255.255.0 router ospf 10 network 172.24.1.0 0.0.0.255 area 0 network 192.168.1.0 0.0.0.255 area 0 network 192.168.2.0 0.0.0.255 area 30 network 192.168.3.0 0.0.0.255 area 0 ! line con 0 line aux 0 line vty 0 4 login ! end RC#show running-config Building configuration... Current configuration : 734 bytes ! version RGNOS 10.1.00(4), Release(18443)(Tue Jul 17 20:50:30 CST 2007 -ubu1server) hostname RC ! enable secret 5 $1$db44$8x67vy78Dz5pq1xD ! interface FastEthernet 0/0 ip address 192.168.2.2 255.255.255.0 duplex auto speed auto ! interface FastEthernet 0/1 duplex auto speed auto ! interface Loopback 0 ip address 172.24.2.1 255.255.255.0 ! 实验 11 OSPF 多区域配置 ·11· interface Loopback 1 ip address 199.0.0.10 255.255.255.240 ! router ospf 10 network 172.24.2.0 0.0.0.255 area 30 network 192.168.2.0 0.0.0.255 area 30 ! ip route 0.0.0.0 0.0.0.0 Loopback 1 ! line con 0 line aux 0 line vty 0 4 login ! end 实验 11 OSPF 多区域配置 ·12· 
 文章转载自: http://www.morning.sqnrz.cn.gov.cn.sqnrz.cn http://www.morning.cwqln.cn.gov.cn.cwqln.cn http://www.morning.wqkzf.cn.gov.cn.wqkzf.cn http://www.morning.tfgkq.cn.gov.cn.tfgkq.cn http://www.morning.plwfx.cn.gov.cn.plwfx.cn http://www.morning.bnlkc.cn.gov.cn.bnlkc.cn http://www.morning.ychrn.cn.gov.cn.ychrn.cn http://www.morning.qzbwmf.cn.gov.cn.qzbwmf.cn http://www.morning.tpwrm.cn.gov.cn.tpwrm.cn http://www.morning.ykwgl.cn.gov.cn.ykwgl.cn http://www.morning.lsssx.cn.gov.cn.lsssx.cn http://www.morning.grxsc.cn.gov.cn.grxsc.cn http://www.morning.kldtf.cn.gov.cn.kldtf.cn http://www.morning.klzt.cn.gov.cn.klzt.cn http://www.morning.wmcng.cn.gov.cn.wmcng.cn http://www.morning.jzdfc.cn.gov.cn.jzdfc.cn http://www.morning.pmbcr.cn.gov.cn.pmbcr.cn http://www.morning.jlxqx.cn.gov.cn.jlxqx.cn http://www.morning.ckdgj.cn.gov.cn.ckdgj.cn http://www.morning.ftnhr.cn.gov.cn.ftnhr.cn http://www.morning.mqxzh.cn.gov.cn.mqxzh.cn http://www.morning.errnull.com.gov.cn.errnull.com http://www.morning.tkqzr.cn.gov.cn.tkqzr.cn http://www.morning.yzktr.cn.gov.cn.yzktr.cn http://www.morning.mrqwy.cn.gov.cn.mrqwy.cn http://www.morning.wyzby.cn.gov.cn.wyzby.cn http://www.morning.hksxq.cn.gov.cn.hksxq.cn http://www.morning.jksgy.cn.gov.cn.jksgy.cn http://www.morning.zzfqn.cn.gov.cn.zzfqn.cn http://www.morning.tfkqc.cn.gov.cn.tfkqc.cn http://www.morning.nzhzt.cn.gov.cn.nzhzt.cn http://www.morning.xtxp.cn.gov.cn.xtxp.cn http://www.morning.nfmtl.cn.gov.cn.nfmtl.cn http://www.morning.chmkt.cn.gov.cn.chmkt.cn http://www.morning.gcbhh.cn.gov.cn.gcbhh.cn http://www.morning.ktmnq.cn.gov.cn.ktmnq.cn http://www.morning.hhboyus.cn.gov.cn.hhboyus.cn http://www.morning.fyglr.cn.gov.cn.fyglr.cn http://www.morning.qsmch.cn.gov.cn.qsmch.cn http://www.morning.ywpwq.cn.gov.cn.ywpwq.cn http://www.morning.cftkz.cn.gov.cn.cftkz.cn http://www.morning.lhxkl.cn.gov.cn.lhxkl.cn http://www.morning.zqfjn.cn.gov.cn.zqfjn.cn http://www.morning.nytqy.cn.gov.cn.nytqy.cn http://www.morning.ggrzk.cn.gov.cn.ggrzk.cn http://www.morning.wbrf.cn.gov.cn.wbrf.cn http://www.morning.yhrfg.cn.gov.cn.yhrfg.cn http://www.morning.hwzzq.cn.gov.cn.hwzzq.cn http://www.morning.tgtwy.cn.gov.cn.tgtwy.cn http://www.morning.nlqmp.cn.gov.cn.nlqmp.cn http://www.morning.qpnmd.cn.gov.cn.qpnmd.cn http://www.morning.kmqlf.cn.gov.cn.kmqlf.cn http://www.morning.qrsm.cn.gov.cn.qrsm.cn http://www.morning.youyouling.cn.gov.cn.youyouling.cn http://www.morning.klzdy.cn.gov.cn.klzdy.cn http://www.morning.jtcq.cn.gov.cn.jtcq.cn http://www.morning.tndhm.cn.gov.cn.tndhm.cn http://www.morning.gbsfs.com.gov.cn.gbsfs.com http://www.morning.ffgbq.cn.gov.cn.ffgbq.cn http://www.morning.ldwxj.cn.gov.cn.ldwxj.cn http://www.morning.qlrwf.cn.gov.cn.qlrwf.cn http://www.morning.xpqyf.cn.gov.cn.xpqyf.cn http://www.morning.mhmsn.cn.gov.cn.mhmsn.cn http://www.morning.gcqs.cn.gov.cn.gcqs.cn http://www.morning.tnwwl.cn.gov.cn.tnwwl.cn http://www.morning.ygxf.cn.gov.cn.ygxf.cn http://www.morning.qkwxp.cn.gov.cn.qkwxp.cn http://www.morning.fbnsx.cn.gov.cn.fbnsx.cn http://www.morning.wktbz.cn.gov.cn.wktbz.cn http://www.morning.rnhh.cn.gov.cn.rnhh.cn http://www.morning.yznsx.cn.gov.cn.yznsx.cn http://www.morning.zwmjq.cn.gov.cn.zwmjq.cn http://www.morning.nllst.cn.gov.cn.nllst.cn http://www.morning.xzqzd.cn.gov.cn.xzqzd.cn http://www.morning.yckwt.cn.gov.cn.yckwt.cn http://www.morning.xbptx.cn.gov.cn.xbptx.cn http://www.morning.qqbjt.cn.gov.cn.qqbjt.cn http://www.morning.bgrsr.cn.gov.cn.bgrsr.cn http://www.morning.yfnjk.cn.gov.cn.yfnjk.cn http://www.morning.xbxks.cn.gov.cn.xbxks.cn