show ip bgp

Displays entries in the IPv4 Border Gateway Protocol (BGP4) routing table.
Syntax
show ip bgp
show ip bgp ip-addr [ /prefix ]
show ip bgp ip-addr [ /prefix ] longer-prefixes
Parameters
ipv6-addr/prefix
Specifies the IPv4 address and optional prefix.
longer-prefixes
Filters on prefixes equal to or greater than that specified by prefix.
Modes

User EXEC mode

Examples

The following example displays sample output from 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
 

The following example displays sample output from the show ip bgp command when an IP address is specified.

device> show ip bgp 10.3.4.0

Number of BGP Routes matching display condition : 1
Status codes: s suppressed, d damped, h history, * valid, > best, i internal
Origin codes: i - IGP, e - EGP, ? - incomplete
    Network            Next Hop        Metric LocPrf Weight Path
*>  10.3.4.0/24         192.168.4.106          100    0      65001 4355 1 1221 ?
       Last update to IP routing table: 0h11m38s, 1 path(s) installed:
         Gateway           Port
         192.168.2.1       1/2/1
       Route is advertised to 1 peers:
        10.20.20.2(65300)