clear bgp flap-statistics

clear bgp {neighbor} remoteaddr {address-family [ipv4-unicast | ipv4‑multicast |ipv6-unicast | ipv6-multicast |vpnv4]} flap-statistics [all | rd rd_value |as-path path expression | community [no-advertise | no‑export | no-export-subconfed | number community_num | AS_Num:Num] | network [any / netMaskLen | networkPrefixFilter] {exact}]


Clears flap statistics for routes to specified neighbors.

Syntax Description

all Specifies flap statistics for all routes.
remoteaddr Specifies the IPv4 or IPv6 address of a BGP (Border Gateway Protocol) neighbor.
ipv4-unicast Specifies the IPv4 unicast address family.
ipv4-multicast Specifies an IPv4 multicast address family.
ipv6-unicast Specifies the IPv6 unicast address family.
ipv6-multicast Specifies an IPv6 multicast address family.
vpnv4 Specifies the VPNv4 address family for Layer 3 VPN support.
rd_value Specifies the Route Distinquisher (RD) value for the Layer 3 VPN routes for which you want to clear flap statistics.
no-advertise Specifies the no-advertise community attribute.
no-export Specifies the no-export community attribute.
no-export-subconfed Specifies the no-export-subconfed community attribute.
community_num Specifies a community number.
AS_Num Specifies an autonomous system ID (0-65535).
Num Specifies a community number.
any Specifies all routes with a given or larger mask length.
netMaskLen Specifies a subnet mask length (number of bits).
networkPrefixFilter Specifies an IP address and netmask.
exact Specifies an exact match with the IP address and subnet mask.


If no address family is specified, IPv4 unicast is the default.



You must specify an IPv6 address family for an IPv6 peer, because an IPv6 peer does not support the default IPv4 unicast address family. Similarly, if you specify an IPv4 peer and an address family in the command, an IPv4 address family must be specified.

Usage Guidelines

Use this command to clear flap statistics for a specified BGP neighbor.

The option network any / netMaskLen clears the statistics for all BGP routes whose mask length is equal to or greater than maskLength, irrespective of their network address.

The option network any / netMaskLen exact clears the statistics for all BGP routes whose mask length is exactly equal to maskLength, irrespective of their network address.

To clear flap statistics on Layer 3 VPNs, you must configure this feature in the context of the MPLS (Multiprotocol Label Switching)-enabled VR; this feature is not supported for BGP routes on the CE (VRF) side of the PE router.

This command applies to the current VR or VRF context.


The following command clears the flap statistics for a specified neighbor:

clear bgp neighbor flap-statistics all


This command was first available in ExtremeXOS 10.1.

The netMaskLen options were added in ExtremeXOS 11.0.

This command required a specific license in ExtremeXOS 11.1.

Support for IPv6 in BGP was added in ExtremeXOS 12.6 BGP.

Support for Layer 3 VPNs was added in ExtremeXOS 15.3.

Platform Availability

This command is available on platforms that support the appropriate license. For complete information about software licensing, including how to obtain and upgrade your license and which licenses support the BGP feature, see the ExtremeXOS 22.2 Feature License Requirements document.