Reset Search
 

 

Article

How To Troubleshoot BGP on XOS Routers

« Go Back

Information

 
TitleHow To Troubleshoot BGP on XOS Routers
Objective
Provide commands to troubleshoot the state of a BGP peer, and verify the routes transmitted and received.  
Environment
  • XOS
  • BlackDiamond
  • Summit
Procedure
  • Check to see if the state of the peer is "Established" at the bottom of this output 
  • A peer must be Established before routes are advertised to neighbors, or installed locally


BD-8806.8 # show show bgp neighbor 198.51.100.1

Peer Description    :
IBGP Peer           : 198.51.100.1      AS                  : 65000
Enabled             : Yes               OperStatus          : Up
Weight              : 1                 Shutdown-Priority   : 1024
ConnectRetry        : 120               MinAsOrig           : 5
HoldTimeCfg         : 180               KeepaliveCfg        : 60
Source Interface    : Not configured    RRClient            : No
EBGP-Multihop       : No                Remove Private AS   : No
Capabilities Config : ipv4-unicast,ipv4-multicast,4-Byte-As,route-refresh (old & new)
Policy for NLRI Type ipv4-unicast
  In Policy         : None
  Out Policy        : None
  NextHopSelf       : Disabled          Send Communities    : No
  Soft Input Recfg  : Disabled          Allow Looped AS-Path: Yes (Count: 3)
  Max-Prefix        : 4000              Max-Pre Threshold   : 75
  Max-Pre Teardown  : No                Max-Pre HoldInterval: None
  Max-Pre SendTraps : No
Policy for NLRI Type ipv4-multicast
  In Policy         : None
  Out Policy        : None
  NextHopSelf       : Disabled          Send Communities    : No
  Soft Input Recfg  : Disabled          Allow Looped AS-Path: No
Policy for NLRI Type vpnv4
  In Policy         : None
  Out Policy        : None
  NextHopSelf       : Disabled          Send Communities    : Standard, Extended
  Soft Input Recfg  : Disabled          Allow Looped AS-Path: No
Policy for NLRI Type ipv6-unicast
  In Policy         : None
  Out Policy        : None
  NextHopSelf       : Disabled          Send Communities    : No
  Soft Input Recfg  : Disabled          Allow Looped AS-Path: No
Policy for NLRI Type ipv6-multicast
  In Policy         : None
  Out Policy        : None
  NextHopSelf       : Disabled          Send Communities    : No
  Soft Input Recfg  : Disabled          Allow Looped AS-Path: No
State               : ESTABLISHED
FSM Up since        : Fri May 24 03:08:44 2019
 (Duration: 18:0:24:41)
Remote Addr         : 198.51.100.1      Local Addr          : 198.51.100.21
Remote Port         : 179               Local Port          : 52983
Remote RouterId     : 1.1.1.1           Local RouterId      : 21.21.21.21   
HoldTimeNegotiated  : 90                KeepAliveNegotiated : 30
FsmTransitions      : 1   
InUpdateElapsedTime : 00:00:00:01       InMsgElapsedTime    : 0:0:00:01 
InUpdates           : 8                 OutUpdates (in TxQ) : 2 (0)
InTotalMsgs         : 59639             OutTotalMsgs        : 59581
InRouteRefreshes    : 0                 OutRouteRefreshes   : 1
Route Statistics for NLRI Type ipv4-unicast
  Received          : 8                 Accepted            : 8
  Rejected          : 0                 Active              : 7
  Suppressed        : 0
Capabilities Tx     : ipv4-unicast,ipv4-multicast,4-Byte-As,route-refresh (old & new)
Capabilities Rx     : ipv4-unicast,4-Byte-As,route-refresh (old & new)
NLRI for the session:  ipv4-unicast
Last State          : ESTABLISHED       Last Event          : RX_KEEP
LastError           : 'None'

BGP Peer Statistics
  Total Peers       : 1
  EBGP Peers        : 0                 IBGP Peers          : 1
  RR Client         : 0                 EBGP Multihop       : 0
  Enabled           : 1                 Disabled            : 0

 
  • Check the routes transmitted
BD-8806.10 # show bgp neighbor 198.51.100.1 transmitted-routes  all

Advertised Routes:
     Destination                         Next-Hop        LPref Weight MED        AS-Path
----------------------------------------------------------------------------------------
 >?  17.17.17.0/24                       198.51.100.2    100          0         
 >?  24.24.24.24/32                      198.51.100.21   100          0         
 >?  198.51.100.0/24                     198.51.100.21   100          0         

Flags: (*) Preferred BGP route, (>) Active, (d) Suppressed, (h) History
       (s) Stale, (m) Multipath, (u) Unfeasible

Origin: (?) Incomplete, (e) EGP, (i) IGP

BGP Route Statistics
  Advertised Routes : 3
 
  • Check the routes received

BD-8806.11 # show bgp neighbor 198.51.100.1  received-routes all

Routes:
     Destination         Peer            Next-Hop        LPref Weight MED        AS-Path
----------------------------------------------------------------------------------------
*>?  0.0.0.0/0           198.51.100.1    10.58.106.1     100   1      0         
*>?  1.1.1.1/32          198.51.100.1    198.51.100.1    100   1      0         
*>?  2.2.2.1/32          198.51.100.1    192.168.10.22   100   1      0         
*>?  10.58.106.0/24      198.51.100.1    198.51.100.1    100   1      0         
*>?  192.168.10.0/24     198.51.100.1    198.51.100.1    100   1      0         
*>?  192.168.53.0/24     198.51.100.1    198.51.100.1    100   1      0         
*>?  192.168.55.0/24     198.51.100.1    198.51.100.1    100   1      0         
  ?  198.51.100.0/24     198.51.100.1    198.51.100.1    100   1      0         

Flags: (*) Preferred BGP route, (>) Active, (d) Suppressed, (h) History
       (s) Stale, (m) Multipath, (u) Unfeasible

Origin: (?) Incomplete, (e) EGP, (i) IGP

BGP Route Statistics
  Total Rxed Routes : 8
  Feasible Routes   : 8
  Active Routes     : 7
  Rejected Routes   : 0
  Unfeasible Routes : 0





 
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255