< Home

reset bgp flap-info

Function

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

Format

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

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

reset bgp [ 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 vpnv4 flap-info [ regexp as-path-regexp | as-path-filter { as-path-filter-number | as-path-filter-name } | ipv4-address [ mask | mask-length ] ] (supported only by the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H)

reset bgp vpnv4 ipv4-address flap-info (supported only by the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H)

The vpn-instance vpn-instance-name ipv6-family is only supported on S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S.

Parameters

Parameter Description Value

vpn-instance vpn-instance-name ipv4-family

Clears the route flapping information of a specified VPN instance enabled with an IPv4 address family.

The value must be an existing VPN instance name.

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

Clears route flapping statistics based on the number of 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 the name of a specified AS_Path filter.

The value of as-path-filter-name is a string of 1 to 51 case-sensitive characters.

NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

network-address

Specifies the IPv4 prefix address that is used to filter the BGP IPv4 routes.

It is in dotted decimal notation.

mask

Specifies the network mask that is used to filter the BGP IPv4 routes. If neither the mask nor the mask length is specified, the address is processed 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 the mask nor the mask length is specified, the address is processed as a classful address.

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

regexp as-path-regexp

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

-

ipv6

Clears the route flapping statistics on all IPv6 peers.

-

vpn-instance vpn-instance-name ipv6-family

Clears the route flapping information of a specified VPN instance enabled with an IPv6 address family.

The value must be an existing VPN instance name.

network-ipv6-address

Specifies the IPv6 prefix address that is used to filter the BGP IPv6 routes.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

prefix-length

Specifies the network mask length that is used to filter the BGP IPv6 routes.

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

ipv4-address

Specifies the network address of an IPv4 peer.

It is in dotted decimal notation.

ipv6-address

Specifies the network address of an IPv6 peer.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

vpnv4

Resets route flapping statistics of BGP VPNv4 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 the 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 switch 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.

Precautions

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 flapping statistics about the routes that match AS_Path filter 10.

<HUAWEI> reset bgp flap-info as-path-filter 10

# Clear the flapping statistics about the BGP4+ routes of the VPN instance named vpn1.

<HUAWEI> reset bgp vpn-instance vpn1 ipv6-family flap-info
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >