Displaying BGP4 Neighbor Statistics

Various show ip bgp neighbors commands verify information about BGP4 neighbor configurations.
Use one or more of the following commands to verify BGP4 neighbor information. The commands do not have to be entered in this order.
  1. Enter the show ip bgp neighbors command.
    device# show ip bgp neighbors   
        Total number of BGP Neighbors:3
    1   IP Address: 17.1.1.1, AS: 1 (IBGP), RouterID: 3.1.1.1, VRF: default-vrf
        State: ESTABLISHED, Time: 1d22h42m4s, KeepAliveTime: 10, HoldTime: 30
           KeepAliveTimer Expire in 4 seconds, HoldTimer Expire in 23 seconds
        Minimal Route Advertisement Interval: 0 seconds
           PeerGroup: p1
           RefreshCapability: Received
           GracefulRestartCapability: Received
               Restart Time 120 sec, Restart bit 0
               afi/safi 1/1, Forwarding bit 0
               afi/safi 2/1, Forwarding bit 0
           GracefulRestartCapability: Sent
               Restart Time 120 sec, Restart bit 0
               afi/safi 1/1, Forwarding bit 0
               afi/safi 2/1, Forwarding bit 0
        Messages:    Open    Update  KeepAlive Notification Refresh-Req
           Sent    : 1       2       16729     0            0          
           Received: 1       2       18097     0            0          
        Last Update Time: NLRI       Withdraw          NLRI       Withdraw
                      Tx: ---        ---           Rx: ---        ---        
        Last Connection Reset Reason:Unknown
        Notification Sent:     Unspecified
        Notification Received: Unspecified
        Neighbor NLRI Negotiation:
          Peer Negotiated IPV4  unicast  capability
          Peer Negotiated IPV6 unicast  capability                    
          Peer configured for IPV4 unicast  Routes
          Peer configured for IPV6 unicast  Routes
        Neighbor AS4 Capability Negotiation:
        Outbound Policy Group:
           ID: 3, Use Count: 6
        AO Keychain name : 1
        TCP Connection state: ESTABLISHED
         TCP Keychain name      : 1
         TCP-AO Enabled         : YES
         TCP-AO in use          : YES
         Keychain valid         : YES
         No of segments dropped : 0
         Send-Active-Key
         ---------------
           Key-id               : 1
           Crypto Algorithm     : AES-128-CMAC
           Send-id              : 100
           Recv-id              : 100
           Include-tcp-options  : YES
           Accept-ao-mismatch   : YES
         Recv-Active-Key
         ---------------
           Key-id               : 1
           Crypto Algorithm     : AES-128-CMAC
           Send-id              : 100                                 
           Recv-id              : 100
           Include-tcp-options  : YES
           Accept-ao-mismatch   : YES
    
         Maximum segment size: 1420
        TTL check: value: 0
           Byte Sent:   317970, Received: 343962
           Local host:  17.1.1.2, Local  Port: 8003
           Remote host: 17.1.1.1, Remote Port: 179
           ISentSeq:   17564913  SendNext:   17882884  TotUnAck:          0
           TotSent:      317971  ReTrans:          40  UnAckSeq:   17882884
           IRcvSeq:   153787685  RcvNext:   154131648  SendWnd:       16365
           TotalRcv:     343963  DupliRcv:       1083  RcvWnd:        16384
           SendQue:           0  RcvQue:            0  CngstWnd:       1439
    
    
    show ip bgp neighbors <ip-address>
    device# show ip bgp neighbors 17.1.1.1
    1   IP Address: 17.1.1.1, AS: 1 (IBGP), RouterID: 3.1.1.1, VRF: default-vrf
        State: ESTABLISHED, Time: 1d22h42m42s, KeepAliveTime: 10, HoldTime: 30
           KeepAliveTimer Expire in 9 seconds, HoldTimer Expire in 21 seconds
        Minimal Route Advertisement Interval: 0 seconds
           PeerGroup: p1
           RefreshCapability: Received
           GracefulRestartCapability: Received
               Restart Time 120 sec, Restart bit 0
               afi/safi 1/1, Forwarding bit 0
               afi/safi 2/1, Forwarding bit 0
           GracefulRestartCapability: Sent
               Restart Time 120 sec, Restart bit 0
               afi/safi 1/1, Forwarding bit 0
               afi/safi 2/1, Forwarding bit 0
        Messages:    Open    Update  KeepAlive Notification Refresh-Req
           Sent    : 1       2       16733     0            0          
           Received: 1       2       18101     0            0          
        Last Update Time: NLRI       Withdraw          NLRI       Withdraw
                      Tx: ---        ---           Rx: ---        ---        
        Last Connection Reset Reason:Unknown
        Notification Sent:     Unspecified
        Notification Received: Unspecified
        Neighbor NLRI Negotiation:
          Peer Negotiated IPV4  unicast  capability
          Peer Negotiated IPV6 unicast  capability
          Peer configured for IPV4 unicast  Routes                    
          Peer configured for IPV6 unicast  Routes
        Neighbor AS4 Capability Negotiation:
        Outbound Policy Group:
           ID: 3, Use Count: 6
        AO Keychain name : 1
        TCP Connection state: ESTABLISHED
         TCP Keychain name      : 1
         TCP-AO Enabled         : YES
         TCP-AO in use          : YES
         Keychain valid         : YES
         No of segments dropped : 0
         Send-Active-Key
         ---------------
           Key-id               : 1
           Crypto Algorithm     : AES-128-CMAC
           Send-id              : 100
           Recv-id              : 100
           Include-tcp-options  : YES
           Accept-ao-mismatch   : YES
         Recv-Active-Key
         ---------------
           Key-id               : 1
           Crypto Algorithm     : AES-128-CMAC
           Send-id              : 100
           Recv-id              : 100                                 
           Include-tcp-options  : YES
           Accept-ao-mismatch   : YES
    
         Maximum segment size: 1420
        TTL check: value: 0
           Byte Sent:   318046, Received: 344038
           Local host:  17.1.1.2, Local  Port: 8003
           Remote host: 17.1.1.1, Remote Port: 179
           ISentSeq:   17564913  SendNext:   17882960  TotUnAck:          0
           TotSent:      318047  ReTrans:          40  UnAckSeq:   17882960
           IRcvSeq:   153787685  RcvNext:   154131724  SendWnd:       16365
           TotalRcv:     344039  DupliRcv:       1083  RcvWnd:        16384
           SendQue:           0  RcvQue:            0  CngstWnd:       1439
    
    This example output gives general information about BGP4 neighbors.
  2. Enter the show ip bgp neighbors advertised-routes command.
    device# show ip bgp neighbors 192.168.4.211 advertised-routes
    
           There are 2 routes advertised to neighbor 192.168.4.211
    Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST C:CONFED_EBGP D:DAMPED
           E:EBGP H:HISTORY I:IBGP L:LOCAL M:MULTIPATH m:NOT-INSTALLED-MULTIPATH
           S:SUPPRESSED F:FILTERED s:STALE
           Network        Next Hop       Metric   LocPrf   Weight   Status
    1      10.102.0.0/24  192.168.2.102   12               32768    BL
    2      10.200.1.0/24  192.168.2.102   0                32768    BL
    
    This example shows information about all the routes the BGP4 networking device advertised to the neighbor.
  3. Enter the show ip bgp neighbors command and specify an IP address.
    device# show ip bgp neighbors 17.1.1.1
    1   IP Address: 17.1.1.1, AS: 1 (IBGP), RouterID: 3.1.1.1, VRF: default-vrf
        State: ESTABLISHED, Time: 1d22h42m42s, KeepAliveTime: 10, HoldTime: 30
           KeepAliveTimer Expire in 9 seconds, HoldTimer Expire in 21 seconds
        Minimal Route Advertisement Interval: 0 seconds
           PeerGroup: p1
           RefreshCapability: Received
           GracefulRestartCapability: Received
               Restart Time 120 sec, Restart bit 0
               afi/safi 1/1, Forwarding bit 0
               afi/safi 2/1, Forwarding bit 0
           GracefulRestartCapability: Sent
               Restart Time 120 sec, Restart bit 0
               afi/safi 1/1, Forwarding bit 0
               afi/safi 2/1, Forwarding bit 0
        Messages:    Open    Update  KeepAlive Notification Refresh-Req
           Sent    : 1       2       16733     0            0          
           Received: 1       2       18101     0            0          
        Last Update Time: NLRI       Withdraw          NLRI       Withdraw
                      Tx: ---        ---           Rx: ---        ---        
        Last Connection Reset Reason:Unknown
        Notification Sent:     Unspecified
        Notification Received: Unspecified
        Neighbor NLRI Negotiation:
          Peer Negotiated IPV4  unicast  capability
          Peer Negotiated IPV6 unicast  capability
          Peer configured for IPV4 unicast  Routes                    
          Peer configured for IPV6 unicast  Routes
        Neighbor AS4 Capability Negotiation:
        Outbound Policy Group:
           ID: 3, Use Count: 6
        AO Keychain name : 1
        TCP Connection state: ESTABLISHED
         TCP Keychain name      : 1
         TCP-AO Enabled         : YES
         TCP-AO in use          : YES
         Keychain valid         : YES
         No of segments dropped : 0
         Send-Active-Key
         ---------------
           Key-id               : 1
           Crypto Algorithm     : AES-128-CMAC
           Send-id              : 100
           Recv-id              : 100
           Include-tcp-options  : YES
           Accept-ao-mismatch   : YES
         Recv-Active-Key
         ---------------
           Key-id               : 1
           Crypto Algorithm     : AES-128-CMAC
           Send-id              : 100
           Recv-id              : 100                                 
           Include-tcp-options  : YES
           Accept-ao-mismatch   : YES
    
         Maximum segment size: 1420
        TTL check: value: 0
           Byte Sent:   318046, Received: 344038
           Local host:  17.1.1.2, Local  Port: 8003
           Remote host: 17.1.1.1, Remote Port: 179
           ISentSeq:   17564913  SendNext:   17882960  TotUnAck:          0
           TotSent:      318047  ReTrans:          40  UnAckSeq:   17882960
           IRcvSeq:   153787685  RcvNext:   154131724  SendWnd:       16365
           TotalRcv:     344039  DupliRcv:       1083  RcvWnd:        16384
           SendQue:           0  RcvQue:            0  CngstWnd:       1439
    
    This example shows information about a specific BGP4 neighbor.
  4. Enter the show ip bgp neighbors received-routes command.
    device# show ip bgp neighbors 10.168.4.106 received-routes
    
           There are 97345 received routes from  neighbor 10.168.4.106
    Searching for matching routes, use ^C to quit...
    tatus A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST C:CONFED_EBGP D:DAMPED
           E:EBGP H:HISTORY I:IBGP L:LOCAL M:MULTIPATH S:SUPPRESSED F:FILTEREDtatus A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST C:CONFED_EBGP D:DAMPED
           E:EBGP H:HISTORY I:IBGP L:LOCAL M:MULTIPATH S:SUPPRESSED F:FILTERED
           Prefix             Next Hop        MED     LocPrf    Weight Status
    1      10.3.0.0/8          10.168.4.106           100       0      BE
             AS_PATH: 65001 4355 701 8
    2      10.4.0.0/8          10.168.4.106           100       0      BE
             AS_PATH: 65001 4355 1
    3      10.60.212.0/22      10.168.4.106           100       0      BE
             AS_PATH: 65001 4355 701 1 189
    4      10.6.0.0/8          10.168.4.106           100       0      BE
    
    This example lists all route information received in route updates from BGP4 neighbors of the device since the soft-reconfiguration feature was enabled.
  5. Enter the show ip bgp neighbors rib-out-routes command.
    device# show ip bgp neighbors 192.168.4.211 rib-out-routes 192.168.1.0/24
    
    Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST C:CONFED_EBGP D:DAMPED
           E:EBGP H:HISTORY I:IBGP L:LOCAL M:MULTIPATH m:NOT-INSTALLED-MULTIPATH
           S:SUPPRESSED F:FILTERED s:STALE
           Prefix             Next Hop        Metric     LocPrf     Weight Status
    1      10.200.1.0/24       0.0.0.0         0          101        32768  BL
    
    This example shows information about BGP4 outbound RIB routes.