Areas can be assigned as OSPFv2 areas.
device# configure terminal
device(config)# router ospf
device(config-router-ospf-vrf-default-vrf)# area 0
device(config-router-ospf-vrf-default-vrf)# area 10.1.1.1
The following example assigns an OSPFv2 ID to two areas. One of the areas is assigned by decimal number. The second area is assigned by IP address.
device# configure terminal device(config)# router ospf device(config-router-ospf-vrf-default-vrf)# area 0 device(config-router-ospf-vrf-default-vrf)# area 10.1.1.1