BGP Soft Reset vs Hard Reset - Commands, Differences, and Best Practices
Border Gateway Protocol (BGP) allows network administrators to modify routing policies without always rebuilding the entire BGP neighbor relationship. Understanding the difference between a BGP soft reset and a BGP hard reset is therefore essential for safe BGP operations and troubleshooting.
A hard reset completely tears down the BGP session and rebuilds it, while a soft reset allows routing information or policy to be reprocessed without dropping the established neighbor session.
In production networks, a soft reset or route refresh is generally preferred for routing-policy changes because it avoids unnecessary disruption.
What Is a BGP Reset?
A BGP reset forces a router to refresh either:
The complete BGP neighbor session, or
The routing information associated with that neighbor.
There are two primary reset methods:
The method selected depends on what needs to be corrected.
BGP Hard Reset
A BGP hard reset completely terminates the BGP neighbor relationship.
Cisco IOS command:
clear ip bgp <neighbor-ip>Example:
clear ip bgp 10.12.12.2When this command is executed, the existing BGP and TCP sessions are terminated.
The session must then proceed through the BGP establishment process again.
Impact of a Hard Reset
A hard reset can temporarily disrupt network connectivity.
When the BGP session goes down, routes learned through that neighbor may be removed.
If there is no alternative route, traffic may experience:
Packet loss
Routing convergence
Temporary destination unreachability
Application interruption
For an Internet edge router carrying a large number of prefixes, rebuilding the BGP session can also require significant control-plane processing.
For this reason, a hard reset should not normally be the first choice after a simple routing-policy change.
When Is a BGP Hard Reset Required?
A hard reset may be appropriate when the BGP session itself must be rebuilt.
Common situations include:
Neighbor session stuck or unstable
Major neighbor configuration changes
BGP authentication changes
Incorrect session parameters requiring restart
Troubleshooting that requires full session renegotiation
Administrative requirement to completely restart the adjacency
BGP Soft Reset
A BGP soft reset allows the router to reprocess BGP routing information without terminating the BGP session.
The neighbor normally remains:
ESTABLISHEDTCP port 179 remains operational and the adjacency does not need to go through the complete BGP finite-state machine again.
A soft reset is especially useful after changing:
Prefix lists
Route maps
AS-path filters
Communities
Local Preference
MED
Weight policies
AS_PATH prepending
Other import/export routing policies
BGP Soft Reset Inbound
A soft inbound reset is used when a policy affecting routes received from a neighbor has changed.
Command:
clear ip bgp <neighbor-ip> soft inExample:
clear ip bgp 10.12.12.2 soft inThe BGP neighbor session remains up.
Soft Inbound Reset Example
Assume R1 receives routes from ISP-A.
You change an inbound route map so routes received from ISP-A receive a higher Local Preference.
route-map ISP-A-IN permit 10
set local-preference 200After applying the policy:
clear ip bgp 10.12.12.2 soft inThe received routes are reprocessed using the updated policy without intentionally tearing down the BGP adjacency.
How to Verify Route Refresh Support
Use:
show ip bgp neighbors <neighbor-ip>Example:
show ip bgp neighbors 10.12.12.2Also verify the current session:
show ip bgp summarySoft Reconfiguration Inbound
Older BGP configurations may use:
neighbor <neighbor-ip> soft-reconfiguration inboundExample:
router bgp 65001
neighbor 10.12.12.2 soft-reconfiguration inboundThis retains an unmodified copy of received routes so they can be reprocessed after an inbound policy change.
The disadvantage is additional memory consumption.
Where Route Refresh is supported, it is generally preferable to retaining an additional copy of every received route solely for soft reconfiguration.
BGP Soft Reset Outbound
A soft outbound reset is used when you modify a policy controlling routes advertised to a neighbor.
Command:
clear ip bgp <neighbor-ip> soft outExample:
clear ip bgp 10.12.12.2 soft outThe process is:
Outbound Policy Changed
|
v
Soft Outbound Reset
|
v
Routes Re-evaluated
|
v
Updated BGP Advertisements
|
v
Neighbor Receives ChangesThe BGP session remains established.
Typical outbound policy changes include:
Prefix-list filtering
Route-map changes
AS_PATH prepending
MED modification
Community tagging
Selective route advertisement
Hard Reset vs Soft Reset
| Feature | Hard Reset | Soft Reset |
|---|---|---|
| BGP session goes down | Yes | No |
| TCP session resets | Yes | No |
| BGP FSM restarts | Yes | No |
| Routes may be temporarily withdrawn | Yes | Normally no |
| Routes are reprocessed | Yes | Yes |
| Appropriate for policy changes | Usually no | Yes |
| Operational disruption | Higher | Lower |
| Neighbor must re-establish | Yes | No |
The basic difference is:
Hard Reset = Restart the BGP session
Soft Reset = Reprocess BGP routing information without restarting the sessionVerify Before Performing a Reset
Before clearing a production BGP session, collect current state information.
Recommended commands:
show ip bgp summary
show ip bgp
show ip bgp neighbors
show ip bgp neighbors <neighbor-ip>
show ip route bgpFor a specific prefix:
show ip bgp <prefix>Example:
show ip bgp 203.0.113.0/24This helps determine whether the problem is actually related to routing policy before resetting the session.
Verify After a Soft Reset
After performing:
clear ip bgp 10.12.12.2 soft inverify:
show ip bgp summaryThe neighbor should remain established.
Then inspect the affected prefix:
show ip bgp <prefix>Check attributes such as:
Local Preference
AS_PATH
MED
Community
WeightWhy You Should Avoid Unnecessary Hard Resets
Consider a BGP router carrying a large number of routes.
A hard reset can trigger:
Neighbor Down
Routes Withdrawn
Traffic Reconvergence
BGP Session Re-established
Route Exchange
Best-Path RecalculationThis creates significantly more operational impact than a soft policy refresh.
Therefore:
Routing Policy Change, Prefer Soft Reset or Route Refreshinstead of immediately performing a hard reset.
Common Mistake
A common mistake is changing a route map and immediately running:
clear ip bgp *This can reset multiple BGP sessions and create unnecessary impact.
Instead, first identify:
Which neighbor?
Which direction?
Which policy?Then use the least disruptive reset.
For example:
clear ip bgp 10.12.12.2 soft inis much more targeted.
BGP Reset Command Summary
Hard Reset
clear ip bgp 10.12.12.2Soft Inbound
clear ip bgp 10.12.12.2 soft inSoft Outbound
clear ip bgp 10.12.12.2 soft outVerify Session
show ip bgp summaryVerify Neighbor
show ip bgp neighbors 10.12.12.2Verify Advertised Routes
show ip bgp neighbors 10.12.12.2 advertised-routesLearn More at Network Guide Academy
Want to go beyond individual BGP commands and understand how enterprise routing actually works?
Visit Network Guide Academy:
https://networkguideacademy.com
Network Guide Academy provides structured networking tutorials, labs, configuration examples, verification commands, troubleshooting workflows, and automation resources for learners and working network engineers.
Suggested Call to Action
Learn BGP, OSPF, CCNA, CCNP, network automation, and advanced troubleshooting with practical labs at Network Guide Academy — https://networkguideacademy.com
