自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

路由器故障:OSPF配置錯(cuò)誤導(dǎo)致網(wǎng)絡(luò)無法ping通

運(yùn)維 網(wǎng)絡(luò)運(yùn)維
本文主要向大家介紹了由于OSPF配置錯(cuò)誤導(dǎo)致網(wǎng)絡(luò)無法ping通的故障的解決辦法,希望以下的內(nèi)容能夠幫助大家。

OSPF配置錯(cuò)誤導(dǎo)致網(wǎng)絡(luò)無法ping通的故障的解決步驟如下:

網(wǎng)絡(luò)環(huán)境

如下圖的網(wǎng)絡(luò)配置中,PC1-RouterA-RouterB-PC2之間通過2M線路相連,運(yùn)行OSPF協(xié)議,并引入直連、靜態(tài)路由。PC3-RouterA-RouterB-PC4之間模擬新增加的一條100M鏈路,運(yùn)行OSPF協(xié)議,也引入直連和靜態(tài)路由。RouterA和RouterB都在area0。

OSPF組網(wǎng)圖

路由器故障:OSPF配置錯(cuò)誤導(dǎo)致網(wǎng)絡(luò)無法ping通

配置完成之后發(fā)現(xiàn)PC1與PC2之間能夠Ping通,但是PC3與PC4之間卻無法Ping通。

#p#

故障分析

步驟 1     在路由器RouterA上執(zhí)行ping 30.1.1.1命令,能夠Ping通,說明路由器A和B之間的物理鏈路沒有問題。

具體RouterA為例:

 

  1. [RouterA] ping 30.1.1.1  
  2. PING 30.1.1.1: 56  data bytes, press CTRL_C to break  
  3. Reply from 30.1.1.1: bytes=56 Sequence=1 ttl=255 time=60 ms  
  4. Reply from 30.1.1.1: bytes=56 Sequence=2 ttl=255 time=80 ms  
  5. Reply from 30.1.1.1: bytes=56 Sequence=3 ttl=255 time=40 ms  
  6. Reply from 30.1.1.1: bytes=56 Sequence=4 ttl=255 time=80 ms  
  7. Reply from 30.1.1.1: bytes=56 Sequence=5 ttl=255 time=20 ms  
  8. --- 30.1.1.1 ping statistics ---  
  9. 5 packet(s) transmitted  
  10. 5 packet(s) received  
  11. 0.00% packet loss  
  12. round-trip min/avg/max = 20/56/80 ms 

 

步驟 2     在RouterA、RouterB上執(zhí)行display ospf routing,發(fā)現(xiàn)沒有RouterB上沒有PC3所在網(wǎng)段的路由信息。

以RouterB的具體顯示為例。

 

  1. [RouterB] display  ospf routing  
  2.    
  3. OSPF Process 1 with Router ID 100.1.1.2  
  4. Routing Tables  
  5.    
  6. Routing for Network  
  7. Destination        Cost  Type       NextHop         AdvRouter       Area  
  8. 30.1.1.0/24        3124  Stub       20.1.1.2        200.1.1.2       0.0.0.0  
  9. 200.1.1.0/24       3124  Stub       20.1.1.2        200.1.1.2       0.0.0.0  
  10. 20.1.1.0/24        1562  Stub       20.1.1.1        100.1.1.2       0.0.0.0  
  11. 10.1.1.0/24        1562  Stub       10.1.1.2        100.1.1.2       0.0.0.0  
  12.    
  13. Routing for ASEs  
  14. Destination        Cost      Type       Tag         NextHop         AdvRouter  
  15. 20.1.1.1/32        1         Type2      1           20.1.1.2        200.1.1.2  
  16. 30.1.1.2/32        1         Type2      1           20.1.1.2        200.1.1.2  
  17. 200.1.1.1/32       1         Type2      1           20.1.1.2        200.1.1.2  
  18.    
  19. Total Nets: 7  
  20. Intra Area: 4  Inter Area: 0  ASE: 3  NSSA: 0 

 

步驟 3     在RouterA和RouterB上執(zhí)行display ospf peer命令,發(fā)現(xiàn)RouterA和PC3沒有建立OSPF鄰居。

RouterA具體顯示。

 

  1. [RouterA] display ospf peer  
  2.    
  3. OSPF Process 1 with Router ID 100.1.1.2  
  4. Neighbors  
  5.    
  6. Area 0.0.0.0 interface 10.1.1.2(Gigabitethernet 1/0/0)'s neighbors  
  7. Router ID: 10.1.1.1         Address: 10.1.1.1  
  8. State: Full  Mode:Nbr is  Slave  Priority: 1  
  9. DR: None   BDR: None   MTU: 0  
  10. Dead timer due in 41  sec  
  11. Neighbor is up for 00:46:52  
  12. Authentication Sequence: [ 0 ]  
  13.    
  14. Neighbors  
  15.    
  16. Area 0.0.0.0 interface 20.1.1.1(Gigabitethernet1/0/1)'s neighbors  
  17. Router ID: 200.1.1.2        Address: 20.1.1.2  
  18. State: Full  Mode:Nbr is  Master  Priority: 1  
  19. DR: None   BDR: None   MTU: 0  
  20. Dead timer due in 36  sec  
  21. Neighbor is up for 00:42:29  
  22. Authentication Sequence: [ 0 ] 

 

步驟 4     在RouterA和RouterB上分別執(zhí)行display current-configuration configuration ospf命令,對比發(fā)現(xiàn)在RouterA上沒有用network命令將PC4所在100.1.1.0/24網(wǎng)段發(fā)布出去。

RouterA具體顯示。

 

  1. [RouterA] display current-configuration configuration ospf  
  2. #  
  3. ospf 1  
  4. import-route direct  
  5. import-route static  
  6. area 0.0.0.0  
  7. network 10.1.1.0 0.0.0.255  
  8. network 20.1.1.0 0.0.0.255  

 

RouterB具體顯示。

 

  1. [RouterB] display current-configuration configuration ospf  
  2. #  
  3. ospf 1  
  4. import-route direct  
  5. import-route static  
  6. area 0.0.0.0  
  7. network 20.1.1.0 0.0.0.255  
  8. network 30.1.1.0 0.0.0.255  
  9. network 200.1.1.0 0.0.0.255  
  10. #  
  11. return 

 

步驟 5     在RouterA上配置network 100.1.1.0 0.0.0.255,然后執(zhí)行display ospf peer命令,和PC3的OSPF鄰居建立,在PC3上Ping PC4的IP地址200.1.1.1,能夠Ping通。

具體PC3的顯示。

 

  1. [RouterA] display ospf peer  
  2. OSPF Process 1 with Router ID 100.1.1.1  
  3.  
  4. Neighbors  
  5.  
  6. Area 0.0.0.0 interface 100.1.1.1(Gigabitethernet6/0/0)'s neighbors  
  7. Router ID: 100.1.1.2        Address: 100.1.1.2  
  8. State: Full  Mode:Nbr is  Master  Priority: 1  
  9. DR: None   BDR: None   MTU: 0  
  10. Dead timer due in 34  sec  
  11. Neighbor is up for 00:09:36  
  12. Authentication Sequence: [ 0 ]  
  13. [PC3] ping 200.1.1.1  
  14. PING 200.1.1.1: 56  data bytes, press CTRL_C to break  
  15. Reply from 200.1.1.1: bytes=56 Sequence=1 ttl=253 time=70 ms  
  16. Reply from 200.1.1.1: bytes=56 Sequence=2 ttl=253 time=40 ms  
  17. Reply from 200.1.1.1: bytes=56 Sequence=3 ttl=253 time=100 ms  
  18. Reply from 200.1.1.1: bytes=56 Sequence=4 ttl=253 time=70 ms  
  19. Reply from 200.1.1.1: bytes=56 Sequence=5 ttl=253 time=100 ms  
  20.  
  21. --- 200.1.1.1 ping statistics ---  
  22. 5 packet(s) transmitted  
  23. 5 packet(s) received  
  24. 0.00% packet loss  
  25. round-trip min/avg/max = 40/76/100 ms 

 

故障解決。

在構(gòu)建OSPF網(wǎng)絡(luò)時(shí),只有對鏈路的正確宣告,路由器才會建立鄰居關(guān)系,根據(jù)LSA計(jì)算得出轉(zhuǎn)發(fā)路徑。

----結(jié)束

#p#

處理步驟

在RouterA執(zhí)行以下操作:

步驟 1     執(zhí)行命令system-view,進(jìn)入系統(tǒng)視圖。

步驟 2     執(zhí)行命令ospf [ process-id ],進(jìn)入OSPF進(jìn)程視圖。

步驟 3     執(zhí)行命令area area-id,進(jìn)入OSPF區(qū)域視圖。

步驟 4     執(zhí)行命令network ip-address wildcard-mask,配置區(qū)域所包含的網(wǎng)段。

步驟 5     執(zhí)行命令return退回到用戶視圖,執(zhí)行命令save,保存對配置的修改。

具體以RouterA的顯示為例。

 

  1. [RouterA] ospf 1  
  2. [RouterA-ospf-1] area 0  
  3. [RouterA-ospf-1-area-0.0.0.0] network 100.1.1.0 0.0.0.255  
  4. [RouterA-ospf-1-area-0.0.0.0] quit  
  5. [RouterA-ospf-1] quit  
  6. [RouterA] display ospf peer  
  7. OSPF Process 1 with Router ID 100.1.1.2  
  8.  
  9. Neighbors  
  10.  
  11. Area 0.0.0.0 interface 10.1.1.2(Gigabitethernet1/0/0)'s neighbors  
  12. Router ID: 10.1.1.1         Address: 10.1.1.1  
  13. State: Full  Mode:Nbr is  Slave  Priority: 1  
  14. DR: None   BDR: None   MTU: 0  
  15. Dead timer due in 38  sec  
  16. Neighbor is up for 01:05:56  
  17. Authentication Sequence: [ 0 ]  
  18.  
  19. Neighbors  
  20.  
  21. Area 0.0.0.0 interface 20.1.1.1(Gigabitethernet1/0/1)'s neighbors  
  22. Router ID: 200.1.1.2        Address: 20.1.1.2  
  23. State: Full  Mode:Nbr is  Master  Priority: 1  
  24. DR: None   BDR: None   MTU: 0  
  25. Dead timer due in 41  sec  
  26. Neighbor is up for 01:01:33  
  27. Authentication Sequence: [ 0 ]  
  28.  
  29. Neighbors  
  30.  
  31. Area 0.0.0.0 interface 100.1.1.2(Gigabitethernet1/0/2)'s neighbors  
  32. Router ID: 100.1.1.1        Address: 100.1.1.1  
  33. State: Full  Mode:Nbr is  Slave  Priority: 1  
  34. DR: None   BDR: None   MTU: 0  
  35. Dead timer due in 31  sec  
  36. Neighbor is up for 00:00:06  
  37. Authentication Sequence: [ 0 ] 

 

----結(jié)束

完成上述操作后,PC3能夠PING通PC4,故障排除。

案例總結(jié)

在構(gòu)建OSPF網(wǎng)絡(luò)時(shí),只有對鏈路的正確宣告,路由器才會建立鄰居關(guān)系,根據(jù)LSA計(jì)算得出轉(zhuǎn)發(fā)路徑。

直連路由的引入只能發(fā)生在網(wǎng)絡(luò)的末端,即葉節(jié)點(diǎn),它不作為SPF計(jì)算的一部分,因此不能誤認(rèn)為直連路由的引入就等同于對鏈路的宣告。

【編輯推薦】

  1. 路由器故障:策略路由配置不生效 
  2. 路由器故障:POS接口修改MTU值無法生效
  3. 路由器故障:POS接口無法收到對端的報(bào)文
  4. 路由器故障:ACL反掩碼配置錯(cuò)誤 策略路由失效
  5. 路由器故障:MP Group成員接口狀態(tài)頻繁Up/Down  
責(zé)任編輯:佚名 來源: 51CTO
相關(guān)推薦

2011-04-08 18:17:40

路由OSPF

2009-12-16 14:28:56

路由器配置

2011-04-08 18:10:31

路由

2011-04-08 17:24:34

OSPF路由

2011-03-30 16:27:07

POS接口OSPF

2011-04-11 16:29:31

OSPF

2011-04-08 17:42:13

OSPFOSPF鄰居

2010-08-25 10:24:40

2011-03-30 14:42:02

CPOS接口路由器MTU

2011-04-11 16:36:45

OSPF路由

2011-04-08 17:53:33

OSPF

2011-04-08 17:49:23

OSPF路由

2011-04-08 18:01:58

路由

2009-12-16 11:01:37

路由器配置

2011-04-08 14:53:55

ACL

2010-09-14 15:15:47

2011-04-11 16:04:38

BGPOSPF

2011-04-08 18:05:31

2011-03-30 15:18:22

POS接口

2011-04-08 15:15:34

策略路由
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號