clear bgp

Syntax

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

Description

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 (#)

Parameters

ipv4 unicast

Specifies the IPv4 address family.

ipv6 unicast

Specifies the IPv6 address family.

vrf <VRF-NAME>

Specifies a VRF name.

all

Specifies all VRFs and address families.

* | <NEIGHBOR-IP-ADDRESS>

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.

Authority

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

Examples

switch# clear bgp all *
switch# clear bgp ipv4 unicast 192.168.12.1 soft in