您的位置:首页 > 其它

ospf 多区域实验

2009-12-31 19:54 387 查看


R1的配置

interface f0/0
ip add 20.0.0.1 255.255.255.252
no shutdown

interface f1/0
ip add 10.10.0.1 255.255.255.252
no shutdown

interface f2/0
ip add 10.0.0.1 255.255.255.252
no shutdown

interface loopback 0
ip add 1.1.1.1 255.255.255.0

router ospf 11
network 20.0.0.0 0.0.0.3 area 2
network 10.0.0.0 0.0.0.3 area 0
network 10.10.0.0 0.0.0.3 area 0
area 2 stub

R2的配置

interface f0/0
ip add 30.0.0.1 255.255.255.252
no shutdown

interface f1/0
ip add 10.10.10.1 255.255.255.252
no shutdown

interface f2/0
ip add 10.0.0.2 255.255.255.252
no shutdown

interface loopback 0
ip add 2.2.2.2 255.255.255.0

router ospf 12
network 30.0.0.0 0.0.0.3 area 3
network 10.10.10.0 0.0.0.3 area 0
network 10.0.0.0 0.0.0.3 area 0
area 3 stub no-summary

R3的配置

interface f0/0
ip add 40.0.0.1 255.255.255.252
no shutdown

interface f1/0
ip add 10.10.0.2 255.255.255.252
no shutdown

interface f2/0
ip add 10.10.10.2 255.255.255.252
no shutdown

interface loopback 0
ip add 3.3.3.3 255.255.255.0

router ospf 13
network 40.0.0.0 0.0.0.3 area 4
network 10.10.0.0 0.0.0.3 area 0
network 10.10.10.0 0.0.0.3 area 0
area 4 nssa no-summary

R4的配置

interface f0/0
ip add 20.0.0.2 255.255.255.252
no shutdown

interface loopback 0
ip add 4.4.4.4 255.255.255.0

router ospf 14
network 20.0.0.0 0.0.0.3 area 2
area 2 stub
R5的配置

interface f0/0
ip add 30.0.0.2 255.255.255.252
no shutdown

interface loopback 0
ip add 5.5.5.5 255.255.255.252

router ospf 15
network 30.0.0.0 0.0.0.3 area 3
area 3 stub no-summary

R6的配置(ASBR)

interface f0/0
ip add 40.0.0.2 255.255.255.252
no shutdown

interface f1/0
ip add 172.16.0.1 255.255.0.0
no shutdown

interface loopback 0
ip add 6.6.6.6 255.255.255.0

router ospf 16
network 40.0.0.0 0.0.0.3 area 4
area 4 nssa no-summary
redistribute rip subnets

router rip
version 2
no auto 关闭路由汇总
network 172.16.0.0
redistribute ospf 16 metric 10

R7的配置
interface f0/0
ip add 172.16.0.1 255.255.0.0
no shutdown

router rip
version 2
network 172.16.0
nssa非纯末梢区域
在一个自治区的末梢区域 连接了一个路由器或是一个不同协议的自治区 它们之间要通信就必须通过该路由器与末梢区域的边界路由器相连 组成一个nssa 而边界路由器则变成了一个ASBR

配置nssa区域
router ospf 10
area 1 nssa no-summary
在nssa区域的所有边界路由器ASBR都需要配置 no-summary

no-summary 是可选参数 在ABR上配置NSSA区域时如果使用no-summary这条命令。除了允许通告一条指向ABR的默认路由的类型3的lsa外,其他的类型3和类型4的lsa都在nssa区域内被阻止。

本文出自 “迷茫中坚定,前进中摇摆” 博客,请务必保留此出处http://xiaoshi1991.blog.51cto.com/1066870/253444
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: