OSPFv3 neighbor relationship flapping suppression works by delaying OSPFv3 neighbor relationship reestablishment or setting the link cost to the maximum value.
If an interface carrying OSPFv3 services alternates between up and down, OSPFv3 neighbor relationship flapping occurs on the interface. During the flapping, OSPFv3 frequently sends Hello packets to reestablish the neighbor relationship, synchronizes LSDBs, and recalculates routes. In this process, a large number of packets are exchanged, adversely affecting neighbor relationship stability, OSPFv3 services, and other OSPFv3-dependent services, such as LDP and BGP. OSPFv3 neighbor relationship flapping suppression can address this problem by delaying OSPFv3 neighbor relationship reestablishment or preventing service traffic from passing through flapping links.
The following steps are optional, and choose them as required.
Before configuring OSPFv3 neighbor relationship flapping suppression, complete the following tasks:
Configure an IP address for each interface to ensure that neighboring devices are reachable at the network layer.
The system view is displayed.
To disable OSPFv3 neighbor relationship flapping suppression globally, run the suppress-flapping peer disable command.
The interface view is displayed.
To disable OSPFv3 neighbor relationship flapping suppression from one of the interfaces, run the ospfv3 suppress-flapping peer disable command.
The Hold-down mode is configured, and its duration is set.
Flapping suppression works in either of the following modes:
To change the maximum cost of each OSPFv3 link, run the maximum-link-cost cost command.
Flapping suppression can also work first in Hold-down mode and then in Hold-max-cost mode.
To disable the Hold-max-cost mode, run the ospfv3 suppress-flapping peer hold-max-cost disable [ instance instance-id ] command.
Detection parameters are configured for OSPFv3 neighbor relationship flapping suppression.
Each OSPFv3 interface on which OSPFv3 neighbor relationship flapping suppression is enabled starts a flapping counter. If the interval between two successive neighbor status changes from Full to a non-Full state is shorter than detecting-interval, a valid flapping_event is recorded, and the flapping_count is incremented by 1.
When the flapping_count reaches or exceeds threshold, flapping suppression takes effect.
If the interval between two successive neighbor status changes from Full to a non-Full state is longer than resume-interval, the flapping_count is reset.
The value of resume-interval must be greater than that of detecting-interval.
Using the default detection parameters is recommended.
Return to the system view.
Return to the user view.
Interfaces are forced to exit from OSPFv3 neighbor relationship flapping suppression.
The configuration is committed.
Run the display ospfv3 [ process-id ] interface [ no-peer | area area-id ] [ interface-type interface-number ] command to check the status of OSPFv3 neighbor relationship flapping suppression.