Use it after every change to a route map, prefix list or filter on a BGP neighbour — and to avoid the outage a hard reset would cause.
BGP Route Refresh & Soft Policy Change Reference
BGP sends each route once, so a changed policy does not affect routes already exchanged. Route refresh re-applies it without tearing the session down: soft in asks the neighbour to resend its routes, soft out resends your own.
1. Which direction did the policy change — received or sent?
2. Received → clear ip bgp <ip> soft in. Sent → clear ip bgp <ip> soft out.
3. show route-map — counters moved?
4. Check the result with routes or advertised-routes.
5. No route refresh from the neighbour → soft-reconfiguration inbound, or a hard reset.
policy changed → direction identified → soft clear in that direction → routes pass through the new policy (counters rise) → accepted or advertised set reflects it → session up time unchanged
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
clear bgp ipv4 unicast <peer> soft inPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification Verify boundary
show ip bgp neighbors 192.0.2.2 | include refresh|Route Refresh
show ip bgp neighbors 192.0.2.2 | section Message statistics
show route-map
show ip bgp neighbors 192.0.2.2 routes
show ip bgp neighbors 192.0.2.2 advertised-routes
The first confirms that route refresh is advertised and received. The message statistics count Route Refresh messages sent and received, so a soft in can be seen to have gone out. show route-map shows match counters, which rise as routes pass through the policy again. The last two show the result: what is now accepted and what is now advertised.
Known-good: after the soft clear, the route-map counters increase, the accepted or advertised routes reflect the new policy, and the session's up time has not reset.
Step 2 Failure isolation workflow Narrow the fault
- A policy change has no effect. No refresh was done; BGP does not re-evaluate existing routes on its own.
soft outwas used for an inbound change, or the reverse. Each direction has its own command.soft indoes nothing. The neighbour did not advertise route refresh; configure inbound soft reconfiguration, or reset the session.- Memory use rose sharply.
soft-reconfiguration inboundkeeps a second copy of the neighbour's routes. - A new address family carries no routes after
activate. That needs a new session; a soft clear is not enough. - The wrong session was refreshed. The change was in another address family or towards another neighbour.
- An outage followed a routine policy change. A hard
clear ip bgpwas used where a soft one would have done.
Inbound change → clear ip bgp <ip> soft in; outbound change → soft out. A plain clear ip bgp <ip> drops the session and all its routes. Anything negotiated in the OPEN — a new address family, timers — does need a hard reset.
show ip bgp neighbors <ip> | include refresh— route refresh advertised and received.show ip bgp neighbors <ip> | section Message statistics— Route Refresh counters.show route-map— match counters rising after the refresh.show ip bgp neighbors <ip> routes/advertised-routes— the result.
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
BGP sends each route once. When a routing policy is changed, the routes already exchanged are not re-evaluated by themselves; they have to be sent or processed again. Route refresh is the mechanism for doing that without tearing the session down.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
The alternative — resetting the session — withdraws every route learned from the neighbour and interrupts traffic until they are relearned. With a full Internet table that takes minutes. Knowing which kind of refresh applies to which direction of policy avoids both an unnecessary outage and the opposite mistake: a policy change that never took effect.
ReferenceHow it works1 section · depth on demand
How it works
Three ways to apply a changed policy.
| Command | What happens | Impact |
|---|---|---|
clear ip bgp <ip> soft in | Sends a ROUTE-REFRESH message; the neighbour resends all its routes, and they pass through the new inbound policy | None on forwarding |
clear ip bgp <ip> soft out | This router sends its routes again through the new outbound policy | None on forwarding |
clear ip bgp <ip> | Hard reset: the session is closed and re-established | All routes from the neighbour are removed and relearned |
Use soft in after changing anything that affects received routes — an inbound route map, prefix list or filter list — and soft out after changing what is sent. Changing both needs both, or clear ip bgp <ip> soft.
Route refresh capability. soft in depends on the neighbour having announced, in its OPEN message, that it supports route refresh. Practically all current software does. The capability is shown in show ip bgp neighbors.
Without the capability, the alternative is neighbor <ip> soft-reconfiguration inbound. The router then stores an unmodified copy of everything the neighbour sends and can reapply inbound policy from that copy at any time. It costs memory in proportion to the number of routes, and it is also what makes show ip bgp neighbors <ip> received-routes available.
soft out needs no capability; the router is only resending its own routes.
When a hard reset is unavoidable. Anything negotiated in the OPEN message takes effect only on a new session: activating an address family, changing timers, enabling graceful restart, changing the neighbour's AS or update source.
For address families other than IPv4 unicast, use the matching form, for example clear bgp ipv6 unicast <neighbor> soft in.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Route refresh and soft policy changes
BGP sends each route once, so a changed policy doesn't apply to routes already received until they are sent again. RFC 2918 solves this without resetting the session. A speaker that advertised the route refresh capability (code 2, length 0) can be sent a ROUTE-REFRESH message (type 5) naming an AFI and SAFI. The receiver then re-advertises its Adj-RIB-Out for that address family, filtered through its current outbound policy. The message may be sent only if the peer advertised the capability, and only for an address family negotiated on the session.
Ways to apply a policy change
| Method | Effect on the session | Cost |
|---|---|---|
clear bgp ... <peer> (hard reset) | Session drops; all routes are withdrawn and relearned | Traffic disruption |
clear bgp ... <peer> soft in with route refresh | Session stays up; the peer resends its routes | One full table transfer |
soft-reconfiguration inbound | Session stays up; the stored copy is re-evaluated | Memory for the full unfiltered table |
clear bgp ... <peer> soft out | Session stays up; we resend our routes | One full table transfer |
Enhanced route refresh
Newer implementations mark the start and end of a refresh with BoRR and EoRR markers (RFC 7313). Routes that aren't re-sent between the markers can then be removed as stale.
R1(config)# route-map FROM-ISP-A permit 10
R1(config-route-map)# set local-preference 200
R1# clear bgp ipv4 unicast 203.0.113.2 soft in
R1# show bgp ipv4 unicast neighbors 203.0.113.2 | include Route refresh|Refresh|soft
Route refresh: advertised and received(new)
Sent Rcvd
Route Refresh: 1 0
R1# show bgp ipv4 unicast 192.0.2.0/24 | include localpref
Origin IGP, metric 0, localpref 200, valid, external, best
When to use each
| Situation | Recommended |
|---|---|
| The peer supports route refresh | soft in; no memory overhead |
| You need to see the pre-policy routes regularly | soft-reconfiguration inbound on that peer only |
| The capability is missing on the peer | Soft reconfiguration, or a planned hard reset |
Changing outbound policy towards a peer also needs a soft out for existing routes. Otherwise only new updates follow the new policy.
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → BGP Route Refresh & Soft Policy Change Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc4271.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.
BGP Route Refresh — Fast Check
Policy change without hard reset
1. Capability negotiated.
2. Correct peer/AF.
3. Correct policy direction.
4. Record route before.
5. Apply policy.
6. Soft refresh.
7. Compare route/advertisement.