display bgp routing-table flap-info
Use display bgp routing-table flap-info to display BGP route flap statistics.
Syntax
display bgp [ instance instance-name ] routing-table flap-info ipv4 { multicast | [ unicast ] [ vpn-instance vpn-instance-name ] } [ ipv4-address [ { mask-length | mask } [ longest-match ] ] | as-path-acl as-path-acl-number ]
display bgp [ instance instance-name ] routing-table flap-info ipv6 { multicast | [ unicast ] [ vpn-instance vpn-instance-name ] } [ ipv6-address prefix-length | as-path-acl as-path-acl-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
instance instance-name: Specifies a BGP instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays BGP route flap statistics for the default BGP instance.
ipv4: Displays BGP IPv4 route flap statistics.
ipv6: Displays BGP IPv6 route flap statistics.
multicast: Displays BGP multicast route flap statistics.
unicast: Displays BGP unicast route flap statistics.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, this command displays BGP route flap statistics for the public network.
ipv4-address: Specifies a destination network address.
mask-length: Specifies a mask length in the range of 0 to 32.
mask: Specifies a network mask in dotted decimal notation.
longest-match: Specifies longest match mode, which selects the longest matching route through the following steps:
ANDs the specified network address with the mask of each route.
Matches a route if the AND result is the same as the network address of the route and the mask of the route is shorter than or equal to the specified mask.
Selects the route with the longest mask among the matching routes.
ipv6-address prefix-length: Displays route flap statistics for BGP IPv6 routes that match the specified network address, and match the prefix length in the range of 0 to 128.
as-path-acl as-path-acl-number: Displays route flap statistics for BGP routes that match the AS path list specified by its number in the range of 1 to 256.
Usage guidelines
If you specify only the ipv4-address argument, the system ANDs the network address with the mask of a route. If the result matches the network address of the route, the command displays flap statistics of the route.
If you specify the ipv4-address mask or ipv4-address mask-length argument, and do not specify the longest-match keyword, the command displays flap statistics of the BGP IPv4 unicast or multicast route that matches both the specified destination network address and the mask (or mask length).
By default, the unicast keyword is used if neither the multicast keyword nor the unicast keyword is specified.
Examples
# Display BGP IPv4 unicast route flap statistics.
<Sysname> display bgp routing-table flap-info ipv4 Total number of routes: 1 BGP local router ID is 192.168.1.135 Status codes: * - valid, > - best, d - dampened, h - history, s - suppressed, S - stale, i - internal, e - external a – additional-path Origin: i - IGP, e - EGP, ? - incomplete Network From Flaps Duration Reuse Path/Ogn de 20.1.1.0/24 10.1.1.2 1 00:02:36 00:53:58 100i
# Display BGP IPv6 unicast route flap statistics.
<Sysname> display bgp routing-table flap-info ipv6 Total number of routes: 2 BGP local router ID is 192.168.1.135 Status codes: * - valid, > - best, d - dampened, h - history, s - suppressed, S - stale, i - internal, e - external a – additional-path Origin: i - IGP, e - EGP, ? - incomplete de Network : 2:: PrefixLen : 64 From : 10.1.1.1 Flaps : 5 Duration: 00:03:25 Reuse : 00:39:28 Path/Ogn: 100i de Network : 2:: PrefixLen : 64 From : 1::1 Flaps : 5 Duration: 00:03:25 Reuse : 00:39:28 Path/Ogn: 100i
Table 97: Command output
Field | Description |
---|---|
Status codes | Status codes:
|
Origin | Origin of the route:
|
Network | Destination network address. |
From | Source IP address of the route. |
Flaps | Number of routing flaps. |
Duration | Duration time of the flap route. |
Reuse | Reuse time of the route. |
Path/Ogn | AS_PATH and ORIGIN attributes of the route:
|
Related commands
dampening
reset bgp flap-info