Assigning OSPFv2 areas

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router ospf command to enter OSPF router configuration mode and enable OSPFv2 on the device.
    device(config)# router ospf
  3. Enter the area command to define an OSPFv2 area ID.
    device(config-router-ospf-vrf-default-vrf)# area 0
  4. Enter the area command to define a second OSPFv2 area ID.
    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