# Monitoring Advertised BGP Routes

#### Purpose

Display the routes in the specified neighbor’s or peer group’s Adj-RIBs-Out table for IPv4 or IPv6.

For peers, display the attributes associated with the route before the application of any outbound policy. For peer groups, display the attributes associated with the route after the application of any outbound policy; that is, the actual advertised attributes. Report whether the indirect next hop of a route is unreachable; if not, display the IGP cost to the indirect next hop.

The show ip bgp advertised-routes and show bgp ipv6 advertised-routes commands displays similar information.

| Note: You must first enable storage of routes to the Adj-RIBs-Out tables with the no rib-out disable command or the no neighbor rib-out disable command. Otherwise, this command returns an error message.

#### Action

To display routes in the specified neighbor’s or peer group’s Adj-RIBs-Out table for IPv4:

    host1#show ip bgp neighbors 5.72.116.1 advertised-routes

    Local BGP identifier 2.2.2.2, local AS 2222
      0 routes (0 bytes used), 0 distinct destinations (0 bytes used)
      0 routes selected for route table installation
      0 path attribute entries (0 bytes used)

    Status codes: > best, * invalid, s suppressed, d dampened, r rejected

      Prefix             Peer            Next-hop     MED LocPrf Weight Origin
    > 0.0.0.0/0         5.72.116.1     5.72.1.1               0       IGP
    > 10.10.0.87/32     5.72.116.1     5.72.1.1               0       inc.
    > 13.13.13.13/32    5.72.116.1     5.72.1.1               0       IGP
    > 33.0.0.0/16       0.0.0.0        5.72.1.1         1     32768   inc.
    > 33.0.0.0/24       0.0.0.0        5.72.1.1         1     32768   inc.
    > 44.44.0.0/16      5.72.116.1     5.72.1.1               0       inc.

#### Meaning

Table 26 lists the show ip bgp advertised-routes command output fields.

Table 26: show ip bgp advertised-routes Output Fields

Field Name | Field Description
--- | ---
Local BGP identifier | BGP router ID of the local router
local AS | Local autonomous system number
routes | Total number of routes stored in the BGP routing table and amount of memory consumed by routes. If several peers have advertised a route to the same prefix, all routes are included in this count.
distinct destinations | Number of routes to unique prefixes stored in the BGP routing table. If several peers have advertised a route to the same prefix, only the best route is included in this count.
routes selected for route table installation | Number of routes in the BGP routing table that have been inserted into the IP routing table
path attribute entries | Number of distinct path attributes stored in BGP's internal path attributes table. If BGP receives two routes for different prefixes but with identical path attributes, BGP will create only one entry in its internal path attribute table and share it between the two routes to conserve memory.
Prefix | Prefix for the routing table entry
Peer | IP address of BGP peer
Next hop IP address | IP address of the next hop
MED | Multiexit discriminator for the route
LocPrf | Local preference for the route
Weight | Assigned path weight
Origin | Origin of the route

#### Related Documentation

- show bgp ipv6 advertised-routes
- show ip bgp advertised-routes