Display BGP4 Neighbor Statistics

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: 2
    1   IP Address: 123.123.123.3, AS: 333 (EBGP), RouterID: 9.9.9.9, VRF: default-vrf
        State: ESTABLISHED, Time: 0h1m32s, KeepAliveTime: 60, HoldTime: 180
           KeepAliveTimer Expire in 17 seconds, HoldTimer Expire in 147 seconds
        Minimal Route Advertisement Interval: 0 seconds
           RefreshCapability: Received
        Messages:    Open    Update  KeepAlive Notification Refresh-Req
           Sent    : 2       15      3339      1            0          
           Received: 2       0       3356      0            0          
        Last Update Time: NLRI              Withdraw                NLRI                Withdraw
                      Tx: 0h1m32s           ---                 Rx: ---                 ---        
        Last Connection Reset Reason:User Reset Peer Session
        Notification Sent:     Cease/Administrative Reset
        Notification Received: Unspecified
        Neighbor NLRI Negotiation:
          Peer configured for IPV4 unicast  Routes
        Neighbor ipv6 MPLS Label Capability Negotiation:
        Neighbor AS4 Capability Negotiation:
        Outbound Policy Group:
           ID: 2, Use Count: 2
        BFD:Disabled
           Byte Sent:   146, Received: 0
           Local host:  123.123.123.2, Local  Port: 44575
           Remote host: 123.123.123.3, Remote Port: 179
    
    2   IP Address: 160.160.160.10, AS: 111 (EBGP), RouterID: 193.24.0.1, VRF: default-vrf
        State: ESTABLISHED, Time: 0h1m33s, KeepAliveTime: 30, HoldTime: 90
           KeepAliveTimer Expire in 12 seconds, HoldTimer Expire in 86 seconds
        Minimal Route Advertisement Interval: 0 seconds
           RefreshCapability: Received
        Messages:    Open    Update  KeepAlive Notification Refresh-Req
           Sent    : 8       0       553       5            0          
           Received: 8       9       498       0            0          
        Last Update Time: NLRI              Withdraw                NLRI                Withdraw
                      Tx: ---               ---                 Rx: 0h1m33s             ---        
        Last Connection Reset Reason:User Reset Peer Session
        Notification Sent:     Cease/Administrative Reset
        Notification Received: Unspecified
        Neighbor NLRI Negotiation:
          Peer configured for IPV4 unicast  Routes
        Neighbor ipv6 MPLS Label Capability Negotiation:
        Neighbor AS4 Capability Negotiation:
        Outbound Policy Group:
           ID: 2, Use Count: 2
        BFD:Disabled
           Byte Sent:   121, Received: 0
           Local host:  160.160.160.20, Local  Port: 53791
           Remote host: 160.160.160.10, Remote Port: 179
    
    
    This example output gives general information about BGP4 neighbors.
  2. Enter the show ip bgp neighbors advertised-routes command.
    device# show ip bgp neighbors 123.123.123.3 advertised-routes 
    
           There are 5 routes advertised to neighbor 123.123.123.3
    Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST E:EBGP I:IBGP L:LOCAL
           Prefix             Next Hop        MED        LocPrf     Weight Status
    1      110.110.110.0/24   123.123.123.2    0                    0      BE    
             AS_PATH: 222 111
    2      110.110.111.0/24   123.123.123.2    0                    0      BE    
             AS_PATH: 222 111
    3      110.110.112.0/24   123.123.123.2    0                    0      BE    
             AS_PATH: 222 111
    4      110.110.113.0/24   123.123.123.2    0                    0      BE    
             AS_PATH: 222 111
    5      110.110.114.0/24   123.123.123.2    0                    0      BE    
             AS_PATH: 222 111
         
    
    This example shows information about all the routes the BGP4 networking device advertised to the neighbor.
  3. Enter the show ip bgp neighbors last-packet-with-error command.
    device# show ip bgp neighbors 123.123.123.3 last-packet-with-error 
    
     Received Message Length: 45
     BGP Message:
      0xffffffff  0xffffffff  0xffffffff  0xffffffff  0x002d0104
      0x014b00b4  0x09090909  0x10020601  0x04010000  0x01020202
      0x00020280  0x00
    
     BGP Header
      Marker:   0xffffffff  0xffffffff  0xffffffff  0xffffffff
      Message Length: (0x002d) 45
      Message Type: (0x01) OPEN
    
     OPEN Message 
     Version: (0x04) 4
     AS Number: (0x014b) 331 
     Hold Time: (0x00b4) 180
     BGP Identifier: (0x09090909) 9.9.9.9 
     Optional Parameter length: (0x10) 16
    
     OPEN message optional parameters
      Parameter Type: (0x02) Capability
      Parameter Length: (0x06) 6
       Capability Type: (0x01) MULTIPROTOCOL EXTENSIONS
       Capability Length: (0x04) 4
       AFI: (0x0100) Unknown(256)
       Reserved: (0x00) 0
       SAFI: (0x01) Unicast
    
      Parameter Type: (0x02) Capability
      Parameter Length: (0x02) 2
       Capability Type: (0x02) ROUTE REFRESH(new)
       Capability Length: (0x00) 0
    
      Parameter Type: (0x02) Capability
      Parameter Length: (0x02) 2
       Capability Type: (0x80) ROUTE REFRESH(old)
       Capability Length: (0x00) 0
    
    
    This example shows information about the last packet that contained an error from any of a device‘s neighbors.
  4. Enter the show ip bgp neighbors received-routes command.
    device# show ip bgp neighbors 160.160.160.10 received-routes 
    
           There are 5 received routes from neighbor 160.160.160.10
    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        MED        LocPrf     Weight Status
    1      110.110.110.0/24   160.160.160.10   0         100        0      BE    
             AS_PATH: 111
    2      110.110.111.0/24   160.160.160.10   0         100        0      BE    
             AS_PATH: 111
    3      110.110.112.0/24   160.160.160.10   0         100        0      BE    
             AS_PATH: 111
    4      110.110.113.0/24   160.160.160.10   0         100        0      BE    
             AS_PATH: 111
    5      110.110.114.0/24   160.160.160.10   0         100        0      BE    
             AS_PATH: 111
    
    
    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 123.123.123.3 rib-out-routes 
    
           There are 5 RIB_out routes for neighbor 123.123.123.3
    Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST E:EBGP I:IBGP L:LOCAL
           Prefix             Next Hop        MED        LocPrf     Weight Status
    1      110.110.110.0/24   160.160.160.10   0         100        0      BE    
             AS_PATH: 111
    2      110.110.111.0/24   160.160.160.10   0         100        0      BE    
             AS_PATH: 111
    3      110.110.112.0/24   160.160.160.10   0         100        0      BE    
             AS_PATH: 111
    4      110.110.113.0/24   160.160.160.10   0         100        0      BE    
             AS_PATH: 111
    5      110.110.114.0/24   160.160.160.10   0         100        0      BE    
             AS_PATH: 111
    
    This example shows information about BGP4 outbound RIB routes.