This command resets BGP peering sessions and optionally sends route refresh requests.
peer-address | Specifies the IP address of a single BGP peer to clear. |
* | Clears all sessions and peers for the router. |
soft | (Optional) Specifies that BGP send a Route Refresh message (if supported by the peer). |
If the soft option is not specified, the connection is torn down and restarted with no Route Refresh message sent to the peer.
All command modes.
The clear ip bgp command resets BGP peering sessions or sends a Route Refresh request.
When the soft option is specified, a route refresh message is triggered and the peering session is not reset.
The following example specifies to clear the BGP peer 1.2.3.4:
System(rw)->clear ip bgp 1.2.3.4
The following example clears all BGP peers and send a Route Refresh message.
System(rw)->clear ip bgp * soft