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

路由器故障:BGP鄰居無法建立

運維 網(wǎng)絡運維
本文主要介紹了由于OSPF接口不一致導致BGP鄰居無法建立的故障的解決,希望大家能夠從中獲得幫助。

BGP鄰居無法建立故障之網(wǎng)絡環(huán)境

在圖中所示的組網(wǎng)中進行OSPF中建立BGP鄰居建立配置。RouterA和RouterB之間鏈路層協(xié)議采用的為ppp,IGP協(xié)議為ospf,IBGP協(xié)議以各自loopback口作為發(fā)送BGP報文的源接口,RouterA和RouterB同屬于area 0。RouterA的router-id為1.1.1.1,RouterB的router-id為2.2.2.2。

BGP鄰居建立組網(wǎng)圖

路由器故障:BGP鄰居無法建立

配置完成后,發(fā)現(xiàn)ospf鄰居顯示建立,BGP鄰居無法建立

#p#

BGP鄰居無法建立故障之故障分析

步驟 1     依次在RouterA和RouterB執(zhí)行display ospf peer命令,檢查兩個路由器的接口OSPF鄰居是否建立,結(jié)果顯示鄰居已經(jīng)達到FULL狀態(tài)。

具體以RouterA的顯示為例。

  1. [RouterA] display ospf peer  
  2.  
  3. OSPF Process 1 with Router ID 1.1.1.1  
  4.  
  5. Neighbors  
  6.  
  7. Area 0.0.0.1 interface 10.1.1.1(Serial1/0/1)'s neighbors  
  8.  
  9. Router ID: 2.2.2.2          Address: 10.1.1.2  
  10.  
  11. State: Full  Mode:Nbr is  Master  Priority: 1  
  12.  
  13. DR: None   BDR: None   MTU: 0  
  14.  
  15. Dead timer due in 35  sec  
  16.  
  17. Neighbor is up for 00:44:10  
  18.  
  19. Authentication Sequence: [ 0 ] 

 

步驟 2     在RouterA和RouterB上分別執(zhí)行display bgp peer命令,結(jié)果BGP鄰居狀態(tài)處于Idle狀態(tài)。

具體以RouterA的顯示為例。

  1. [RouterA] display bgp peer  
  2.  
  3. BGP local router ID : 1.1.1.1  
  4.  
  5. Local AS number : 1  
  6.  
  7. Total number of peers : 1                 Peers in established state : 0  
  8.  
  9. Peer            V    AS  MsgRcvd  MsgSent  OutQ  Up/Down       State PrefRcv  
  10.  
  11. 2.2.2.2         4     1       20       20     0 00:00:31        Idle       0 

 

步驟 3     在RouterA上執(zhí)行display ip routing-table命令,發(fā)現(xiàn)RouterA上沒有能學習到RouterB上loopback口2.2.2.2/32的路由,這是通過ospf 學習到的。正常情況應該能夠?qū)W到此路由。

具體以RouterA顯示為例。

  1. [RouterA] display ip routing-table  
  2.  
  3. Route Flags: R - relay, D - download to fib  
  4.  
  5. ------------------------------------------------------------------------------  
  6.  
  7. Routing Tables: Public  
  8.  
  9. Destinations : 6        Routes : 6  
  10.  
  11.  
  12.  
  13. Destination/Mask    Proto  Pre  Cost     Flags NextHop         Interface  
  14.  
  15.  
  16.  
  17. 1.1.1.1/32  Direct 0    0           D  127.0.0.1       InLoopBack0  
  18.  
  19. 10.1.1.0/30  Direct 0    0           D  10.1.1.1        Serial1/0/1  
  20.  
  21. 10.1.1.1/32  Direct 0    0           D  127.0.0.1       InLoopBack0  
  22.  
  23. 10.1.1.2/32  Direct 0    0           D  10.1.1.2        Serial1/0/1  
  24.  
  25. 127.0.0.0/8   Direct 0    0           D  127.0.0.1       InLoopBack0  
  26.  
  27. 127.0.0.1/32  Direct 0    0           D  127.0.0.1       InLoopBack0 

 

步驟 4     在RouterA上執(zhí)行disply ospf error命令,發(fā)現(xiàn)一個error。

具體RouterA顯示.

  1. Configuration errors:  
  2.  
  3. 0     : Tunnel cost mistake  
  4.  
  5. 1     : The network type of the neighboring interface is not consistent. 

 

步驟 5     分別在RouterA和RouterB上執(zhí)行display current-configuration命令,發(fā)現(xiàn)在RouterA上配置了ospf network-type broadcast這條命令,而RouterB上沒有。

具體RouterA顯示。

  1. sysname RouterA  
  2.  
  3. #  
  4.  
  5. interface Serial1/0/1  
  6.  
  7. link-protocol ppp  
  8.  
  9. ip address 10.1.1.1 255.255.255.252  
  10.  
  11. ospf cost 1  
  12.  
  13. ospf network-type broadcast  
  14.  

 

RouterB顯示

  1. sysname RouterB  
  2.  
  3. #  
  4.  
  5. interface Serial1/0/1  
  6.  
  7. link-protocol ppp  
  8.  
  9. ip address 10.1.1.2 255.255.255.252  
  10.  
  11. ospf cost 1 

 

步驟 6     在RouterB的serial1/0/0口上配置ospf network-type broadcast這條命令后,執(zhí)行display bgp peer命令。

RouterB顯示BGP鄰居狀態(tài)信息為:

  1. [RouterB] display bgp peer  
  2.  
  3. BGP local router ID : 2.2.2.2  
  4.  
  5. Local AS number : 1  
  6.  
  7. Total number of peers : 1                 Peers in established state : 1  
  8.  
  9. Peer            V    AS  MsgRcvd  MsgSent  OutQ  Up/Down       State PrefRcv  
  10.  
  11. 1.1.1.1         4     1       28       39     0 00:10:00 Established       0 

 

狀態(tài)變?yōu)镋stablished,BGP鄰居成功建立。

步驟 7     在RouterA上執(zhí)行display ip routing-table命令,路由表中已經(jīng)通過OSPF學到了RouterB的Loopback口2.2.2.2/32的路由信息。

具體RouterA顯示。

  1. [RouterA] display ip routing-table  
  2.  
  3. Route Flags: R - relay, D - download to fib  
  4.  
  5. ------------------------------------------------------------------------------  
  6.  
  7. Routing Tables: Public  
  8.  
  9. Destinations : 7        Routes : 7  
  10.  
  11. Destination/Mask    Proto  Pre  Cost     Flags NextHop         Interface  
  12.  
  13. 1.1.1.1/32  Direct  10   2           D  10.1.1.1        Serial1/0/1  
  14.  
  15. 2.2.2.2/32  OSPF    0    0           D  127.0.0.1       InLoopBack0  
  16.  
  17. 10.1.1.0/30  Direct 0    0           D  10.1.1.2        Serial1/0/1  
  18.  
  19. 10.1.1.1/32  Direct 0    0           D  10.1.1.1        Serial1/0/1  
  20.  
  21. 10.1.1.2/32  Direct 0    0           D  127.0.0.1       InLoopBack0  
  22.  
  23. 127.0.0.0/8   Direct 0    0           D  127.0.0.1       InLoopBack0  
  24.  
  25. 127.0.0.1/32  Direct 0    0           D  127.0.0.1       InLoopBack0 

 

故障解決。

----結(jié)束

#p#

BGP鄰居無法建立故障之處理步驟

在RouterB上進行完接口IP配置和OSPF基礎配置之后,分別執(zhí)行以下操作。

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

步驟 2     執(zhí)行命令interface interface-type interface-number,進入接口視圖。

步驟 3     執(zhí)行命令ospf network-type broadcast。

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

----結(jié)束

完成上述操作后,BGP鄰居狀態(tài)表為Established狀態(tài),故障排除。

BGP鄰居無法建立故障之案例總結(jié)

在ospf中如果鏈路層協(xié)議配置為ppp,則ospf的network-type 默認為p2p如果強制一端為其他類型,ospf顯示鄰居雖然建立,但是處于一種非正常狀態(tài),無法學習到對端ospf路由。因而一些設備到對端的loopback口路由不可達,TCP連接沒有正常建立,故BGP鄰居無法正常建立。

【編輯推薦】

  1. 路由器故障:A個平面業(yè)務中斷
  2. 路由器故障:OSPF路由選路失敗
  3. 路由器故障:靜態(tài)ARP配置不生效
  4. 路由器故障:黑洞路由導致業(yè)務中斷
  5. 路由器故障:OSPF鄰居無法正常建立 
  6. 路由器故障:下行設備無法學習到等值路由
責任編輯:佚名 來源: 51CTO
相關推薦

2011-04-11 16:29:31

OSPF

2011-03-30 16:27:07

POS接口OSPF

2011-04-08 17:42:13

OSPFOSPF鄰居

2011-05-17 13:31:37

IBGP路由

2011-05-11 14:28:31

IS-IS路由IP-Trunk

2011-04-11 16:20:06

OSPF

2011-08-25 15:15:16

MPLS LDP鄰居ATM接口MPLS LDP協(xié)議

2011-05-17 13:31:48

IBGP路由EBGP

2011-05-17 13:07:55

IBGP

2011-05-17 13:25:53

IBGPOSPF路由表

2011-04-08 18:05:31

2011-09-16 15:52:14

BGP路由器故障VSI

2011-05-17 10:59:07

EBGPLoopback地址

2011-04-08 17:10:54

路由靜態(tài)路由

2011-04-08 17:22:40

路由

2009-12-22 15:04:11

路由器無法撥號故障

2015-02-10 09:32:20

BGP路由器

2011-08-25 10:59:06

192.168.1.1路由器

2011-04-08 18:13:29

默認路由等值路由

2009-11-09 16:30:11

路由器故障
點贊
收藏

51CTO技術棧公眾號