配置OSPF多区域
目錄
一、相關(guān)知識
1、基本配置命令
2、OSPF為什么是無自環(huán)的?
3、何時需要運行OSPF協(xié)議
二、拓撲圖
三、配置命令
1、ZY-R-A路由配置命令
2、ZY-R-B路由配置命令
3、ZY-R-C路由配置命令
四、驗證過程
一、相關(guān)知識
1、基本配置命令
配置路由器的Router ID:[Quidway]router id A.B.C.D
啟動OSPF協(xié)議:[Quidway] ospf [ process-id ]
配置OSPF區(qū)域:[Quidway-ospf-1]area ?area-id
在指定網(wǎng)段使用ospf:[Quidway-ospf-1-area-0.0.0.0] network ip-address wildcard-mask
2、OSPF為什么是無自環(huán)的?
????????每一條LSA(鏈路狀態(tài)廣播)都標記了生成者(用生成該LSA的路由器的Router ID標記),其它路由器只負責(zé)傳輸。這樣不會在傳輸?shù)倪^程中發(fā)生對該信息的改變或錯誤理解
????????路由計算的算法是SPF算法。計算的結(jié)果是一棵樹,路由是樹上的葉子節(jié)點。從根節(jié)點到葉子節(jié)點是單向不可回復(fù)的路徑
3、何時需要運行OSPF協(xié)議
網(wǎng)絡(luò)的規(guī)模:網(wǎng)絡(luò)中的路由器在10臺以上;中等或大規(guī)模的網(wǎng)絡(luò)。
網(wǎng)絡(luò)的拓撲結(jié)構(gòu):網(wǎng)絡(luò)的拓撲結(jié)構(gòu)為網(wǎng)狀,并且任意兩臺路由器之間都互通的需求。
其它特殊的需求:要求路由變化時能夠快速收斂,要求路由協(xié)議自身的網(wǎng)絡(luò)開銷盡量降低。
對路由器自身的要求:運行OSPF協(xié)議時對路由器的CPU的處理能力及內(nèi)存的大小都有一定的要求,性能很低的路由器不推薦使用OSPF協(xié)議。
二、拓撲圖
三、配置命令
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四、驗證過程
?
總結(jié)
- 上一篇: 安装axios时报错
- 下一篇: Error:(199) undefine