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:

Pasted content image

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.2

When this command is executed, the existing BGP and TCP sessions are terminated.

The session must then proceed through the BGP establishment process again.

Pasted content image

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:

ESTABLISHED

TCP 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 in

Example:

clear ip bgp 10.12.12.2 soft in

The 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 200

After applying the policy:

clear ip bgp 10.12.12.2 soft in

The 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.2

Also verify the current session:

show ip bgp summary

Soft Reconfiguration Inbound

Older BGP configurations may use:

neighbor <neighbor-ip> soft-reconfiguration inbound

Example:

router bgp 65001
 neighbor 10.12.12.2 soft-reconfiguration inbound

This retains an unmodified copy of received routes so they can be reprocessed after an inbound policy change.

The disadvantage is additional memory consumption.

Pasted content image

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 out

Example:

clear ip bgp 10.12.12.2 soft out

The process is:

Outbound Policy Changed
        |
        v
Soft Outbound Reset
        |
        v
Routes Re-evaluated
        |
        v
Updated BGP Advertisements
        |
        v
Neighbor Receives Changes

The 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

FeatureHard ResetSoft Reset
BGP session goes downYesNo
TCP session resetsYesNo
BGP FSM restartsYesNo
Routes may be temporarily withdrawnYesNormally no
Routes are reprocessedYesYes
Appropriate for policy changesUsually noYes
Operational disruptionHigherLower
Neighbor must re-establishYesNo

The basic difference is:

Hard Reset = Restart the BGP session

Soft Reset = Reprocess BGP routing information without restarting the session

Verify 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 bgp

For a specific prefix:

show ip bgp <prefix>

Example:

show ip bgp 203.0.113.0/24

This 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 in

verify:

show ip bgp summary

The neighbor should remain established.

Then inspect the affected prefix:

show ip bgp <prefix>

Check attributes such as:

Local Preference
AS_PATH
MED
Community
Weight

Why 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 Recalculation

This creates significantly more operational impact than a soft policy refresh.

Therefore:

Routing Policy Change, Prefer Soft Reset or Route Refresh

instead 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 in

is much more targeted.


BGP Reset Command Summary

Hard Reset

clear ip bgp 10.12.12.2

Soft Inbound

clear ip bgp 10.12.12.2 soft in

Soft Outbound

clear ip bgp 10.12.12.2 soft out

Verify Session

show ip bgp summary

Verify Neighbor

show ip bgp neighbors 10.12.12.2

Verify Advertised Routes

show ip bgp neighbors 10.12.12.2 advertised-routes

Learn 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