文档介绍:OSPF多区域试验步骤:
拓扑结构图:
试验步骤:
R1路由器:
inter f0/0
ip add
no shut
inter lo0
ip add :area <area-id> nssa(相当于末梢)
在ABR上设置:area <area-id> nssa no-summary(相当于完全末梢)
ABR自动将LSA-7转换为LSA-5注入其他区域;
外部路由的2种类型:
E1:度量值包括了路由器到ASBR+ASBR到外部网段的代价;
E2:度量值只包括了ASBR到外部网段的代价;(默认)
设置:redistribute <协议> metric-type 1|2
新问题:
R2#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
O [110/2] via , 00:01:14, FastEthernet0/0
C is directly connected, FastEthernet0/1
is variably subnetted, 12 subnets, 2 masks
O E2 [110/20] via , 00:00:11, FastEthernet0/0
O E2 [110/20] via , 00:00:11, FastEthernet0/0
O E2 [110/20] via , 00:00:11, FastEthernet0/0
O E2 [110/20] via , 00:00:11, FastEthernet0/0