ospf enable

Function

The ospf enable command enables OSPF on the interface.

The undo ospf enable command disables OSPF from the interface.

By default, OSPF is not enabled on interfaces.

Format

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

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

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 an area ID in the format of a decimal integer.

The value ranges from 0 to 4294967295 when it is an integer.

areaidipv4

Specifies an area ID in the format of an IP address.

The value is in dotted decimal notation.

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, Loopback 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

The ospf enable command configuration takes precedence over the network command configuration.

After the undo ospf enable command is run to disable OSPF from an interface, the network configuration takes effect on the interface automatically.

Configuration Impact

The interface will alternate between Up and Down when the ospf enable and network commands are run on the interface repeatedly.

Precautions

The area specified in the ospf enable command must have been created. Otherwise, the configuration does not take effect.

The configured interface and the OSPF process must be in the same VPN.

  • The ospf enable command can be configured on an interface before an OSPF process is created. The interface specified in the ospf enable command and the created OSPF process must be in the same VPN.
  • If a process is created before the ospf enable command is run on an interface, the process of the interface and existing process must belong to the same VPN. Otherwise, the ospf enable command cannot be run.
  • If no OSPF process is created, interfaces that belong to different VPN instances cannot be added to the same OSPF process.

Example

# Enable GigabitEthernet 0/1/0 in the specified OSPF area.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/0
[~HUAWEI-GigabitEthernet0/1/0] ospf enable 1 area 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >