clear bgp

Syntax

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

Description

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

Parameters

ipv4

IPv4 address family.

ipv6

IPv6 address family.

unicast

The subaddress family identifier.

vrf <VRF-NAME>

Optional. Select to display information by VRFs by specifying the VRF name.

all

Optional. Select to display the BGP summary information for all VRFs and address-families.

* | <NEIGHBOR-IP-ADDRESS>

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.

Authority

Operators or Administrators. Users without administrator authority 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