H3C 配置OSPF引入自治系統外部路由 實驗

實驗模擬器下載地址:

 

http://down.51cto.com/data/81169

 

1. 組網需求
􀁺 所有的交換機都運行OSPF,整個自治系統劃分爲3 個區域。
􀁺 其中Switch A 和Switch B 作爲ABR 來轉發區域之間的路由。
􀁺 在Switch C 上配置爲ASBR 引入外部路由(靜態路由),且路由信息可正確的在AS 內傳播。
2. 組網圖
 


3. 配置步驟
(1) 配置各接口的IP 地址(略)
(2) 配置OSPF(同前例1.10.1 )
(3) 配置引入自治系統外部路由
# 在Switch C 上配置一條到目的網段3.1.2.0/24 的靜態路由。
<SwitchC> system-view
[SwitchC] ip route-static 3.1.2.1 24 10.4.1.2
# 在Switch C 上配置OSPF 引入靜態路由。
[SwitchC] ospf 1
[SwitchC-ospf-1] import-route static
(4) 檢驗配置效果
# 查看Switch D 的ABR/ASBR 信息。
<SwitchD> display ospf abr-asbr
OSPF Process 1 with Router ID 10.5.1.1
Routing Table to ABR and ASBR
Type Destination Area Cost Nexthop RtType
Intra 10.3.1.1 0.0.0.2 10 10.3.1.1 ABR
Inter 10.4.1.1 0.0.0.2 22 10.3.1.1 ASBR
# 查看Switch D 的OSPF 路由表。
<SwitchD> display ospf routing

OSPF Process 1 with Router ID 10.5.1.1
Routing Tables
Routing for Network
Destination Cost Type NextHop AdvRouter Area
10.2.1.0/24 22 Inter 10.3.1.1 10.3.1.1 0.0.0.2
10.3.1.0/24 10 Transit 10.3.1.2 10.3.1.1 0.0.0.2
10.4.1.0/24 25 Inter 10.3.1.1 10.3.1.1 0.0.0.2
10.5.1.0/24 10 Stub 10.5.1.1 10.5.1.1 0.0.0.2
10.1.1.0/24 12 Inter 10.3.1.1 10.3.1.1 0.0.0.2
Routing for ASEs
Destination Cost Type Tag NextHop AdvRouter
3.1.2.0/24 1 Type2 1 10.3.1.1 10.4.1.1
Total Nets: 6
Intra Area: 2 Inter Area: 3 ASE: 1

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