This command displays the list of IPv4 routes advertised to a specific neighbor. These are the routes in the adjacent RIB out for the neighbor's outbound update group.
| Format | show ip bgp [vrf vrf-name] neighbors ip-address advertised-routes |
| Mode | Privileged EXEC |
| Parameter | Description |
|---|---|
| vrf-name | (Optional) Display the communities within the VRF instance. |
| ip-address | The IP address of a neighbor. |
The command output displays the following information.
| Parameter | Description |
|---|---|
| BGP table version | Each time phase 2 of the BGP decision process runs to select new BGP routes, this number is incremented |
| Status codes | p - The route has been updated in Adj-RIB-Out since the last UPDATE message was sent. Transmission of an UPDATE message is pending. |
| Network | Destination prefix |
| Next Hop | The BGP NEXT HOP as advertised to the peer. |
| Local Pref | The local preference. Local preference is never advertised to external peers. |
| Metric | The value of the Multi Exit Discriminator, if the MED is advertised to the peer. |
| Path | The AS path. The AS path does not include the local AS number, which is added to the beginning of the AS path when a route is advertised to an external peer. |
|
Note: The value of the ORIGIN attribute follows immediately after the AS Path.
|
|
Example: The following shows example CLI display output for the command.
(Routing) #show ip bgp neighbors 172.20.101.100 advertised-routes BGP table version is 5, local router ID is 20.1.1.1 Status codes: p advertisement pending Origin codes: i - IGP, e - EGP, ? - incomplete Originating default network 0.0.0.0 Version Network Next Hop Metric Local Pref Path 5 172.20.1.0/24 172.20.101.1 10 100 20 10 i p 5 20.1.1.0/24 172.20.101.1 100 20 ?
Note: This
output differs slightly from the output in show ip bgp. Suppressed routes and nonbest routes are not
advertised, so these status codes are not relevant here. Advertised routes always have a single next hop, the BGP NEXT HOP
advertised to the peer. Local preference is never sent to external peers.
The output indicates whether BGP is configured to originate a default route to this peer (neighbor default-originate).