dcn ospf enable (interface view)

Function

The dcn ospf enable command enables the Open Shortest Path First (OSPF) function on the DCN interface.

The undo dcn ospf enable command disables the OSPF function on the DCN interface.

By default, the OSPF function is disabled on DCN interfaces.

Format

dcn ospf enable [ process-id ] area { area-id | area-id }

undo dcn ospf enable [ process-id ] area { area-id | area-id }

Parameters

Parameter Description Value
process-id

Specifies the ID of an OSPF process.

The?value?is?an?integer?ranging?from?1?to?4294967295.?The?default?value?is?1.

area area-id

Specifies the ID of an OSPF area.

The value can be an integer or in the format of an IP address.

  • The value ranges from 0 to 4294967295 when it is an integer.
  • The value is in dotted decimal notation when it is in the format of an IP address.

Views

100GE interface view, 10G-FG, 10GE interface view, 40GE interface view, FlexE-100G interface view, FlexE-50G interface view, FlexE-50|100G interface view, FlexE interface view, GE optical interface view, GE electrical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dcn write

Usage Guidelines

Usage Scenario

To enable OSPF on DCN serial interfaces or sub-interfaces 4094 in a specified process and area, run the dcn ospf enable command.

Prerequisites

DCN has been enabled using the dcn command in the interface view, or DCN communication through sub-interfaces 4094 has been enabled using the dcn mode vlan command in the GE interface view.

Precautions

If multiple DCN interfaces of an interface share one IP address, do not use the network command to enable the OSPF function on the DCN interfaces.

The dcn ospf enable command cannot work with the network command. If both of the commands are run on an interface, the interface status may become unstable.

In VS mode, this command is supported only by the admin VS.

Example

# Enable the OSPF function in process 100 and area 1 of GE 0/1/0.
<HUAWEI> system-view
[~HUAWEI] dcn
Warning: This operation will enable DCN function. Continue? [Y/N]:y
[*HUAWEI-dcn] quit
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] dcn
[*HUAWEI-GigabitEthernet0/1/0] dcn ospf enable 100 area 1
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >