查看路由表以及 ospf 数据库 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

r1#show ip route

     172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks

C       172.16.12.0/24 is directly connected, FastEthernet0/0

O IA    172.16.22.2/32 [110/2] via 172.16.12.2, 00:03:05, FastEthernet0/0

O IA    172.16.23.0/24 [110/782] via 172.16.12.2, 01:30:34, FastEthernet0/0

C       172.16.41.0/24 is directly connected, Serial2/0

C       172.16.61.0/24 is directly connected, Serial1/0

 

:O IA 表示的是区域间的路由信息

 

r2#show ip route

     172.16.0.0/24 is subnetted, 6 subnets

C       172.16.12.0 is directly connected, FastEthernet0/0

C       172.16.22.0 is directly connected, Loopback0

C       172.16.23.0 is directly connected, Serial1/0

O N2    172.16.35.0 [110/781] via 172.16.23.3, 00:08:05, Serial1/0

O IA    172.16.41.0 [110/782] via 172.16.12.1, 00:07:27, FastEthernet0/0

O IA    172.16.61.0 [110/782] via 172.16.12.1, 00:07:27, FastEthernet0/0

O*E2 <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />0.0.0.0/0 [110/1] via 172.16.23.3, 00:08:05, Serial1/0

  :ON2 表示的是学习到的是一个 NASS 区域的路由条目

    O*E2 表示的是一条在 OSPF 自治系统外部的默认路由条目 .

r3#show ip route

     172.16.0.0/16 is variably subnetted, 6 subnets, 2 masks

O IA    172.16.12.0/24 [110/782] via 172.16.23.2, 00:08:51, Serial0/0

O IA    172.16.22.2/32 [110/782] via 172.16.23.2, 00:08:51, Serial0/0

C       172.16.23.0/24 is directly connected, Serial0/0

C       172.16.35.0/24 is directly connected, Serial1/0

O IA    172.16.41.0/24 [110/1563] via 172.16.23.2, 00:08:51, Serial0/0

O IA    172.16.61.0/24 [110/1563] via 172.16.23.2, 00:08:51, Serial0/0

S*   0.0.0.0/0 [1/0] via 172.16.35.5

 

r4#show ip route

 

     172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks

O IA    172.16.12.0/24 [110/782] via 172.16.41.1, 00:10:22, Serial0/0

O IA    172.16.22.2/32 [110/783] via 172.16.41.1, 00:10:06, Serial0/0

O IA    172.16.23.0/24 [110/1563] via 172.16.41.1, 00:10:06, Serial0/0

C       172.16.41.0/24 is directly connected, Serial0/0

O IA    172.16.61.0/24 [110/1562] via 172.16.41.1, 00:10:22, Serial0/0

O*IA 0.0.0.0/0 [110/782] via 172.16.41.1, 00:10:22, Serial0/0

:O*IA 表示的是学习到了一条区域间的默认路由

 

r6#show ip route

 

Gateway of last resort is 172.16.61.1 to network 0.0.0.0

 

     172.16.0.0/24 is subnetted, 1 subnets

C       172.16.61.0 is directly connected, Serial0/0

O*IA 0.0.0.0/0 [110/782] via 172.16.61.1, 00:11:50, Serial0/0

: 因为 R6 totally stubby 区域 , 所以只一条默认的路由出去以及一条直连的路由条目

 

实验总结

区域类型

1&2

3&4

5

7

骨干区域

允许

允许

允许

不允许

非骨干(非末梢)

允许

允许

允许

不允许

末梢

允许

允许

不允许

不允许

完全末梢

允许

不允许

不允许

不允许

NAAS

允许

允许

不允许

允许