There are two ways to setup OSPF:
- Under the interface using "ip ospf <process-id> area <area-id>"
- Under the routing process using the network command
If both are configured, the interface command supersedes the setting under the routing process. So for example if an interface is configured both ways with different areas, the area given under the interface will be the one used.
OSPF Cost = Reference/Bandwidth