< Home

reset bgp flap-info

Function

The reset bgp flap-info command clears the statistics of route flapping.

Format

reset bgp [ vpnv4 | vpn-instance vpn-instance-name ipv4-family ] flap-info [ regexp as-path-regexp | as-path-filter { as-path-filter-number | as-path-filter-name } | ipv4-address [ mask | mask-length ] ]

reset bgp [ vpnv4 | vpn-instance vpn-instance-name ipv4-family ] ipv4-address flap-info

reset bgp { ipv6 | vpn-instance vpn-instance-name ipv6-family } ipv6-address flap-info

reset bgp { ipv6 | vpn-instance vpn-instance-name ipv6-family } flap-info [ ipv6-address prefix-length | as-path-filter { as-path-filter-number | as-path-filter-name } | regexp as-path-regexp ]

reset bgp multicast flap-info [ { ipv4-address [ mask-length | mask ] | as-path-filter { as-path-filter-number | as-path-filter-name } | regexp as-path-regexp } ]

reset bgp multicast ipv4-address flap-info

Parameters

Parameter Description Value
vpnv4 Clears BGP routes of Virtual Private Network version 4 (VPNv4). -
vpn-instance vpn-instance-name Clears the statistics of the route flapping for the specified VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
ipv4-family Indicates an IPv4 unicast address family. -
regexp as-path-regexp Resets route flapping statistics that match the AS_Path regular expression. -
as-path-filter Resets the statistics of the route flapping based on the specified AS_Path filter. -
as-path-filter-number Specifies the number of the matching AS_Path filter. It is an integer that ranges from 1 to 256.
as-path-filter-name Specifies the name of the matching AS_Path filter. The name is a string of 1 to 51 characters without any space. It is case-sensitive.
NOTE:
When double quotation marks are used around the string, spaces are allowed in the string.
ipv4-address Specifies the address of an IPv4 BGP peer. It is in dotted decimal notation.
mask | mask-length Specifies the network mask or the length of the mask. If the mask is not specified, the IPv4 address is processed as a classful address. The mask is in dotted decimal notation. The value is an integer that ranges from 0 to 32.
ipv6 Resets route flapping statistics of all IPv6 peers. -
ipv6-family Indicates an IPv6 unicast address family. -
ipv6-address Specifies the network address of the BGP IPv6 peer. The address is a 32-digit hexadecimal number in the X:X:X:X:X:X:X:X format.
prefix-length Specifies the mask length of the IPv6 address. The value is an integer that ranges from 0 to 128.
multicast

Resets route flapping statistics of MBGP routes.

-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The process of adding a route to and then deleting the route from a routing table is called route flapping.

When route flapping occurs, the routing protocol sends Update packets to neighbors. The neighbors that receive the Update packets need to recalculate routes and modify its routing table. Therefore, frequent route flapping consumes great bandwidth and CPU resources and even seriously affects network operations.

The reset bgp flap-info command is used to clear the flapping information about routes. This allows the router to re-collect statistics about flapping routes and helps to monitor route changes and locate network problems.

Prerequisites

The display bgp routing-table flap-info command is used to display information about BGP route flapping. To clear the flapping information about specified routes, specify ipv4-address or ipv6-address in the reset bgp flap-info command.

If there are a large number of flapping routes, define an AS_Path filter or an AS_Path regular expression to be referenced in the reset bgp flap-info command. The flapping statistics of the routes matching the AS_Path filter or the AS_Path regular expression are then cleared.

Follow-up Procedure

After the flapping statistics of routes are cleared, run the display bgp routing-table flap-info command to display the flapping statistics about BGP routes in order to locate problems.

Configuration Impact

After the reset bgp flap-info command is run, the flapping statistics of routes are reset and cannot be displayed.

Example

# Clear the statistics of route flapping for the routes that match the AS_Path filter 10.

<sysname> reset bgp flap-info as-path-filter 10
# Clear all BGP4+ route flapping statistics of the VPN instance named vpn1.
<sysname> reset bgp vpn-instance vpn1 ipv6-family flap-info
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >