Pcornel
Networking · Network & Protocols › BGP Protocol Reference

BGP Route Refresh & Soft Policy Change Reference

Cheat sheet · https://pcornel.dk/topic.php?topic=249

Back to the Topic

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.

Remember

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.

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

Commands

clear bgp ipv4 unicast <peer> soft in
Request/reprocess inbound BGP routes without a hard session reset when supported.
clear bgp ... <peer>
clear bgp ... <peer> soft in
clear bgp ... <peer> soft out
show route-map
clear ip bgp <ip> soft in
clear ip bgp <ip> soft out
clear ip bgp <ip>
clear ip bgp <ip> soft
show ip bgp neighbors
show ip bgp neighbors <ip> received-routes
clear bgp ipv6 unicast <neighbor> soft in
clear ip bgp

Verify in this order

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

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=249

Confirmation

Confirm action

Continue?