ospf enable multi-area

Function

The ospf enable multi-area command enables OSPF on a multi-area adjacency interface.

The undo ospf enable multi-area command disables OSPF on a multi-area adjacency interface.

By default, OSPF is disabled on a multi-area adjacency interface.

Format

ospf enable multi-area { area-id | area-id }

undo ospf enable multi-area { area-id | area-id }

Parameters

Parameter Description Value
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, VBDIF 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

In OSPF, intra-area links take precedence over inter-area links. Therefore, even if a high-speed link exists between two areas, a low-speed intra-network link rather than the high-speed link is used to transmit inter-area traffic. To address this problem, run the ospf enable multi-area command to enable OSPF on a multi-area adjacency interface so that a link can be shared by multiple areas.

Prerequisites

OSPF has been enabled on the interface using the ospf enable [ process-id ] area area-id command.

Precautions

If the ospf enable multi-area and ospf enable commands are run on the same interface, the areas specified in the commands must be different.

The ospf enable multi-area command does not apply to OSPF DCN interfaces.

If OSPF has been enabled on an interface of a virtual link in a transit area using the ospf enable or ospf enable multi-area command, OSPF cannot be enabled on the interface in the backbone area.

Example

# Enable OSPF on 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 GigabitEthernet0/1/0
[*HUAWEI-GigabitEthernet0/1/0] ospf enable 1 area 0
[*HUAWEI-GigabitEthernet0/1/0] ospf enable multi-area 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >