clear ip bgp neighbor dynamic

Clears all dynamic neighbor connections on a device, in a specified VRF, or in a VPNv4 or VPNv5 address family.

Syntax

clear ip bgp neighbor dynamic [ all | vrf vrf-name ]
clear ip bgp vpnv4 neighbor dynamic all
clear ip bgp vpnv6 neighbor dynamic all

Parameters

all | vrf
Specifies whether to clear all dynamic neighbors or only the neighbors in the specified VRF.
vrf-name
Specifies the name of the VRF from which to clear neighbors.

Modes

Privileged EXEC mode

Examples

This example removes all dynamic BGP4 neighbors.

device# configure terminal
device(config)# clear ip bgp neighbor dynamic all

This example removes all dynamic BGP4 neighbors from the VRF named vrf-red.

device# configure terminal
device(config)# clear ip bgp neighbor dynamic vrf vrf-red