ospf timer ldp-sync hold-max-cost multi-area

Function

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.

Format

ospf timer ldp-sync hold-max-cost { infinite | value } multi-area { area-id | area-id }

undo ospf timer ldp-sync hold-max-cost multi-area { area-id | area-id }

Parameters

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.

Views

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

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

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:

  • infinite: indicates that the interface keeps advertising the maximum cost through local LSAs before an LDP session is reestablished. This parameter ensures that the OSPF route selects the same path over which the LDP LSP is established when an OSPF network carries only LDP services.
  • : indicates the period during which the interface keeps advertising the maximum cost through local LSAs. This parameter helps prevent an LDP session or an LDP adjacency disconnection from affecting OSPF routing or non-LDP services when an OSPF network carries multiple types of services, including LDP services.

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.

Example

# Set the value to 8s for the hold-max-cost timer on an OSPF multi-area adjacency interface.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >