OSPF協議配置

2021-06-04 05:30:50 字數 1240 閱讀 9233

r0路由器上的配置:

router>en

router#conf t

router(config)#intf0/0

router(config-if)#ipadd 192.168.1.1 255.255.255.0

router(config-if)#noshut

router(config-if)#ints1/0

router(config-if)#ipadd 192.168.2.1 255.255.255.0

router(config-if)#clockrate 9600

router(config-if)#nosh

router(config-if)#exit

router(config)#routeospf 10

router(config-router)#network192.168.1.0 0.0.0.255 area 0

router(config-router)#network192.168.2.0 0.0.0.255 area 0

router(config-router)#exit

router(config)#exit

r1路由器上的配置:

router>

router>en

router#conf t

router(config)#intf0/0

router(config-if)#ipadd 192.168.3.1 255.255.255.0

router(config-if)#noshut

router(config-if)#noshut

router(config-if)#

router(config)#routeospf 10

router(config-router)#network192.168.2.0 0.0.0.255 area 0

router(config-router)#network192.168.3.0 0.0.0.255 area 0

router(config-router)#end

router#

router#show iproute

router(config-if)#ints1/0

router(config-if)#ipadd 192.168.2.2 255.255.255.0

配置動態路由協議OSPF

對於拓撲結構變化少,網路規模小時可以為路由器配置靜態路由。但大型的網路和頻繁變動的拓撲,就需要配置動態路由協議!協議就是大家都遵循的規範。比如你在廊坊,家在 你爸讓你回去買個普通的白熾燈燈泡,你爸不會擔心你買回家的燈泡不能用,因為全國的白熾燈燈泡就都是這樣子,國家制定了這樣的標準,大家用的是一樣的。...

OSPF協議 原理,配置與驗證

建立鄰居,鄰居互動 通過lsa互動 建立完整拓撲資料庫 spf演算法求最優路徑,建立路由表 area0,骨幹區域 sw1 config router ospf 110 定義ospf程序 sw1 config router router id 1.1 1.1 定義路由器標識 sw1 config ro...

OSPF協議入門

ospf是乙個基於鏈路狀態的動態路由協議 屬於igp的一種 基本思路 在自治系統中的每一台執行ospf的路由器收集各自的介面 鄰接資訊成為鏈路狀態,通過flooding演算法在整個系統廣播自己的鏈路狀態,使得整個系統內部維護有個同步的鏈路狀態資料庫,割據這一資料庫,路由器計算出以自己為根,其它網路節...