ip ospf area

Enables OSPFv2 on an interface.

Syntax

ip ospf area area-id | ip-addr
no ip ospf area

Command Default

Disabled.

Parameters

area-id
Area ID in decimal format. Valid values range from 1 through 2147483647.
ip-addr
Area ID in IP address format.

Modes

Interface subtype configuration mode

Usage Guidelines

The no form of the command disables OSPFv2 on the interface.

Examples

The following example enables a configured OSPFv2 area named 1 on a specific OSPFv2 virtual Ethernet (VE) interface.

device# configure terminal
device(config)# interface ve 1
device(config-if-Ve-1)# ip ospf area 1