ospf實驗3

查看路由表以及ospf數據庫

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 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

:因爲R6totally stubby區域,所以只一條默認的路由出去以及一條直連的路由條目

 

實驗總結

區域類型

1&2

3&4

5

7

骨幹區域

允許

允許

允許

不允許

非骨幹(非末梢)

允許

允許

允許

不允許

末梢

允許

允許

不允許

不允許

完全末梢

允許

不允許

不允許

不允許

NAAS

允許

允許

不允許

允許

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章