Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

BGP Route Refresh & Soft Policy Change Reference

Direct answer

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.

When to use this

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.

First 30 seconds

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.

Operational verification

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
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS XE
Key commandclear bgp ipv4 unicast <peer> soft in
Scope / prerequisiteUse it after every change to a route map, prefix list or filter on a BGP neighbour — and to avoid the outage a hard res…
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 out was used for an inbound change, or the reverse. Each direction has its own command.
  • soft in does nothing. The neighbour did not advertise route refresh; configure inbound soft reconfiguration, or reset the session.
  • Memory use rose sharply. soft-reconfiguration inbound keeps 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 bgp was used where a soft one would have done.
Command lookup Jump straight to Cisco syntax
Key points

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.

Key checks
  • 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.

CommandWhat happensImpact
clear ip bgp <ip> soft inSends a ROUTE-REFRESH message; the neighbour resends all its routes, and they pass through the new inbound policyNone on forwarding
clear ip bgp <ip> soft outThis router sends its routes again through the new outbound policyNone on forwarding
clear ip bgp <ip>Hard reset: the session is closed and re-establishedAll 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

MethodEffect on the sessionCost
clear bgp ... <peer> (hard reset)Session drops; all routes are withdrawn and relearnedTraffic disruption
clear bgp ... <peer> soft in with route refreshSession stays up; the peer resends its routesOne full table transfer
soft-reconfiguration inboundSession stays up; the stored copy is re-evaluatedMemory for the full unfiltered table
clear bgp ... <peer> soft outSession stays up; we resend our routesOne 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

SituationRecommended
The peer supports route refreshsoft in; no memory overhead
You need to see the pre-policy routes regularlysoft-reconfiguration inbound on that peer only
The capability is missing on the peerSoft 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 4271

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%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
bgp route refreshsoft clear bgpsoft reconfiguration inbound
Embedded quick reference

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.

Confirmation

Confirm action

Continue?