首页 > 其他 > 详细

广播多路访问链路上的OSPF

时间:2018-06-26 19:55:51      阅读:233      评论:0      收藏:0      [点我收藏+]

拓扑图如下

技术分享图片

路由器0

Router>en

Router#conf t

Router(config)#hostname router1

router1(config)#interface g0/0

router1(config-if)#ip address 192.168.1.1 255.255.255.0

router1(config-if)#no shutdown

router1(config-if)#exit

router1(config)#interface l0

router1(config-if)#ip address 1.1.1.1 255.255.255.0

router1(config-if)#no shutdown

router1(config-if)#exit

router1(config)#router ospf 1

router1(config-router)#router-id 1.1.1.1

router1(config-router)#network 1.1.1.0 0.0.0.255 area 0

router1(config-router)#network 192.168.1.0 0.0.0.255 area 0

路由器1

Router>enable

Router#conf t

Router(config)#hostname router2

router2(config)#interface g0/0

router2(config-if)#ip address 192.168.1.2 255.255.255.0

router2(config-if)#no shutdown

router2(config-if)#exit

router2(config)#interface l0

router2(config-if)#ip address 2.2.2.2 255.255.255.0

router2(config-if)#no shutdown

router2(config-if)#exit

router2(config)#router ospf 1

router2(config-router)#router-id 2.2.2.2

router2(config-router)#network 192.168.1.0 0.0.0.255 area 0

router2(config-router)#network 2.2.2.0 0.0.0.255 area 0

路由器2

Router>enable

Router#conf t

Router(config)#hostname router3

router3(config)#interface g0/0

router3(config-if)#ip address 192.168.1.3 255.255.255.0

router3(config-if)#no shutdown

router3(config-if)#exit

router3(config)#interface l0

router3(config-if)#ip address 3.3.3.3 255.255.255.0

router3(config-if)#no shutdown

router3(config-if)#exit

router3(config)#router ospf 1

router3(config-router)#router-id 3.3.3.3

router3(config-router)#network 192.168.1.0 0.0.0.255 area 0

router3(config-router)#network 3.3.3.0 0.0.0.255 area 0

 

路由器3

Router>en

Router#conf t

Router(config)#hostname router4

router4(config)#interface g0/0

router4(config-if)#ip address 192.168.1.4 255.255.255.0

router4(config-if)#no shutdown

router4(config-if)#exit

router4(config)#interface l0

router4(config-if)#ip address 4.4.4.4 255.255.255.0

router4(config-if)#no shutdown

router4(config-if)#exit

router4(config)#router ospf 1

router4(config-router)#router-id 4.4.4.4

router4(config-router)#network 192.168.1.0 0.0.0.255 area 0

router4(config-router)#network 4.4.4.0 0.0.0.255 area 0

设置完成

 

广播多路访问链路上的OSPF

原文:https://www.cnblogs.com/ruanjie/p/9230166.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!