show ip bgp neighbors [ip] advertised-routes
Shows which routes are being advertised to a specific BGP peer for troubleshooting.
show ip bgp neighbors <ip-address> advertised-routesWhen 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-routesBGP 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-routesNo 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
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.
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.
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.
Related Commands
router bgp [asn]
Enters BGP router configuration mode and creates a BGP process with the specified autonomous system (AS) number. This is the first command required to configure BGP on a Cisco router.
show ip bgp
Displays the BGP routing table, showing learned BGP routes and their attributes, used for troubleshooting BGP path selection and verifying route advertisement.
show ip bgp neighbors
Displays detailed information about BGP neighbor sessions, including state, timers, and advertised/received prefixes, used to verify BGP peering and troubleshoot neighbor relationships.
Practice for the CCNA 200-301
Test your knowledge with hundreds of CCNA practice questions covering all exam domains.
Practice CCNA Questions