clear bgp


clear bgp [vrf <VRF-NAME>][ipv4 unicast | ipv6 unicast | l2vpn evpn | all] 
     {* | <NEIGHBOR-IP-ADDR>} [soft in]


Resets BGP peer 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 (#)


ipv4 unicast

Specifies the IPv4 address family.

ipv6 unicast

Specifies the IPv6 address family.

l2vpn evpn

Selects the L2VPN EVPN address family

vrf <VRF-NAME>

Specifies a VRF name.


Specifies all VRFs and address families.


Specifies a neighbor IP address for which peer sessions are to be reset, or * to reset all sessions.

soft in

Send a route refresh request.


Operators or Administrators or local user group members with execution rights for this command. Operators can execute this command from the operator context (>) only.


switch# clear bgp all *
switch# clear bgp ipv4 unicast soft in
switch# clear bgp l2vpn evpn * soft in
switch# clear bgp l2vpn evpn soft in