8綜合實驗與故障診斷課件_第1頁
8綜合實驗與故障診斷課件_第2頁
8綜合實驗與故障診斷課件_第3頁
8綜合實驗與故障診斷課件_第4頁
8綜合實驗與故障診斷課件_第5頁
已閱讀5頁,還剩29頁未讀, 繼續(xù)免費閱讀

下載本文檔

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

文檔簡介

1、8綜合實驗與故障診斷1第八講 綜合實驗與故障診斷nospf介紹nospf配置n綜合實驗舉例n故障診斷8綜合實驗與故障診斷2ospf介紹 概述nospf (open shortest path first)使用鏈路狀態(tài)路由算法,是目前internet上應用最廣泛的intra-as路由協(xié)議。nospf很復雜(244頁rfc文檔)qrip僅39頁rfc文檔nospf走過了一段很長的歷史道路:q1989: rfc 1131 ospf version 1 q1991: rfc 1247 ospf version 2q1994: rfc 1583 ospf version 2 (revised)q1997

2、: rfc 2178 ospf version 2 (revised)q1998: rfc 2328 ospf version 2 (current version)8綜合實驗與故障診斷3ospf介紹 特點 nospf 支持多種對距離的度量(物理距離,時延,帶寬等)。n度量取值的范圍是(0,65535),并且可以是不對稱的。nospf支持在開銷相同的最短路線之間的負載平衡 (load balancing)nospf支持分層路由。nospf支持multicast路由。n安全 qospf支持三種認證方式。8綜合實驗與故障診斷4ospf介紹 packet格式 nospf packet被直接封裝在ip

3、分組中傳送。nip分組首部protocol域取值為89。8綜合實驗與故障診斷5ospf介紹 packet格式 (續(xù)) 2: ospf v2message types:1: hello2: database description3: link status request4: link state update5: link state ack0: null authentication1: simple password authentication2: cryptographic authentication0: can be anything1: 64-bit cleartext pas

4、sword 2: 0 x0000 (16 bits) keyid (8 bits) length of message digest (8 bits) sequence number (32 bits)message digest 被附在 ospf packet 的后面8綜合實驗與故障診斷6ospf介紹 packet類型 type packet name protocol function 1 hello 發(fā)現(xiàn)和維護鄰居節(jié)點 2 database description 當發(fā)現(xiàn)新鄰居節(jié)點時,向該鄰 居節(jié)點報告自己的數(shù)據(jù)庫內(nèi)容 3 link state request 向鄰居節(jié)點請求鏈路信息 4

5、 link state update 向鄰居節(jié)點發(fā)送鏈路信息 5 link state ack 應答link state update8綜合實驗與故障診斷7ospf介紹 分層路由 nospf支持兩層路由結(jié)構(gòu):qarea:運行最短路徑算法的基本單位qbackbone:所有area都連接到backbonen四種路由器 (四種概念所定義的集合可以相交)qarea internal routerqarea border routerqbackbone routerqas boundary router8綜合實驗與故障診斷8ospf介紹 分層路由 (續(xù)) (1)(2)(3)(4)8綜合實驗與故障診斷9o

6、spf介紹 與rip比較n鏈路狀態(tài)路由算法n收斂速度快n支持多種對鏈路開銷的度量n沒有網(wǎng)絡范圍的限制n復雜n在大規(guī)模的as中應用較多n距離向量路由算法n收斂速度慢n僅能用跳數(shù)來表示鏈路的開銷n最大網(wǎng)絡范圍是15跳n簡單n在小規(guī)模的as中應用較多ospfrip8綜合實驗與故障診斷10ospf配置 router idn配置路由器的id:quidway router id router-id例如:quidway router id 1.1.1.1n取消路由器的id:quidway undo router id注:(1)路由器的id號是一個32比特的無符號整數(shù),為點分十進制格式,它是路由器所在自治系統(tǒng)

7、中的唯一標識。(2)如果路由器所有的接口都沒有配置ip地址,那么用戶必須配置路由器id號,否則ospf無法運行。(3)通常的做法是將路由器的id配置為與該路由器某個接口的ip地址,這樣便可以保證它的唯一性。8綜合實驗與故障診斷11ospf配置 啟動/關(guān)閉n啟動/關(guān)閉ospfar18-12: quidway undo ospf enablear28-11: quidway undo ospf注:(1)缺省情況下,路由器不啟動ospf。(2)ospf的大部分特性都需要在ospf視圖下配置,接口視圖下也有部分ospf相關(guān)屬性的配置。8綜合實驗與故障診斷12ospf配置 配置接口所在區(qū)域n指定/取消接

8、口所在區(qū)域(area)quidway-serial0 undo ospf enable area area-id例如:quidway-serial0 ospf enable area 0注:(1)ospf將自治系統(tǒng)進一步劃分成不同的區(qū)域,區(qū)域是運行最短路徑算法的基本單位;(2)區(qū)域用區(qū)域號area-id(是一個32比特的整數(shù))來標識。為使ospf正常工作,屬于同一個區(qū)域的所有路由器接口的area-id 必須一致;(3)啟動ospf后,每個運行ospf的接口必須指明其所屬的區(qū)域,然后ospf才會在該接口上運行;ar18-12:8綜合實驗與故障診斷13ospf配置 配置接口所在區(qū)域n創(chuàng)建/刪除區(qū)域

9、quidway-ospf undo area area-id例如:quidway-ospf area 0 quidway-ospf-area0n在區(qū)域中指定/取消網(wǎng)段quidway-ospf-area0 undo network ip-addr maskip-addr:路由器接口ipmask: 反子網(wǎng)掩碼例如: quidway-ospf-area0 network 192.168.1.1 0.0.0.255注:在系統(tǒng)視圖下使用ospf 命令啟動ospf 后,還必須在區(qū)域視圖下向該區(qū)域中加入網(wǎng)段,然后ospf才會在該網(wǎng)段上運行。ar28-11:8綜合實驗與故障診斷14ospf配置 路由引入n引入

10、/取消其它協(xié)議的路由quidway-ospf undo import-route protocolprotocol: direct, static, rip, bgp, is-is注:在缺省情況下,ospf不引入其它協(xié)議的路由。8綜合實驗與故障診斷15ospf配置 顯示與調(diào)試n顯示當前ospf運行狀態(tài)與配置信息任意視圖 display ospfn對ospf報文進行調(diào)試quidway info-center consolequidway info-center console debugging任意視圖 debugging ospf packet interface type num termi

11、nal debugging terminal monitor debugging ospf packet interface type numn關(guān)閉ospf報文調(diào)試 任意視圖 undo debugging ospf packet undo debugging ospf packetar18ar28ar18ar288綜合實驗與故障診斷16ospf配置 舉例ar18-128綜合實驗與故障診斷17ospf配置 舉例ar28-11routera router id 1.1.1.1routera interface serial 0/0routera-serial0/0 ip address 2.2.2

12、.1 24routera-serial0/0 interface ethernet 0/0routera-ethernet0/0 ip address 1.1.1.1 24routera ospfroutera-ospf-1 area 0routera-ospf-1-area-0.0.0.0 network 1.1.1.1 0.0.0.255routera-ospf-1-area-0.0.0.0 network 2.2.2.1 0.0.0.255配置routera8綜合實驗與故障診斷18ospf配置 舉例(續(xù))ar28-11routerb router id 3.3.3.1routerb in

13、terface serial 0/0routerb-serial0/0 ip address 2.2.2.2 24routerb-serial0/0 interface ethernet 0/0routerb-ethernet0/0 ip address 3.3.3.1 24routerb ospfrouterb-ospf-1 area 0routerb-ospf-1-area-0.0.0.0 network 2.2.2.2 0.0.0.255routerb-ospf-1-area-0.0.0.0 area 1routerb-ospf-1-area-0.0.0.1 network 3.3.3.

14、1 0.0.0.255配置routerb8綜合實驗與故障診斷19綜合實驗舉例 實驗環(huán)境n路由器之間的鏈路層協(xié)議都封裝pppn在路由器a與b之間使用靜態(tài)路由n在路由器b與c之間運行路由協(xié)議ripn在路由器c與d之間運行路由協(xié)議ospf要求8綜合實驗與故障診斷20綜合實驗舉例 路由配置n路由器aqra ip route-static 0.0.0.0 0 192.0.0.2n路由器bqrb ip route-static 202.0.0.0 24 192.0.0.1qrb ripqrb-rip network 192.0.1.1qrb-rip network 202.0.1.18綜合實驗與故障診斷2

15、1綜合實驗舉例 路由配置(續(xù))n路由器cqrc ripqrc-rip network 192.0.1.2qrc-rip network 202.0.2.1qrc ospf enableqrc-ethernet0 ospf enable area 0qrc-serial0 ospf enable area 0n路由器dqrd ospf enableqrd-ethernet0 ospf enable area 0qrd-serial0 ospf enable area 08綜合實驗與故障診斷22綜合實驗舉例 路由引入rb display ip routing-tablerouting tables

16、: destination/mask proto pref metric nexthop interface 127.0.0.0/8 direct 0 0 127.0.0.1 loopback0 127.0.0.1/32 direct 0 0 127.0.0.1 loopback0 192.0.0.0/24 direct 0 0 192.0.0.2 serial0 192.0.0.2/32 direct 0 0 127.0.0.1 loopback0 192.0.0.1/32 direct 0 0 192.0.0.1 serial0 202.0.1.0/24 direct 0 0 202.0.

17、1.1 ethernet0 202.0.1.1/32 direct 0 0 127.0.0.1 loopback0 202.0.0.0/24 static 60 1 192.0.0.1 serial0 202.0.2.0/24 rip 100 1 192.0.1.2 serial1由上可見,路由表的信息缺少到202.0.3.0/24的表項路由器rb上的路由表:8綜合實驗與故障診斷23綜合實驗舉例 路由引入(續(xù))n路由器bqrb-rip import-route staticqrb-rip import-route directn路由器cqrc-rip import-route ospfqrc-

18、rip import-route directqrc ospfqrc-ospf import-route ripqrc-ospf import-route direct至此,整個網(wǎng)絡應該完全連通8綜合實驗與故障診斷24故障診斷 故障分類n連通性問題q硬件故障(網(wǎng)絡設(shè)備、傳輸介質(zhì)、電源等)q軟件配置問題q兼容性問題n性能問題q網(wǎng)絡擁塞q路由環(huán)路8綜合實驗與故障診斷25故障診斷 診斷方法n分層q按照網(wǎng)絡協(xié)議層由下至上診斷故障n分段q將網(wǎng)絡劃分為不同的部分來分別診斷故障n替換法q通過替換網(wǎng)絡組件來確定故障位置8綜合實驗與故障診斷26故障診斷 分層診斷1 1物 理 層2 2數(shù)據(jù)鏈路層4 4更 高 層3

19、 3網(wǎng) 絡 層接線,指示燈端口的封裝,端口狀態(tài)(up or down)ip地址/掩碼,路由表,防火墻端到端的問題:主機的防火墻,應用程序等由下至上診斷故障8綜合實驗與故障診斷27故障診斷 分段診斷n把網(wǎng)絡分段,逐段排除故障q主機本身q主機到路由器q路由器本身q路由器到路由器8綜合實驗與故障診斷28故障診斷 替換法n替換法是檢查硬件問題最常用的方法q當懷疑是網(wǎng)線問題時,更換一根確定是好的網(wǎng)線試一試;q當懷疑是接口模塊有問題時,更換一個其它接口模塊試一試 n在實際網(wǎng)絡故障排錯時,可以先用分段法找出故障大概位置,然后再用替換法確定之。8綜合實驗與故障診斷29故障診斷 診斷工具nping 命令ntra

20、cert 命令ndisplay 命令ndebugging 命令nethereal8綜合實驗與故障診斷30故障診斷 display 命令ndisplay current-configurationndisplay interface type numberndisplay ip routing-tablendisplay aclndisplay firewallndisplay natndisplay ripndisplay ospf8綜合實驗與故障診斷31故障診斷 display 命令(續(xù))quidway display interface serial 0serial0 is up, lin

21、e protocol is up physical layer is synchronous, baudrate is 64000 bps interface is dce, clock is dceclk, cable type is rs232 maximum transmission unit is 1500 internet address is 1.1.1.1 255.255.255.0 link-protocol is ppp lcp opened, ipcp initial, ipxcp initial, ccp initial, bridgecp initial 5 minutes input rate 0.00 bytes/sec, 0.00 packets/se

溫馨提示

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

最新文檔

評論

0/150

提交評論