Enabling logging for BGP route flapping


[IMPORTANT: ]

IMPORTANT:

This feature is available in Release 1121 and later.


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):

Step

Command

Remarks

1. Enter system view.

system-view

N/A

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

  • Enter BGP IPv4 unicast address family view:

    1. bgp as-number

    2. address-family ipv4 [ unicast ]

  • Enter BGP-VPN IPv4 unicast address family view:

    1. bgp as-number

    2. ip vpn-instance vpn-instance-name

    3. address-family ipv4 [ unicast ]

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):

Step

Command

Remarks

1. Enter system view.

system-view

N/A

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

  • Enter BGP IPv6 unicast address family view:

    1. bgp as-number

    2. address-family ipv6 [ unicast ]

  • Enter BGP-VPN IPv6 unicast address family view:

    1. bgp as-number

    2. ip vpn-instance vpn-instance-name

    3. address-family ipv6 [ unicast ]

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.