可以看到不再接受 4 5
类型的LSA
变换成LSA7
还有很多的选项,实践出来看看
R5(config-router)#area 2 nssa no-summary
R5(config-router)#do 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 172.16.1.1 to network 0.0.0.0
C 218.2.115.0/24 is directly connected, Loopback0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.0/24 is directly connected, Serial1/0
O 172.16.2.1/32 [110/65] via 172.16.1.1, 00:00:04, Serial1/0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
O IA 10.2.2.0/24 [110/129] via 172.16.1.1, 00:00:04, Serial1/0
O IA 10.1.1.1/32 [110/130] via 172.16.1.1, 00:00:04, Serial1/0
O IA 192.168.1.0/24 [110/65] via 172.16.1.1, 00:00:04, Serial1/0
192.168.2.0/32 is subnetted, 1 subnets
O IA 192.168.2.1 [110/66] via 172.16.1.1, 00:00:04, Serial1/0
O*N2 0.0.0.0/0 [110/1] via 172.16.1.1, 00:00:04, Serial1/0
R5(config-router)#area 2 nssa default-information-originate
R5(config-router)#do 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 172.16.1.1 to network 0.0.0.0
C 218.2.115.0/24 is directly connected, Loopback0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.0/24 is directly connected, Serial1/0
O 172.16.2.1/32 [110/65] via 172.16.1.1, 00:00:02, Serial1/0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
O IA 10.2.2.0/24 [110/129] via 172.16.1.1, 00:00:02, Serial1/0
O IA 10.1.1.1/32 [110/130] via 172.16.1.1, 00:00:02, Serial1/0
O IA 192.168.1.0/24 [110/65] via 172.16.1.1, 00:00:02, Serial1/0
192.168.2.0/32 is subnetted, 1 subnets
O IA 192.168.2.1 [110/66] via 172.16.1.1, 00:00:02, Serial1/0
O*N2 0.0.0.0/0 [110/1] via 172.16.1.1, 00:00:02, Serial1/0