The ospf enable command enables OSPF on an interface.
The undo ospf enable command disables OSPF on an interface.
By default, OSPF is not enabled on interfaces.
| Parameter | Description | Value |
|---|---|---|
| process-id | Specifies the ID of an OSPF process. | The value is an integer ranging from 1 to 65535. The default value is 1. |
| area area-id | Specifies the area ID. | The area ID can be in the format of a decimal integer or an IP address. The value ranges from 0 to 4294967295 when it is an integer. |
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 on an interface, the network configuration takes effect on the interface automatically.
Prerequisites
An area has been created by using the area command before you run the ospf enable [ process-id ] area area-id command to enable OSPF in the area.
Configuration Impact
The interface will alternate between up and down when the ospf enable command and the network command are run on the interface repeatedly.
Precautions
The configured interface and the OSPF process must be in the same VPN.