本案例采用思科模拟器的路由器来实现多区域OSPF的典型组网需求,在该网络中,R1、R2属于区域0、R3与R2属于区域1,通过配置OSPF实现PC之间的业务互通。
1、按照网络拓扑图配置IP地址。
2、分别配置R1、R2、R3的OSPF。
3、PC之间进行相互PING测试。
R1:
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos R1
R1(config)#int f 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#int f 0/1
R1(config-if)#ip address 10.0.0.1 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#router ospf 1
R1(config-router)#network 10.0.0.0 0.0.0.3 area 0
R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
R1(config-router)#exit
R1(config)#do wr
Building configuration...
[OK]
R1(config)#
R2:
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos R2
R2(config)#int f 0/0
R2(config-if)#ip address 10.0.0.2 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#int f 0/1
R2(config-if)#ip address 10.1.1.1 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#router ospf 1
R2(config-router)#network 10.0.0.0 0.0.0.3 area 0
R2(config-router)#network 10.1.1.0 0.0.0.3 area 1
R2(config-router)#exit
R2(config)#do wr
Building configuration...
[OK]
R3:
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos R3
R3(config)#int f 0/0
R3(config-if)#ip address 192.168.2.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#int f 0/1
R3(config-if)#ip address 10.1.1.2 255.255.255.252
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#router ospf 1
R3(config-router)#network 10.1.1.0 0.0.0.3 area 1
R3(config-router)#network 192.168.2.0 0.0.0.255 area 1
R3(config-router)#exit
R3(config)#do wr
Building configuration...
[OK]
分别查看R1、R2、R3的OSPF邻居建立情况,均已经完成建立。
分别查看R1、R2、R3的路由表,均已经学习到对端传递过来的路由。
PC分别填写IP地址,且能相互PING通。
至此,思科路由器多区域OSPF典型组网配置案例已完成!
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作