Enabling logging for BGP route flapping

This feature enables BGP to generate logs for BGP route flappings that trigger log generation. The generated logs are sent to the information center. For the logs to be output correctly, you must also configure information center on the device. For more information about the information center, see Network Management and Monitoring Configuration Guide.

To enable logging for BGP route flapping:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter BGP VPNv4 address family view or BGP-VPN VPNv4 address family view.

  • Enter BGP VPNv4 address family view:

    1. bgp as-number [ instance instance-name ] [ multi-session-thread ]

    2. address-family vpnv4

  • Enter BGP-VPN VPNv4 address family view:

    1. bgp as-number [ instance instance-name ] [ multi-session-thread ]

    2. ip vpn-instance vpn-instance-name

    3. address-family vpnv4

N/A

3. Enable logging for BGP route flapping.

log-route-flap monitor-time monitor-count [ log-count-limit | route-policy route-policy-name ] *

By default, logging for BGP route flapping is disabled.