The ospf suppress-flapping peer disable multi-area command disables OSPF neighbor relationship flapping suppression on a multi-area adjacency interface.
The undo ospf suppress-flapping peer disable multi-area command enables OSPF neighbor relationship flapping suppression on a multi-area adjacency interface.
The ospf suppress-flapping peer hold-max-cost disable multi-area command disables the Hold-max-cost mode on a multi-area adjacency interface.
The undo ospf suppress-flapping peer hold-max-cost disable multi-area command enables the Hold-max-cost mode on a multi-area adjacency interface.
The ospf suppress-flapping peer multi-area command configures detection parameters for OSPF neighbor relationship flapping suppression on a multi-area adjacency interface.
The undo ospf suppress-flapping peer multi-area command restores the default detection parameters.
The ospf suppress-flapping peer hold-down multi-area command configures the Hold-down mode and sets duration for this mode on a multi-area adjacency interface.
The undo ospf suppress-flapping peer hold-down multi-area command cancels the Hold-down mode on a multi-area adjacency interface.
By default, OSPF neighbor relationship flapping suppression is enabled on all multi-area adjacency interfaces.
By default, the Hold-max-cost mode is enabled on a multi-area adjacency interface.
By default, the detection interval of OSPF neighbor relationship flapping suppression on multi-area adjacency interfaces is 60s, the suppression threshold is 10, and the interval for exiting from suppression is 120s.
By default, the Hold-down mode is disabled on a multi-area adjacency interface.
ospf suppress-flapping peer { detecting-interval detecting-interval | threshold threshold | resume-interval resume-interval } * multi-area { area-id | area-id }
ospf suppress-flapping peer disable multi-area { area-id | area-id }
ospf suppress-flapping peer hold-down interval multi-area { area-id | area-id }
ospf suppress-flapping peer hold-max-cost disable multi-area { area-id | area-id }
undo ospf suppress-flapping peer { detecting-interval detecting-interval | threshold threshold | resume-interval resume-interval } * multi-area { area-id | area-id }
undo ospf suppress-flapping peer disable multi-area { area-id | area-id }
undo ospf suppress-flapping peer hold-down [ interval ] multi-area { area-id | area-id }
undo ospf suppress-flapping peer hold-max-cost disable multi-area { area-id | area-id }
Parameter | Description | Value |
---|---|---|
detecting-interval detecting-interval |
Specifies the detection interval of OSPF neighbor relationship flapping suppression. Each OSPF interface on which OSPF 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 increases by 1. |
The value is an integer ranging from 1 to 300, in seconds. The default value is 60. |
threshold threshold |
Specifies the threshold of OSPF neighbor relationship flapping suppression. When the flapping_count reaches or exceeds threshold, flapping suppression takes effect. |
The value is an integer ranging from 1 to 1000. The default value is 10. |
resume-interval resume-interval |
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 is an integer ranging from 2 to 1000, in seconds. The default value is 120. |
area-id |
Specifies the ID of an OSPF area. |
The value can be a decimal integer ranging from 0 to 4294967295 or in the format of an IP address. |
hold-down interval |
Specifies the duration of the Hold-down mode. |
The value is an integer ranging from 1 to 86400, in seconds. |
100GE interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, GMPLS-UNI interface view, Global VE sub-interface view, Tunnel interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view
Usage Scenario
By default, OSPF neighbor relationship flapping suppression is enabled on all multi-area adjacency interfaces in the same OSPF process. To disable the function from one of the interfaces, run the ospf suppress-flapping peer disable multi-area area-id command.
When a multi-area adjacency interface enters the flapping suppression state, all neighbor relationships on the interface enter the state accordingly.Prerequisites
The ospf enable multi-area command has been run.
OSPF neighbor relationship flapping suppression must have been enabled globally before you enable the function on a multi-area adjacency interface using the undo ospf suppress-flapping peer disable multi-area command. By default, the function is enabled globally. If it is disabled, run the undo suppress-flapping peer disable command to enable it first.Precautions
The Hold-max-cost mode takes effect only unidirectionally. If a remote device does not support OSPF neighbor relationship flapping suppression, bidirectional traffic between the local and remote devices may travel along different paths.
<HUAWEI> system-view [~HUAWEI] ospf 1 [*HUAWEI-ospf-1] area 0 [*HUAWEI-ospf-1-area-0.0.0.0] quit [*HUAWEI-ospf-1] area 1 [*HUAWEI-ospf-1-area-0.0.0.1] quit [*HUAWEI-ospf-1] quit [*HUAWEI] interface GigabitEthernet0/1/0 [*HUAWEI-GigabitEthernet0/1/0] ospf enable 1 area 0 [*HUAWEI-GigabitEthernet0/1/0] ospf enable multi-area 1 [*HUAWEI-GigabitEthernet0/1/0] ospf suppress-flapping peer hold-max-cost disable multi-area 1
<HUAWEI> system-view [~HUAWEI] ospf 1 [*HUAWEI-ospf-1] area 0 [*HUAWEI-ospf-1-area-0.0.0.0] quit [*HUAWEI-ospf-1] area 1 [*HUAWEI-ospf-1-area-0.0.0.1] quit [*HUAWEI-ospf-1] quit [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] ospf enable 1 area 0 [*HUAWEI-GigabitEthernet0/1/0] ospf enable multi-area 1 [*HUAWEI-GigabitEthernet0/1/0] ospf suppress-flapping peer detecting-interval 5 threshold 40 resume-interval 20 multi-area 1
<HUAWEI> system-view [~HUAWEI] ospf 1 [*HUAWEI-ospf-1] area 0 [*HUAWEI-ospf-1-area-0.0.0.0] quit [*HUAWEI-ospf-1] area 1 [*HUAWEI-ospf-1-area-0.0.0.1] quit [*HUAWEI-ospf-1] quit [*HUAWEI] interface GigabitEthernet0/1/0 [*HUAWEI-GigabitEthernet0/1/0] ospf enable 1 area 0 [*HUAWEI-GigabitEthernet0/1/0] ospf enable multi-area 1 [*HUAWEI-GigabitEthernet0/1/0] ospf suppress-flapping peer hold-down 200 multi-area 1
<HUAWEI> system-view [~HUAWEI] ospf 1 [*HUAWEI-ospf-1] area 0 [*HUAWEI-ospf-1-area-0.0.0.0] quit [*HUAWEI-ospf-1] area 1 [*HUAWEI-ospf-1-area-0.0.0.1] quit [*HUAWEI-ospf-1] quit [*HUAWEI] interface GigabitEthernet0/1/0 [*HUAWEI-GigabitEthernet0/1/0] ospf enable 1 area 0 [*HUAWEI-GigabitEthernet0/1/0] ospf enable multi-area 1 [*HUAWEI-GigabitEthernet0/1/0] ospf suppress-flapping peer disable multi-area 1