ospf學(xué)習(xí)筆記及配置帶拓?fù)鋱D_第1頁
ospf學(xué)習(xí)筆記及配置帶拓?fù)鋱D_第2頁
ospf學(xué)習(xí)筆記及配置帶拓?fù)鋱D_第3頁
ospf學(xué)習(xí)筆記及配置帶拓?fù)鋱D_第4頁
ospf學(xué)習(xí)筆記及配置帶拓?fù)鋱D_第5頁
已閱讀5頁,還剩11頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、ospf配置-單區(qū)域配置路由器的ID號route id route-idospf啟動后修改route id,需要重新啟動 ospf協(xié)議進(jìn)入ospf區(qū)域試圖area raea-id刪除指定的 ospf區(qū)域 undo area area-id指定網(wǎng)段運行 ospf 協(xié)議 network ip-address wildcard-mask顯示 ospf 概要 display ospf brief顯示 ospf 錯誤信息 display ospf error顯示 ospf 接口信息 display ospf in terface顯示鄰居信息display ospf peer顯示鄰居信息簡介display

2、 ospf peer brief顯示 ospf 路由信息 display ospf routing顯示ospf的調(diào)試信息 debugging ospfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II IIa a a a a a a a a a a a a a a a

3、 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a顯示在協(xié)議運行過程中發(fā)生的各種事件,如接口狀態(tài)改變,鄰居狀態(tài)改變debugg ing ospfevent顯示在協(xié)議運行過程中有關(guān)的LSA的信息,如本路由生成的LSA,刪除的LSAdebugg ing ospf lsa顯示5種收發(fā)報文的情況debugg ing ospf packet顯示用spf算法計算路由的情況debugg ing ospfspfII II II II II II II II II I

4、I II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a osp

5、f配置舉例in terface ethernetO/Oip address 10.1.1.1 255.255.255.0in terface senai 0/0lin k-protocol pppip address 20.1.1.1 255.255.255.252ospfeara 1network 10.1.1.0 0.0.0.255network 20.1.1.0 0.0.0.3in terface senai 0/0lin k-protocol pppip address 20.1.1.2 255.255.255.252in terface ether net 0/0ip address

6、 30.1.1.1 255.255.255.0ospfeara 1network 20.1.1.0 0.0.0.3network 30.1.1.0 0.0.0.255II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II a a a a a a a a a a a

7、a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ain terface serial 1/0ip address 172.16.1.2 255.255.255.0ospfeara 0network 172.16.1.2 255.0.0.0ospf network-type p2mp/ 將網(wǎng)絡(luò)的類型修改為poi nt-to-Multpoi ntII II II II II II II II II II II II II II II I

8、I II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a aospf multi-area自治系統(tǒng)區(qū)域區(qū)

9、域idroute id 1.1.1.1in terface lookback 0ip add 1.1.1.1 255.255.255.252in terface sO/Olin k-protocol pppip address 20.1.1.1 255.255.255.252in terface ethernet0/0ip address 10.1.1.1 255.255.255.0 ospfarea 0network 10.1.1.0 0.0.0.255network 20.1.1.0 0.0.0.3network 1.1.1.0 0.0.0.3route id 1.1.1.2in terf

10、ace lookback 0ip address 1.1.1.2 255.255.255.252in terface s0/0lin k-protocol pppip address 20.1.1.1 255.255.255.252in terface s0/1lin k-protocol pppip address 30.1.1.1 255.255.255.252 ospfarea 0network 1.1.1.0 0.0.0.3network 20.1.1.0 0.0.0.3ospfarea 1network 30.1.1.0 0.0.0.3route id 1.1.1.3in terfa

11、ce lookback 0ip address 1.1.1.3 255.255.255.252in terface s0/0lin k-protocol pppip address 30.1.1.1 255.255.255.252in terface ethernet0/0ip address 40.1.1.1 255.255.255.0 ospfarea 1network 40.1.1.0 0.0.0.255network 30.1.1.0 0.0.0.3network 1.1.1.0 0.0.0.3II II II II II II II II II II II II II II II I

12、I II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 酉己置 ospf 區(qū)域路由聚合 adr-s

13、ummary ip-address mask區(qū)域路由聚合只能配置在ABR上RTAroute id 1.1.1.1in terface lookback 0ip address 1.1.1.1 255.255.255.255in terface e0/0ip address 10.1.1.1 255.255.255.0in terface s0/0lin k-protocol pppip address 20.1.1.1 255.255.255.252ospfarea 0network 10.1.1.0 0.0.0.255network 1.1.1.0 0.0.0.0network 20.1.1

14、.0 0.0.0.3route id 1.1.1.2in terface lookback 0ip address 1.1.1.2 255.255.255.255in terface s0/0lin k-protocol pppip address 20.1.1.2 255.255.255.252in terface s0/1lin k-protocol pppip address 30.1.1.1 255.255.255.252ospfarea 0network 20.1.1.0 0.0.0.3network 1.1.1.0 0.0.0.0ospfarea 1network 30.1.1.0

15、 0.0.0.3abr-summary 40.1.0.0 255.255.0.0/ 配置區(qū)域路由聚合route id 1.1.1.3in terface lookback 0ip address 1.1.1.3 255.255.255.255in terface s0/0lin k-protocol pppip sddress 30.1.1.2 255.255.255.252in terface e0/0ip address 40.1.1.0 255.255.255.0in terface e0/1ip address 40.1.2.0 255.255.255.0ospfarea 1netwo

16、rk 40.1.2.0 0.0.0.255network 40.1.1.0 0.0.0.255network 30.1.1.0 0.0.0.255network 1.1.1.0 0.0.0.0II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II a a a a a

17、 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 配置ospf引入路由聚合命令un doimport-route protocol配置ospf引入外部路由的最小時間間隔default in terval seco nds恢復(fù)引入外部路由最小時間間隔的缺省值undo default in terval配置ospf每次引入路由的數(shù)量上限default limit routes恢復(fù)每次引入外部路由的數(shù)量上限un

18、do default limit恢復(fù))配置ospf在接收外部路由時缺省的花費值undodefault cost value配己置 ospf 路由集合 asbr-summary ip-address mask注意:區(qū)域路由聚合 與 引入路由聚合 是不同的概念route id 1.1.1.1in terface lookback 0ip address 1.1.1.1 255.255.255.255in terface e0/0ip address 10.1.1.1 255.255.255.0in terface s0/0lin k-protocol pppip address 20.1.1.1

19、255.255.255.252ospfarea 0network 1.1.1.0 0.0.0.0network 10.1.1.0 0.0.0.3network 20.1.1.0 0.0.0.3 route id 1.1.1.2in terface lookback 0ip address 1.1.1.2 255.255.255.255in terface s0/0lin k-protocol pppip address 20.1.1.2 255.255.255.252in terface s0/0lin k-protocol pppip address 30.1.1.1 255.255.255

20、.252 ospfarea 0network 20.1.1.0 0.0.0.3network 1.1.1.0 0.0.0.0ospfarea 1network 30.1.1.0 0.0.0.3 route id 1.1.1.3in terface lookback 0ip address 1.1.1.3 255.255.255.255in terface s0/0lin k-protocol pppip address 30.1.1.2 255.255.255.252in terface e0/0ip address 40.1.1.0 255.255.255.0in terface e/1ip

21、 address 40.1.1.2.0 255.255.255.0import-route direct配置引入路由命令asbr-summmary 40.1.0.0 255.255.0.0/ 配置路由匯聚ospfarea 1network 1.1.1.0 0.0.0.0network 30.1.1.0 0.0.0.3對進(jìn)行引入路由匯聚的網(wǎng)段不用network發(fā)布II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II I

22、I II II II II II II II II II II II II II II II II II II II II II II II II II a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a stub區(qū)域配置命令route id 1.1.1.1in terface lookback 0ip address 1.1.1.1 255.255.255.255in terface e

23、0/0ip address 10.1.1.1 255.255.255.0in terface s0/0lin k-protocol pppip address 20.1.1.1 255.255.255.255import static /引入靜態(tài)路由ospf area 0network 1.1.1.0 0.0.0.0network 10.1.1.0 0.0.0.255network 20.1.1.0 0.0.0.3ip-route static 100.1.1.0 255.255.255.0route id 1.1.1.2in terface lookback 0ip address 1.1.

24、1.2 255.255.255.255in terface s0/0lin k-protocol pppip address 20.1.1.2 255.255.255.252in terface s0/1lin k-protocol pppip address 30.1.1.1 255.255.255.252ospfarea 0network 20.1.1.0 0.0.0.3ospfarea 1stub/配置 stubnetwork 30.1.1.0 0.0.0.3route id 1.1.1.3in terface lookback 0ip address 1.1.1.3 255.255.2

25、55.255in terface s0/0lin k-protocol pppip address 30.1.1.2 255.255.255.252in terface e0/1ip address 40.1.2.0 255.255.255.0in terface e0/0ip address 40.1.1.0 255.255.255.0ospfarea 1stubnetwork 40.1.1.0 0.0.0.255network 40.1.2.0 0.0.0.255network 30.1.1.0 0.0.0.3network 1.1.1.0 0.0.0.0注意:對配置好的stub區(qū)域時要發(fā)

26、布該區(qū)域的所有網(wǎng)段II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a

27、a a a a a a a a a a a a a a a a a完全stub區(qū)域配置舉例配置Total stub和stub相比只需要在 ABR上配置stub no-summaryroute id 1.1.1.1in terface lookback 0ip address 1.1.1.1 255.255.255.255in terface s0/0lin k-protocol pppip address 20.1.1.1 255.255.255.252in terface e0/0ip address 10.1.1.1 255.255.255.0import staticospfarea 0

28、network 20.1.1.0 0.0.0.3network 10.1.1.0 0.0.0.255network 1.1.1.0 0.0.0.0ip route-static 100.1.1.0 50.1.1.2route ip 1.1.1.2in terface lookback 0ip address 1.1.1.0 255.255.255.255in terface s0/0lin k-protocol pppip address 20.1.1.2 255.255.255.252in terface sO/1lin k-protocol pppip address 30.1.1.1.1

29、 255.255.255.252ospfarea 0network 20.1.1.2 0.0.0.3network 1.1.1.0 0.0.0.0ospfarea 1stub/配置 Total stubstub no-summary/network 30.1.1.1 0.0.0.3route id 1.1.1.3in terface lookback 0ip address 1.1.1.3 255.255.255.255in terface s0/0lin k-protocol pppip address 30.1.1.2 255.255.255.252in terface e0/0ip ad

30、dress 40.1.1.0 255.255.255.0in terface e0/1ip address 40.1.2.0 255.255.255.0ospfarea 0stubnetwork 40.1.1.0 0.0.0.255network 40.1.2.0 0.0.0.255network 1.1.1.0 0.0.0.0network 30.1.1.0 0.0.0.3II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II

31、II II II II II II II II II II II II II II II II II II II II II II II II II II II II a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ospf 的 NSSA 區(qū)域配置命令(Not-So-Stubby-Area )這種區(qū)域能夠以受限的方式引入AS外部路由 route id 1.1.1.1in terface

32、 lookback 0ip address 1.1.1.1 255.255.255.255in terface ethernet0/0ip address 10.1.1.1 255.255.255.0in terface s0/0lin k-protocol pppip address 20.1.1.1 255.255.255.252ospfarea 0network 20.1.1.0 0.0.0.3network 10.1.1.0 0.0.0.255network 1.1.1.1 0.0.0.0 route id 1.1.1.2in terface lookback 0ip address

33、1.1.1.2 255.255.255.255in terface s0/0lin k-protocol pppip address 20.1.1.2 255.255.255.252in terface s0/1lin k-protocol pppip address 30.1.1.1 255.255.255.252ospfarea 0network 20.1.1.0 0.0.0.3network 1.1.1.0 0.0.0.0ospfarea 1NSSAnssa default-route-advertise /在area 1區(qū)域內(nèi)通告默認(rèn)路由,配置network 30.1.1.0 0.0.

34、0.3 route id 1.1.13in terface lookback 0ip address 1.1.1.3 255.255.255.255in terface s0/0lin k-protocol pppip address 30.1.1.2 255.255.255.252in terface s0/1lin k-protocol pppip address 50.1.1.2 255.255.255.252in terface e0/1ip address 40.1.2.0 255.255.255.0in terface e0/0ip address 40.1.1.0 255.255

35、.255.0import static/引入外部靜態(tài)路由ospfarea 1nssa/開啟 nssanetwork 40.1.1.0 0.0.0.255network 40.1.2.0 0.0.0.255network 30.1.1.0 0.0.0.3ip route-static 100.1.1.0 2450.1.1.2network 1.1.1.0 0.0.0.0networ 50.1.1.0 0.0.0.3II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II

36、 II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a aospf Total NSSAroute id 1.1.1.1in terface lookback 0ip address 1.1.1

37、.1 255.255.255.255in terface ethernet0/0ip address 10.1.1.1 255.255.255.0in terface s0/0lin k-protocol pppip address 20.1.1.1 255.255.255.252ospfarea 0network 10.1.1.0 0.0.0.255network 20.1.1.0 0.0.0.3network 1.1.1.0 0.0.0.0 route id 1.1.1.2in terface lookback 0ip address 1.1.1.2 255.255.255.255in t

38、erface s0/0lin k-protocol pppip address 20.1.1.2 255.255.255.252in trface s0/1lin k-protocol pppip address 30.1.1.1 255.255.255.252ospfarea 0network 20.1.1.0 0.0.0.3ospfarea 1nssa defalut-route-advertise no-summary / 酉己置 Total NSSAnetwork 30.1.1.0 0.0.0.3network 1.1.1.0 0.0.0.0route id 1.1.1.3in ter

39、face lookback 0ip address 1.1.1.3 255.255.255.255in terface s0/0lin k-protocol pppip address 30.1.1.2 255.255.255.255in terface s0/1lin k-protocol pppip address 50.1.1.2 255.255.255.252in terface ethernet0/1ip address 40.1.2.0 255.255.255.0in terface ethernet0/0ip address 40.1.1.0 255.255.255.0impor

40、t staticospfarea 1n ssaip route-static 100.1.1.0 24 50.1.1.2network 40.1.1.0 0.0.0.255network 40.1.2.0 0.0.0.255network 50.1.1.0 0.0.0.3network 30.1.1.0 0.0.0.3network 1.1.1.0 0.0.0.0display ospf peer brief命令顯示信息解釋如下:Area ID 區(qū)域標(biāo)識(ID)Down該狀吾為OSPF建#5居關(guān)果的初噥化狀態(tài).表禾OSPF踣由色在 定時何2內(nèi)沒右牧到從某F瞎路由春發(fā)送來的他息Attempt該伙

41、態(tài)僅金NBMA環(huán)境如恢中繼X.25 « ATM環(huán)境中有仗.農(nóng)示0SPF路由a?r «時何內(nèi)沒有接收am-鄰居路市祥的侑息.但仍奴以個較低的做審向該相鄰陸 由備發(fā)送Hello數(shù)16包來保持聯(lián)系InLt此狀態(tài)表示OSPF路由超已輕按收到鄰居箱由簽發(fā)送來的Hello數(shù)據(jù)包.但白己的IP地址并沒有岀現(xiàn)在該Hello數(shù)據(jù)包內(nèi).還沒的建工起雙方的雙向通偏2-Way在此狀態(tài).OSPF路由簽耳鄰尿齬由棒的雙向通信已經(jīng)建立.DR及BDR的址擇足金這個狀態(tài)(或更高的狀乞)完成的第草OSPF路宙協(xié)議ExStart 在此狀態(tài).路由器耍決定用J嗷S殳換的初始的數(shù)粥庫描述數(shù)據(jù)包的序列巧. 以保訃齬由器

42、御利的水遠(yuǎn)是隘新的鏈路狀態(tài)們息Exchange 亦此狀態(tài).OSPF路由農(nóng)向坨鄰朋曲由;K發(fā)送敵據(jù)庫描述數(shù)據(jù)包*交換紐路狀 妣aLoading在業(yè)狀蟲.OSPF曲由涙會根比它發(fā)現(xiàn)的5涇路由簽更新的(2的己過期的仿息向鄰居路由卷提出請求.并等待5肚滋由器的響應(yīng)Full在此狀巻.11立超鄰居關(guān)來的林由富Z何已經(jīng)完成了數(shù)盤岸同步的I作.它門的鏈陽狀務(wù)敕蛇咗已經(jīng)一致display ospf peer命令顯示信息解釋如下:RouterlD鄰屆路由:S的 Router IDAddress鄰居絡(luò)由器與本胳由器通信的接口的地址State 鄰接關(guān)系的狀態(tài)Mode交換DD報文時協(xié)商形成的主從模式或是master或繪slavePriorily鄰居鑫與選舉DR/BDR的優(yōu)先級DR選出的DR在此網(wǎng)埒中的接口的ip地址BDR選出的BDR在此網(wǎng)路中的接口的ip地址Dead timer expires in 31s離鄰居失效還制多長時何Neighbor hao been up for 01:14:14*居仔在的時間display ospf interface命令顯示信息解釋如下:CostStateTypePr

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論