reset bgp instance vpnv4 flap-info

Function

The reset bgp instance vpnv4 flap-info command clears route flapping statistics.

Format

reset bgp instance instance-name vpnv4 peerIpv4Addr flap-info

reset bgp instance instance-name vpnv4 flap-info

reset bgp instance instance-name vpnv4 flap-info as-path-filter { as-path-filter-number | as-path-filter-name }

reset bgp instance instance-name vpnv4 flap-info regexp as-path-regexp

reset bgp instance instance-name vpnv4 flap-info ipv4-address [ mask | mask-length ]

Parameters

Parameter Description Value
vpnv4

Clears the route flapping statistics for BGP VPNv4 routes.

-

peerIpv4Addr

Specifies the IPv4 address of a peer.

The value is an IPv4 address, in dotted decimal notation.

instance instance-name

Specifies a BGP multi-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.

as-path-filter as-path-filter-number

Clears route flapping statistics based on a specified AS_Path filter.

It is an integer that ranges from 1 to 256.

as-path-filter as-path-filter-name

Clears route flapping statistics based on a specified AS_Path filter.

The value is a string of 1 to 51 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

regexp as-path-regexp

Clears statistics about the flapping routes that match the AS_Path regular expression.

The value is a string of 1 to 80 case-sensitive characters, spaces supported.

ipv4-address

Specifies the network address of an IPv4 peer.

It is in dotted decimal notation.

mask

Specifies the network mask that is used to filter the BGP IPv4 routes. If neither of the mask nor mask length is specified, the address is considered as a classful address.

It is in dotted decimal notation.

mask-length

Specifies the network mask length that is used to filter the BGP IPv4 routes. If neither of the mask nor mask length is specified, the address is considered as a classful address.

The value is an integer that ranges from 0 to 32.

Views

User view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp execute

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 device to re-collect statistics about flapping routes and helps to monitor route changes and locate network problems.

Prerequisites

You can use display bgp routing-table flap-info command to view the information about BGP route flapping.

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.

Configuration Impact

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

Follow-up Procedure

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

Example

# Clear the statistics of route flapping for BGP multi-instance VPNv4 routes.
<HUAWEI> system-view
[~HUAWEI] bgp 100 instance a
[*HUAWEI-bgp-instance-a] ipv4-family vpnv4
[*HUAWEI-bgp-instance-a-af-vpnv4] dampening
[*HUAWEI-bgp-instance-a-af-vpnv4] commit
[~HUAWEI-bgp-instance-a-af-vpnv4] return
<HUAWEI> reset bgp instance a vpnv4 flap-info
# Clear the flapping statistics about the routes that match AS_Path filter 10.
<HUAWEI> system-view
[~HUAWEI] ip as-path-filter 10 permit 1
[*HUAWEI] commit
[~HUAWEI] bgp 100 instance a
[*HUAWEI-bgp-instance-a] ipv4-family vpnv4
[*HUAWEI-bgp-instance-a-af-vpnv4] dampening
[*HUAWEI-bgp-instance-a-af-vpnv4] commit
[~HUAWEI-bgp-instance-a-af-vpnv4] return
<HUAWEI> reset bgp instance a vpnv4 flap-info as-path-filter 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >