简单的OSPF多区配置
生活随笔
收集整理的这篇文章主要介绍了
简单的OSPF多区配置
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
简单的OSPF多区配置 完成标准:每个路由器的路由表中都有7个网段的路由,用show ip route查看 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
R1的配置: Router> en Router# config t Router(config)# host R1 R1(config)# int e0/0 R1(config-if)# ip add 192.168.1.1 255.255.255.0 R1(config-if)# no shut R1(config-if)# int e0/1 R1(config-if)# ip add 192.168.2.1 255.255.255.0 R1(config-if)# no shut R1(config-if)# int loop 0 R1(config-if)# ip add 172.16.1.1 255.255.255.0 R1(config-if)# no shut R1(config-if)# exit R1(config)# router ospf 10 R1(config-router)# net 192.168.1.0 <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />0.0.0.255 a 0 R1(config-router)# net 192.168.2.0 0.0.0.255 a 0 R1(config-router)# net 172.16.1.0 0.0.0.255 a 0 R1(config-router)# end R1#
R2的配置 Router> en Router# config t Router(config)# host R2 R2(config)# int e0/1 R2(config-if)# ip add 192.168.2.2 255.255.255.0 R2(config-if)# no shut R2(config-if)# int e0/2 R2(config-if)# ip add 192.168.3.1 255.255.255.0 R2(config-if)# no shut R2(config-if)# int loop 0 R2(config-if)# ip add 172.17.1.1 255.255.255.0 R2(config-if)# no shut R2(config-if)# exit R2(config)# router ospf 10 R2(config-router)# net 192.168.2.0 0.0.0.255 a 0 R2(config-router)# net 192.168.3.0 0.0.0.255 a 1 R2(config-router)# net 172.17.1.0 0.0.0.255 a 1 R2(config-router)# end R2#
R3的配置
Router> en Router# config t Router(config)# host R3 R3(config)# int e0/2 R3(config-if)# ip add 192.168.3.2 255.255.255.0 R3(config-if)# no shut R3(config-if)# int e0/0 R3(config-if)# ip add 192.168.4.1 255.255.255.0 R3(config-if)# no shut R3(config-if)# int loop 0 R3(config-if)# ip add 172.18.1.1 255.255.255.0 R3(config-if)# no shut R3(config-if)# exit R3(config)# router ospf 10 R3(config-router)# net 192.168.3.0 0.0.0.255 a 1 R3(config-router)# net 192.168.4.0 0.0.0.255 a 1 R3(config-router)# net 172.18.1.0 0.0.0.255 a 1 R3(config-router)# end R3#
R1#show ip route R1#show ip route R1#show ip route 在任意路由器上查看路由表,匀能看到7条路由即为成功。
转载于:https://blog.51cto.com/xiangruyimo/331880
总结
以上是生活随笔为你收集整理的简单的OSPF多区配置的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 正确的唱歌
- 下一篇: 关于Ping命令的问题