Displaying BGP4 Statistics

Various show ip bgp commands verify information about BGP4 configurations.
Use one or more of the following commands to verify BGP4 information. The commands do not have to be entered in this order.
  1. Enter the show ip bgp summary command.
    device> show ip bgp summary
    
      BGP4 Summary 
      Router ID: 7.7.7.7   Local AS Number: 100
      Confederation Identifier: not configured
      Confederation Peers: 
      Maximum Number of IP ECMP Paths Supported for Load Sharing: 1
      Number of Neighbors Configured: 1, UP: 1
      Number of Routes Installed: 0
      Number of Routes Advertising to All Neighbors: 0 (0 entries)
      Number of Attribute Entries Installed: 0
      '+': Data in InQueue '>': Data in OutQueue '-': Clearing
      '*': Update Policy 'c': Group change 'p': Group change Pending
      'r': Restarting 's': Stale '^': Up before Restart '<': EOR waiting
      Neighbor Address  AS#         State   Time          Rt:Accepted Filtered Sent     ToSend
      10.1.1.8          100         ESTAB   0h 9m16s      0           0        0        0        
          
    
    This example output gives summarized BGP4 information.
  2. Enter the show ip bgp routes command.
    device> show ip bgp routes
    
    Total number of BGP Routes: 97371
    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      10.3.0.0/8          192.168.4.106              100        0      BE
             AS_PATH: 65001 4355 701 80
    2      10.4.0.0/8          192.168.4.106              100        0      BE
             AS_PATH: 65001 4355 1
    3      10.60.212.0/22      192.168.4.106              100        0      BE
             AS_PATH: 65001 4355 701 1 189
    4      10.6.0.0/8          192.168.4.106              100        0      BE
             AS_PATH: 65001 4355 3356 7170 1455
    5      10.8.1.0/24         192.168.4.106   0          100        0      BE
             AS_PATH: 65001 
    
    This example shows general BGP4 route information.
  3. Enter the show ip bgp command.
    device> show ip bgp
    
    Total number of BGP Routes: 1
    Status codes: s suppressed, d damped, h history, * valid, > best, i internal, S stale
    Origin codes: i - IGP, e - EGP, ? - incomplete
        Network        Next Hop      Metric  LocPrf   Weight Path
    *> 10.1.1.0/24    192.168.1.5    1       100      0      90000 100 200 65535
    65536 65537 65538 65539 75000
    
    This example shows general BGP4 information.
  4. Enter the show ip bgp attribute-entries command.
    device> show ip bgp attribute-entries
    
            Total number of BGP Attribute Entries: 18 (0)
    1       Next Hop  :192.168.1.6        MED :1             Origin:INCOMP
            Originator:0.0.0.0            Cluster List:None
            Aggregator:AS Number :0      Router-ID:0.0.0.0     Atomic:None
            Local Pref:100               Communities:Internet
    AS Path   :90000 80000 (length 11
    )
            Address: 0x10e4e0c4  Hash:489 (0x03028536), PeerIdx 0
            Links: 0x00000000, 0x00000000, nlri: 0x10f4804a
            Reference Counts: 1:0:1, Magic: 51
    2       Next Hop  :192.168.1.5        Metric   :1            Origin:INCOMP
            Originator:0.0.0.0            Cluster List:None
            Aggregator:AS Number :0      Router-ID:0.0.0.0       Atomic:None
            Local Pref:100               Communities:Internet
    AS Path   :90000 75000 (length 11)
            Address: 0x10e4e062  Hash:545 (0x0301e8f6), PeerIdx 0
            Links: 0x00000000, 0x00000000, nlri: 0x10f47ff0
            Reference Counts: 1:0:1, Magic: 49
    
    This example shows information about one route-attribute entry that is stored in device memory.
  5. Enter the show ip bgp peer-group command.
    device# show ip bgp peer-group pg1
    
    1   BGP peer-group is pg 
        Description: peer group abc 
           SendCommunity: yes 
           NextHopSelf: yes 
           DefaultOriginate: yes 
        Members: 
           IP Address: 10.168.10.10, AS: 65111  
    
    This example shows output for one BGP peer group, called “pg1”.
  6. Enter the show ip bgp routes command using the summary keyword.
    device> show ip bgp routes summary
    
      Total number of BGP routes (NLRIs) Installed     : 20
      Distinct BGP destination networks                : 20
      Filtered BGP routes for soft reconfig            : 100178
      Routes originated by this router                 : 2
      Routes selected as BEST routes                   : 19
      BEST routes not installed in IP forwarding table : 1
      Unreachable routes (no IGP route for NEXTHOP)    : 1
      IBGP routes selected as best routes              : 0
      EBGP routes selected as best routes              : 17
    
    This example shows summarized BGP4 route information.