在本區(qū)域
第一張表:路由器本身Neighbors Table
第二張表:Topology Table
在本區(qū)域路由器泛洪Flooding LSA (鏈路狀態(tài)通告)
包括router ID、每個(gè)接口的網(wǎng)段,都有哪些鄰居
第三張表:路由表Routing Table
OSPF使用路徑花費(fèi)(COST)為Metric距離
路由器先建立鄰居,然后周期性發(fā)送Helleo包到224.0.0.5這個(gè)組播地址,包括 Router ID,周期,鄰居,區(qū)域ID,優(yōu)先級,DR IP地址,BDR IP地址,驗(yàn)證數(shù)據(jù)等。
建立鏈路狀態(tài)數(shù)據(jù)庫LSDB,相互確認(rèn),達(dá)到數(shù)據(jù)庫同步
OSPF支持層次化的網(wǎng)絡(luò)結(jié)構(gòu),包含骨干區(qū)域和普通區(qū)域,普通區(qū)域必須與骨干區(qū)域鄰接,可以減少路由表,將區(qū)域拓?fù)渥兓绊懴拗圃诒緟^(qū)域,減小了網(wǎng)絡(luò)路由表和優(yōu)化網(wǎng)絡(luò)流量節(jié)約資源。
配置OSPF方案步驟:
1、評估需求和選項(xiàng)
2、確認(rèn)IP地址規(guī)劃
3、確認(rèn)網(wǎng)絡(luò)拓?fù)?/p>
4、定義ABR和ASBR
5、創(chuàng)建一個(gè)可實(shí)施的方案
6、配置OSPF
配置OSPF實(shí)例1:
R1(config)# interface GigabitEthernet 0/0
R1(config-if)# ip address 10.64.0.1 255.255.255.0
R1(config-if)# ip ospf cost 10
R1(config-if)# exit
R1(config-if)# ip ospf 1
R1(config-if)#network 10.64.0.0 0.0.0.255 area 0
配置OSPF實(shí)例2:
R1(config)# router ospf 1
R1(config)# router-id 1.1.1.1
R1(config)#network 10.64.0.0 0.0.0.255 area 0
R1(config)#network 1.1.1.1 0.0.0.255 area 0 (環(huán)回口)
R1(config)#exit
配置OSPF實(shí)例3:
R1(config)# show ip interface brief (查看接口信息)
宣告在接口下激活的實(shí)例
R1(config)#interface fa0/1
R1(config)# ip ospf area 1
R1(config)#end
查看鄰居關(guān)系
R1(config)#show ip ospf neighbor
查看路由
R1(config)#show ip route ospf
查看接口
R1(config)#show ip ospf interface
查看協(xié)議
R1(config)#show ip protocols