美文网首页
动态路由中OSPF多区域的配置

动态路由中OSPF多区域的配置

作者: 小银贼 | 来源:发表于2017-12-25 22:05 被阅读0次

实验目的:

利用优先级来实现各路由间的转换。

实验拓扑图:

动态路由中OSPF多区域的配置

实验步骤:

1.开启端口

Router0:

Router>enable

Router#config terminal

Router(config)#hostname R0

R0(config)#interface f0/1

R0(config-if)#ip address 10.0.2.254 255.255.255.0

R0(config-if)#no shutdown

R0(config-if)#exit

R0(config)#interface f0/1

R0(confif-if)#ip address 10.0.1.254 255.255.255.0

R0(config-if)#no shutdown

R0(config-if)#exit

R0(config)#interface S0/1

R0(confif-if)#ip address 20.0.0.254 255.255.255.0

R0(confif-if)#no shutdown

Router1:

Router>enable

Router#config terminal

Router(config)#hostname R1

R1(config)#interface f0/0

R1(config-if)#ip address 30.0.0.254 255.255.255.0

R1(config-if)#exit

R1(config)#interface s1/0

R2(config-if)#ip address 20.0.0.2 255.255.255.0

R1(config-if)#no shutdown

R2(config-if)#exit

R2(config)#interface s1/1

R2(config-if)#ip address 40.0.0.1 255.255.255.0

R2(config-if)#no shutdown

Router2:

Router>enable

Router#config terminal

Router(config)#hostname R2

R2(config)#interface f0/0

R2(config-if)#ip address 50.0.0.2 255.255.255.0

R2(config-if)#no shutdown

R2(config-if)#exit

R2(config)#interface s1/1

R2(config-if)#ip address 40.0.0.2 255.255.255.0

R2(config-if)#no shutdown

2. 配置时钟频率及OSPF路由配置:

R0:

R0(config)#interface s1/0

R0(config-if)#clock rate 64000

R0(config-if)#extit

R0(config)#router ospf 100

R0(config-router)#network 10.0.1.0 0.0.0.255 area 1

R0(config-router)#network 10.0.2.0 0.0.0.255 area 1

R0(config-router)#network 20.0.0.0 0.0.0.255 area 1

R1:

R1(config)#interface s1/0

R1(config-if)#clock rate 64000

R1(config-if)#extit

R1(config)#interface s1/1

R1(config-if)#clock rate 64000

R1(config-if)#exit

R1(config)#router ospf 200

R1(config-router)#network 30.0.0.0 0.0.0.255 area 2

R1(config-router)#network 40.0.0.0 0.0.0.255 area 3

R1(config-router)#network 20.0.0.0 0.0.0.255 area 1

R1(config-router)#network 50.0.0.0 0.0.0.255 area 3

R2:

R2(config)#interface s0/0

R2(config-if)#clock rate 64000

R2(config-if)#extit

R2(config)#interface s1/1

R2(config-if)#clock rate 64000

R2(config-if)#exit

R2(config)#router ospf 300

R2(config-router)#network 40.0.0.0 0.0.0.255 area 3

R2(config-router)#network 50.0.0.0 0.0.0.255 area 3

4.个人总结:

OSPF配置时,需要考虑各区域的负载能力,通过对路由区域的配置,来合理进行区域划分。

相关文章

网友评论

      本文标题:动态路由中OSPF多区域的配置

      本文链接:https://www.haomeiwen.com/subject/tpprgxtx.html