clear ip bgp


clear ip bgp {* | <NEIGHBOR-IP-ADDRESS>} [soft in] [vrf <VRF-NAME>]


Resets BGP peering sessions. Sends a route refresh request when you have specified soft in. Optionally, you can specify reset for a specific VRF.

Command context

Operator (>) or Manager (#)



Specifies a neighbor IP address for which peering sessions are to be reset. Or enter * to clear all peering sessions.

soft in

Specifies send route refresh request.

vrf <VRF-NAME>

Optional. Specifies reset for a VRF (if no <VRF-NAME> is specified, the default VRF is implied).


Operators or Administrators. Users without administrator authority can execute this command from the operator context (>) only.


switch# clear ip bgp *
switch# clear ip bgp soft in