配置OSPF多区域
目錄
一、相關知識
1、基本配置命令
2、OSPF為什么是無自環的?
3、何時需要運行OSPF協議
二、拓撲圖
三、配置命令
1、ZY-R-A路由配置命令
2、ZY-R-B路由配置命令
3、ZY-R-C路由配置命令
四、驗證過程
一、相關知識
1、基本配置命令
配置路由器的Router ID:[Quidway]router id A.B.C.D
啟動OSPF協議:[Quidway] ospf [ process-id ]
配置OSPF區域:[Quidway-ospf-1]area ?area-id
在指定網段使用ospf:[Quidway-ospf-1-area-0.0.0.0] network ip-address wildcard-mask
2、OSPF為什么是無自環的?
????????每一條LSA(鏈路狀態廣播)都標記了生成者(用生成該LSA的路由器的Router ID標記),其它路由器只負責傳輸。這樣不會在傳輸的過程中發生對該信息的改變或錯誤理解
????????路由計算的算法是SPF算法。計算的結果是一棵樹,路由是樹上的葉子節點。從根節點到葉子節點是單向不可回復的路徑
3、何時需要運行OSPF協議
網絡的規模:網絡中的路由器在10臺以上;中等或大規模的網絡。
網絡的拓撲結構:網絡的拓撲結構為網狀,并且任意兩臺路由器之間都互通的需求。
其它特殊的需求:要求路由變化時能夠快速收斂,要求路由協議自身的網絡開銷盡量降低。
對路由器自身的要求:運行OSPF協議時對路由器的CPU的處理能力及內存的大小都有一定的要求,性能很低的路由器不推薦使用OSPF協議。
二、拓撲圖
三、配置命令
1、ZY-R-A路由配置命令
Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname ZY-R-A ZY-R-A(config)#interface loopback 0 ZY-R-A(config-if)#ip address 172.16.10.1 255.255.255.0 ZY-R-A(config-if)#no shutdown ZY-R-A(config-if)#exit ZY-R-A(config)#interface fastEthernet 0/0 ZY-R-A(config-if)#ip address 192.168.20.1 255.255.255.0 ZY-R-A(config-if)#no shutdown ZY-R-A(config-if)#exit ZY-R-A(config)#router ospf 100 ZY-R-A(config-router)#router-id 1.1.1.1 ZY-R-A(config-router)#network 172.16.10.0 0.0.0.255 area 1 ZY-R-A(config-router)#network 192.168.20.0 0.0.0.255 area 02、ZY-R-B路由配置命令
Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname ZY-R-B ZY-R-B(config)#interface fastEthernet 0/0 ZY-R-B(config-if)#ip address 192.168.20.2 255.255.255.0 ZY-R-B(config-if)#no shutdown ZY-R-B(config-if)#exit ZY-R-B(config)#interface fastEthernet 0/1 ZY-R-B(config-if)#ip address 192.168.30.1 255.255.255.0 ZY-R-B(config-if)#no shutdown ZY-R-B(config-if)#exit ZY-R-B(config)#router ospf 100 ZY-R-B(config-router)#router-id 2.2.2.2 ZY-R-B(config-router)#network 192.168.20.0 0.0.0.255 area 0 ZY-R-B(config-router)#network 192.168.30.0 0.0.0.255 area 03、ZY-R-C路由配置命令
Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname ZY-R-C ZY-R-C(config)#interface loopback 0 ZY-R-C(config-if)#ip address 10.10.10.1 255.255.255.0 ZY-R-C(config-if)#no shutdown ZY-R-C(config-if)#exit ZY-R-C(config)#interface fastEthernet 0/1 ZY-R-C(config-if)#ip address 192.168.30.2 255.255.255.0 ZY-R-C(config-if)#no shutdown ZY-R-C(config-if)#exit ZY-R-C(config)#router ospf 100 ZY-R-C(config-router)#router-id 3.3.3.3 ZY-R-C(config-router)#network 192.168.30.0 0.0.0.255 area 0 ZY-R-C(config-router)#network 10.10.10.0 0.0.0.255 area 2四、驗證過程
?
總結
- 上一篇: 安装axios时报错
- 下一篇: Error:(199) undefine