多区OSPF综合实验
172. 24. 0. 0/16 上海
172. 25.
172. 26.
武汉
广州
1 堕 6. 3. 0/24
.
. 2.
区1
郑州router ospf 1
router-id
net area 1
redistribute rip subnets
查看:24 25 26路由已被重分到R2、R3、R4中,默认:类型E2 ,度量值20 R1 (config)# router rip
version 2
net
redistribute ospf 1 metric 3
外部路由汇总。
R1 (config)# router ospf 1
router-id
net area 1
redistribute rip subnets
summary-address 在 ASBR 上汇总外部路由
24= 16+8 = 0001 1000 /16 ---- /14
0001 1001
0001 1010
0001 1011
查看: / 14
11. 2
fO
Sl/0
RIP 1
. 0/24
16. 2. 0/24
17人]6. 3. 0/24
、静态
SI/I
Sl/0
区0
172. 24. 0. 0/16
172. 25. 0. 0/16
172. 26. 0. 0/16
上海 武汉 广州
队?
. & /24
172. 28. 0. 0/16
北京
172ylV.
r?
郑州
西安
未节区域
将区域2设为未节区域。
R3(config)#router ospf 1
area 2 stub
R4(config)#router ospf 1
area 2 stub
查看:R4 有 O OIA OIA*,无 OE2
将区域2设为绝对未节区域。
R3(config)#router ospf 1
area 2 stub no-summary (只用在 ABR 上力口 no-summary )
R4(config)#router ospf 1
area 2 stub
查看:R4 有 O OIA*,无 O E2 OIA
五、次未节区域NSSA
将区域1设为NSSA
R2(config)# router ospf 1
area 1 nssa default-information-originage (nssa 默认不能 自动注入默认路由, 此命令可以强制注入一条7类的默认路由)
R1 (config)# router ospf 1
area 1 nssa
将区域1设为绝对NSSA
R2(config)# router ospf 1
area 1 nssa no-summary 〃自动注入一条3类的默认路由
R1 (config)# ro
多区OSPF综合实验 来自淘豆网m.daumloan.com转载请标明出处.