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 (IPv4 unicast/IPv4 multicast):

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, or BGP IPv4 multicast address family view.

  • Enter BGP IPv4 unicast address family view:

    1. bgp as-number [ instance instance-name ]

    2. address-family ipv4 [ unicast ]

  • Enter BGP-VPN IPv4 unicast address family view:

    1. bgp as-number [ instance instance-name ]

    2. ip vpn-instance vpn-instance-name

    3. address-family ipv4 [ unicast ]

  • Enter BGP IPv4 multicast address family view:

    1. bgp as-number [ instance instance-name ]

    2. address-family ipv4 multicast

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.

To enable logging for BGP route flapping (IPv6 unicast/IPv6 multicast):

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view, or BGP IPv6 multicast address family view.

  • Enter BGP IPv6 unicast address family view:

    1. bgp as-number [ instance instance-name ]

    2. address-family ipv6 [ unicast ]

  • Enter BGP-VPN IPv6 unicast address family view:

    1. bgp as-number [ instance instance-name ]

    2. ip vpn-instance vpn-instance-name

    3. address-family ipv6 [ unicast ]

  • Enter BGP IPv6 multicast address family view:

    1. bgp as-number [ instance instance-name ]

    2. address-family ipv6 multicast

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.