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.
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.
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.
| Aspect | show ip bgp neighbors [ip] advertised-routes | show ip bgp |
|---|---|---|
| Scope | Routes advertised to a specific neighbor only | All BGP routes in the local routing table |
| Output focus | Outbound advertisement from local router's perspective | All learned routes (best and non-best) with attributes |
| Effect of outbound filters | Shows routes after outbound filter application | Shows routes before any outbound filtering |
| Effect of inbound filters | Unaffected by inbound filters on neighbor | Shows routes after inbound filter application (if learned via BGP) |
| Typical use case | Verify what prefixes are actually sent to a peer | Analyze BGP path selection and best route decision |
| Data source | Adj-RIB-Out for the neighbor | Loc-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
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 practice questions covering all CCNA 200-301 exam domains.
Practice CCNA 200-301 Questions