Display BGP4 Statistics

Various show ip bgp commands verify information about BGP4 configurations.

About this task

Use one or more of the following commands to verify BGP4 information. The commands do not have to be entered in this order.

Procedure

  1. Enter the show ip bgp summary command.
    device# show ip bgp summary
    
      BGP4 Summary
      Router ID: 192.117.117.36   Local AS Number: 1001
      Confederation Identifier: not configured
      Confederation Peers:
      Maximum Number of IP ECMP Paths Supported for Load Sharing: 1
      Number of Neighbors Configured: 1, UP: 0
      Number of Routes Installed: 4, Uses 384 bytes
      Number of Routes Advertising to All Neighbors: 4 (4 entries), Uses 240 bytes
      Number of Attribute Entries Installed: 1, Uses 104 bytes
      Neighbor Address  AS#         State     Time     Rt:Accepted Filtered Sent     ToSend
      192.117.117.3     1001        ACTIV     4h 5m 0s    0        0        0        4
      
    
    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: 4
    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      42.9.1.0/24        0.0.0.0         0          100        32768  BL
             AS_PATH:
    2      42.9.2.0/24        0.0.0.0         0          100        32768  BL
             AS_PATH:
    3      42.9.3.0/24        0.0.0.0         0          100        32768  BL
             AS_PATH:
    4      42.9.4.0/24        0.0.0.0         0          100        32768  BL
             AS_PATH:
    
    This example shows general BGP4 route information.
  3. Enter the show ip bgp command.
    device# show ip bgp
    
    Total number of BGP Routes: 4
    Status codes: s suppressed, d damped, h history, * valid, > best, i internal, S stale
    Origin codes: i - IGP, e - EGP, ? - incomplete
        Network            Next Hop        MED        LocPrf     Weight Path
    *>  42.9.1.0/24        0.0.0.0         0          100         32768  i
    *>  42.9.2.0/24        0.0.0.0         0          100         32768  i
    *>  42.9.3.0/24        0.0.0.0         0          100         32768  i
    *>  42.9.4.0/24        0.0.0.0         0          100         32768  i
    
    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: 1
    1       Next Hop  : 0.0.0.0            MED      :0               Origin:IGP
            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   : (length 0)
               AsPathLen: 0  AsNum: 0, SegmentNum: 0, Neighboring As: 0, Source As 0
            Address: 0x67c1002c  Hash:364 (0x01000000)
            Links: 0x00000000, 0x00000000
            Reference Counts: 4:0:4, Magic: 1    
    
    
    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 
    
    1   BGP peer-group is pg
          Address family : IPV4 Unicast 
            activate 
          Address family : IPV6 Unicast 
            no activate 
        Members:
           IP Address: 1.1.1.1, AS: 100 
           IP Address: 1::1, AS: 100 
    
    2   BGP peer-group is pg6
          Address family : IPV4 Unicast 
            activate 
          Address family : IPV6 Unicast 
            no activate 
        Currently there are no members
    
    
    This example shows output for two BGP peer groups, called “pg” and “pg6”.
  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     : 1
      Distinct BGP destination networks                : 1
      Filtered bgp routes for soft reconfig            : 0
      Routes originated by this router                 : 1
      Routes selected as BEST routes                   : 1
      Routes Installed as BEST routes                  : 1
      BEST routes not installed in IP forwarding table : 0
      Unreachable routes (no IGP route for NEXTHOP)    : 0
      IBGP routes selected as best routes              : 0
      EBGP routes selected as best routes              : 0
      BEST routes not valid for IP forwarding table    : 0
    
    This example shows summarized BGP4 route information.