Courseiva
BGPPrivileged EXEC

show ip bgp neighbors [ip] advertised-routes

Shows which routes are being advertised to a specific BGP peer for troubleshooting.

Definition: show ip bgp neighbors [ip] advertised-routes is a Cisco IOS privileged exec command. Displays all BGP routes being advertised to a specific neighbor. Used to verify which prefixes a router is sending to a peer and troubleshoot missing routes from the peer's perspective.

Syntax·Privileged EXEC
show ip bgp neighbors <ip-address> advertised-routes

When to Use This Command

  • Verifying an ISP is receiving the correct prefixes from your router.
  • Troubleshooting missing routes on a BGP peer.
  • Confirming outbound route-map filtering is working as expected.
  • Checking which paths are being sent to each peer after policy application.

Command Examples

Check what routes are sent to an ISP peer

R1# show ip bgp neighbors 203.0.113.1 advertised-routes
BGP table version is 5, local router ID is 10.0.0.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
*> 198.51.100.0/24  0.0.0.0                  0         32768 i
*> 198.51.101.0/24  0.0.0.0                  0         32768 i

Two prefixes (198.51.100.0/24 and 198.51.101.0/24) are being sent to the ISP. Next hop 0.0.0.0 means locally originated. Weight 32768 is the default for locally sourced routes.

No routes advertised to a peer

R1# show ip bgp neighbors 10.0.0.2 advertised-routes
No BGP prefixes advertised to this neighbor

No routes are being sent. Possible causes: outbound route-map filtering all routes, no best-path routes in the BGP table, or the neighbor is not established.

Understanding the Output

Contrast this with 'show ip bgp neighbors [ip] received-routes' (what you get from the peer) and 'show ip bgp neighbors [ip] routes' (what you installed from the peer after filtering). Advertised-routes shows post-policy outbound view — if a route-map is filtering outbound, filtered prefixes won't appear here.

CCNA Exam Tips

1.

CCNA exam tip: 'advertised-routes' = what you SEND; 'received-routes' = what you GET (must enable 'neighbor soft-reconfiguration inbound' first); 'routes' = what you INSTALLED after filtering.

2.

CCNA exam tip: If you expect a peer to have a route but it doesn't, always check 'advertised-routes' first to confirm you're actually sending it.

3.

CCNA exam tip: 'soft-reconfiguration inbound' is needed to view received-routes without resetting the session.

Common Mistakes

Mistake 1: Confusing advertised-routes with received-routes — they show opposite directions.

Mistake 2: Forgetting that outbound route-maps affect what appears here — a route filtered outbound won't show.

Mistake 3: Checking advertised-routes when the BGP session is not established — no data will appear.

show ip bgp neighbors [ip] advertised-routes vs show ip bgp

Both commands are used to examine BGP route information, but they serve distinct purposes: one shows routes a router is actively sending to a specific neighbor, while the other shows the entire BGP table of learned routes. They are commonly confused because both display BGP prefixes and are used in troubleshooting routing issues.

Aspectshow ip bgp neighbors [ip] advertised-routesshow ip bgp
ScopeRoutes advertised to a specific neighbor onlyAll BGP routes in the local routing table
Output focusOutbound advertisement from local router's perspectiveAll learned routes (best and non-best) with attributes
Effect of outbound filtersShows routes after outbound filter applicationShows routes before any outbound filtering
Effect of inbound filtersUnaffected by inbound filters on neighborShows routes after inbound filter application (if learned via BGP)
Typical use caseVerify what prefixes are actually sent to a peerAnalyze BGP path selection and best route decision
Data sourceAdj-RIB-Out for the neighborLoc-RIB (or Adj-RIB-In after inbound filters)

Use show ip bgp neighbors [ip] advertised-routes when you need to confirm which prefixes your router is sending to a BGP peer, especially after applying outbound route-maps or prefix-lists.

Use show ip bgp when you want to inspect the entire BGP routing table to understand which routes are learned from all neighbors and which path is selected as best.

Related Commands

Practice for the CCNA 200-301

Test your knowledge with practice questions covering all CCNA 200-301 exam domains.

Practice CCNA 200-301 Questions