To assign a loopback interface to an area with the IP address of 10.5.0.0, perform the following task:
device# configure terminal
device(config)# interface loopback 2
device(config-Loopback-2)# ip ospf area 10.5.0.0
The following example assigns a loopback interface to an area with the IP address of 10.5.0.0.
device# configure terminal device(config)# interface loopback 2 device(config-Loopback-2)# ip ospf area 10.5.0.0