组网说明:
本案例采用思科模拟器的路由器来实现OSPF NSSA的典型组网需求,在该网络中,R1、R2属于区域0、R3与R2属于区域1,通过配置OSPF实现PC之间的业务互通。同时将区域1配置为NSSA,实现对路由的优化。
知识穿插:
自治系统外的ASE路由不可以进入到NSSA区域中,但是NSSA区域内的路由器引入的ASE路由可以在NSSA中传播并发送到区域之外。即:取消了STUB关于ASE的双向传播的限制(区域外的进不来,区域里的也出不去),改为单向限制(区域外的进不来,区域里的能出去)。
1、按照网络拓扑图配置IP地址。
2、分别配置R1、R2、R3的OSPF,同时将区域1配置为NSSA区域,在R3配置为最终的NSSA区域。
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)#area 1 nssa
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)#area 1 nssa no-summary
R3(config-router)#exit
R3(config)#do wr
Building configuration...
[OK]
分别查看R1、R2、R3的OSPF邻居建立情况,均已经完成建立。
分别查看R1、R2、R3的路由表,均已经学习到对端传递过来的路由。
PC分别填写IP地址,且能相互PING通。
至此,思科路由器OSPF NSSA典型组网配置案例已完成!
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作