页面加载中...

OSPF的NSSA区域

日期:2008年10月30日 评论次数:No Comments » 浏览次数:

实验目的:不完全末梢区域能过滤3类,4类LSA。会将5类LSA以7类LSA的形式通告出去。
基本配置:将2.2.2.2,3.3.3.3,4.4.4.4,5.5.5.5全部redistribute进路由表内
拓扑图

正常配置后的路由表如下表:

r1#
r1#
r1#show 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

C    192.168.12.0/24 is directly connected, Ethernet0/0
     1.0.0.0/32 is subnetted, 1 subnets
C       1.1.1.1 is directly connected, Loopback0
C    192.168.13.0/24 is directly connected, Ethernet0/2
     2.0.0.0/32 is subnetted, 1 subnets
O E2    2.2.2.2 [110/20] via 192.168.12.2, 00:00:27, Ethernet0/0
     3.0.0.0/32 is subnetted, 1 subnets
O E2    3.3.3.3 [110/20] via 192.168.13.3, 00:00:27, Ethernet0/2
     4.0.0.0/32 is subnetted, 1 subnets
O E2    4.4.4.4 [110/20] via 192.168.12.2, 00:00:27, Ethernet0/0
O E2 192.168.24.0/24 [110/20] via 192.168.12.2, 00:00:27, Ethernet0/0
     5.0.0.0/32 is subnetted, 1 subnets
O E2    5.5.5.5 [110/20] via 192.168.13.3, 00:00:27, Ethernet0/2
O IA 192.168.35.0/24 [110/20] via 192.168.13.3, 00:00:28, Ethernet0/2
r1#


r2#
r2#show 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

C    192.168.12.0/24 is directly connected, Ethernet0/0
     1.0.0.0/32 is subnetted, 1 subnets
O E2    1.1.1.1 [110/20] via 192.168.12.1, 00:00:55, Ethernet0/0
O IA 192.168.13.0/24 [110/20] via 192.168.12.1, 00:00:55, Ethernet0/0
     2.0.0.0/32 is subnetted, 1 subnets
C       2.2.2.2 is directly connected, Loopback0
     3.0.0.0/32 is subnetted, 1 subnets
O E2    3.3.3.3 [110/20] via 192.168.12.1, 00:00:55, Ethernet0/0
     4.0.0.0/32 is subnetted, 1 subnets
R       4.4.4.4 [120/1] via 192.168.24.4, 00:00:05, Ethernet0/1
C    192.168.24.0/24 is directly connected, Ethernet0/1
     5.0.0.0/32 is subnetted, 1 subnets
O E2    5.5.5.5 [110/20] via 192.168.12.1, 00:00:55, Ethernet0/0
O IA 192.168.35.0/24 [110/30] via 192.168.12.1, 00:00:56, Ethernet0/0
r2#


r3#
r3#show 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 IA 192.168.12.0/24 [110/20] via 192.168.13.1, 00:00:34, Ethernet0/2
     1.0.0.0/32 is subnetted, 1 subnets
O E2    1.1.1.1 [110/20] via 192.168.13.1, 00:00:29, Ethernet0/2
C    192.168.13.0/24 is directly connected, Ethernet0/2
     2.0.0.0/32 is subnetted, 1 subnets
O E2    2.2.2.2 [110/20] via 192.168.13.1, 00:00:29, Ethernet0/2
     3.0.0.0/32 is subnetted, 1 subnets
C       3.3.3.3 is directly connected, Loopback0
     4.0.0.0/32 is subnetted, 1 subnets
O E2    4.4.4.4 [110/20] via 192.168.13.1, 00:00:29, Ethernet0/2
O E2 192.168.24.0/24 [110/20] via 192.168.13.1, 00:00:29, Ethernet0/2
     5.0.0.0/32 is subnetted, 1 subnets
O E2    5.5.5.5 [110/20] via 192.168.35.5, 00:00:29, Ethernet0/3
C    192.168.35.0/24 is directly connected, Ethernet0/3
r3#


r4#
r4#show 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

R    192.168.12.0/24 [120/8] via 192.168.24.2, 00:00:20, Ethernet0/1
     1.0.0.0/32 is subnetted, 1 subnets
R       1.1.1.1 [120/8] via 192.168.24.2, 00:00:18, Ethernet0/1
R    192.168.13.0/24 [120/8] via 192.168.24.2, 00:00:18, Ethernet0/1
     3.0.0.0/32 is subnetted, 1 subnets
R       3.3.3.3 [120/8] via 192.168.24.2, 00:00:18, Ethernet0/1
     4.0.0.0/32 is subnetted, 1 subnets
C       4.4.4.4 is directly connected, Loopback0
C    192.168.24.0/24 is directly connected, Ethernet0/1
     5.0.0.0/32 is subnetted, 1 subnets
R       5.5.5.5 [120/8] via 192.168.24.2, 00:00:18, Ethernet0/1
R    192.168.35.0/24 [120/8] via 192.168.24.2, 00:00:18, Ethernet0/1
r4#

将Area 1配置成NSSA区域:

r1#
r1(config)#router ospf 100
r1(config-router)#area 1 nssa no-summary
r1#


r2#
r2(config)#router ospf 100
r2(config-router)#area 1 nssa
r2#

此时查看各个路由器的路由表:

r1#
r1#
r1#show 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

C    192.168.12.0/24 is directly connected, Ethernet0/0
     1.0.0.0/32 is subnetted, 1 subnets
C       1.1.1.1 is directly connected, Loopback0
C    192.168.13.0/24 is directly connected, Ethernet0/2
     2.0.0.0/32 is subnetted, 1 subnets
O N2    2.2.2.2 [110/20] via 192.168.12.2, 00:00:20, Ethernet0/0
     3.0.0.0/32 is subnetted, 1 subnets
O E2    3.3.3.3 [110/20] via 192.168.13.3, 00:00:20, Ethernet0/2
     4.0.0.0/32 is subnetted, 1 subnets
O N2    4.4.4.4 [110/20] via 192.168.12.2, 00:00:20, Ethernet0/0
O N2 192.168.24.0/24 [110/20] via 192.168.12.2, 00:00:20, Ethernet0/0
     5.0.0.0/32 is subnetted, 1 subnets
O E2    5.5.5.5 [110/20] via 192.168.13.3, 00:00:20, Ethernet0/2
O IA 192.168.35.0/24 [110/20] via 192.168.13.3, 00:00:21, Ethernet0/2
r1#


r2#
r2#
r2#show 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 192.168.12.1 to network 0.0.0.0

C    192.168.12.0/24 is directly connected, Ethernet0/0
     1.0.0.0/32 is subnetted, 1 subnets
O N2    1.1.1.1 [110/20] via 192.168.12.1, 00:00:01, Ethernet0/0
     2.0.0.0/32 is subnetted, 1 subnets
C       2.2.2.2 is directly connected, Loopback0
     4.0.0.0/32 is subnetted, 1 subnets
R       4.4.4.4 [120/1] via 192.168.24.4, 00:00:03, Ethernet0/1
C    192.168.24.0/24 is directly connected, Ethernet0/1
O*IA 0.0.0.0/0 [110/11] via 192.168.12.1, 00:00:06, Ethernet0/0
r2#


r3#
r3#
r3#show 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 IA 192.168.12.0/24 [110/20] via 192.168.13.1, 00:02:38, Ethernet0/2
     1.0.0.0/32 is subnetted, 1 subnets
O E2    1.1.1.1 [110/20] via 192.168.13.1, 00:02:33, Ethernet0/2
C    192.168.13.0/24 is directly connected, Ethernet0/2
     2.0.0.0/32 is subnetted, 1 subnets
O E2    2.2.2.2 [110/20] via 192.168.13.1, 00:02:27, Ethernet0/2
     3.0.0.0/32 is subnetted, 1 subnets
C       3.3.3.3 is directly connected, Loopback0
     4.0.0.0/32 is subnetted, 1 subnets
O E2    4.4.4.4 [110/20] via 192.168.13.1, 00:02:27, Ethernet0/2
O E2 192.168.24.0/24 [110/20] via 192.168.13.1, 00:02:27, Ethernet0/2
     5.0.0.0/32 is subnetted, 1 subnets
O E2    5.5.5.5 [110/20] via 192.168.35.5, 00:02:33, Ethernet0/3
C    192.168.35.0/24 is directly connected, Ethernet0/3
r3#


r4#
r4#
r4#show 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 192.168.24.2 to network 0.0.0.0

R    192.168.12.0/24 [120/8] via 192.168.24.2, 00:00:15, Ethernet0/1
     1.0.0.0/32 is subnetted, 1 subnets
R       1.1.1.1 [120/8] via 192.168.24.2, 00:00:15, Ethernet0/1
     4.0.0.0/32 is subnetted, 1 subnets
C       4.4.4.4 is directly connected, Loopback0
C    192.168.24.0/24 is directly connected, Ethernet0/1
R*   0.0.0.0/0 [120/8] via 192.168.24.2, 00:00:10, Ethernet0/1
r4#
r4#

0 Comments.

Leave a Reply

回到顶部