The ospf timer ldp-sync hold-max-cost multi-area command sets a value for the hold-max-cost timer on an OSPF multi-area adjacency interface.
The undo ospf timer ldp-sync hold-max-cost multi-area command restores the default configuration.
By default, the value of the hold-max-cost timer on OSPF multi-area adjacency interfaces is infinite.
Parameter | Description | Value |
---|---|---|
infinite |
Enables the OSPF multi-area adjacency interface to keep advertising the maximum cost through local LSAs before an LDP session and an LDP adjacency are reestablished. |
- |
value |
Specifies a value for the hold-max-cost timer on the OSPF multi-area adjacency interface. |
The value is an integer ranging from 0 to 65535, in seconds. |
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. |
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, VE sub-interface view, VLANIF interface view
Usage Scenario
To set a value for the hold-max-cost timer on an OSPF multi-area adjacency interface, run the ospf timer ldp-sync hold-max-cost multi-area command. If the LDP session or LDP adjacency on an active link fails, traffic is switched to the backup link and is not switched back until the hold-max-cost timer expires or an LDP session and an LDP adjacency are reestablished.
Either of the following parameters can be configured in this command:Prerequisites
The ospf enable multi-area command has been run.
Precautions
If the ospf timer ldp-sync hold-max-cost multi-area command is run more than once, only the latest configuration takes effect.
<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 timer ldp-sync hold-max-cost 8 multi-area 1