Neighbor relationship flapping suppression can be configured on an OSPF multi-area adjacency interface to delay OSPF neighbor relationship reestablishment or set the link cost to the maximum value in case of neighbor relationship flapping.
If an interface carrying OSPF services alternates between Up and Down, OSPF neighbor relationship flapping occurs on the interface. During the flapping, OSPF 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, OSPF services, and other OSPF-dependent services, such as LDP and BGP. OSPF neighbor relationship flapping suppression can address this problem by delaying OSPF neighbor relationship reestablishment or preventing service traffic from passing through flapping links.
The following steps are optional, and choose them as required.
To disable the function globally, run the suppress-flapping peer disable command.
The interface view is displayed.
OSPF is enabled on the interface.
OSPF is enabled on the multi-area adjacency interface.
OSPF neighbor relationship flapping suppression on a multi-area adjacency interface is disabled.
To disable OSPF neighbor relationship flapping suppression from one of the interfaces, run this command.
The Hold-down mode is configured on a multi-area adjacency interface, and its duration is set.
Flapping suppression works in either Hold-down or Hold-max-cost mode.
Hold-down mode: In the case of frequent flooding and topology changes during neighbor relationship establishment, interfaces prevent neighbor relationship reestablishment during Hold-down suppression, which minimizes LSDB synchronization attempts and packet exchanges.
Hold-max-cost mode: If the traffic forwarding path changes frequently, interfaces use 65535 (the maximum cost) as the cost of the flapping link during Hold-max-cost suppression, which prevents traffic from passing through the flapping link.
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 ospf suppress-flapping peer hold-max-cost disable multi-area command.
Specifies the interval for exiting from OSPF neighbor relationship flapping suppression.
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.
You can configure detection parameters for OSPF neighbor relationship flapping suppression on specific interfaces according to network conditions. However, using the default values of these parameters is recommended.
The system view is displayed.
The user view is displayed.
The OSPF multi-area adjacency interface is configured to exit OSPF neighbor relationship flapping suppression.
The interface exits flapping suppression in the following scenarios:
The configuration is committed.