OSPF

Single-Area OSPF Configuration

Learn how interfaces, subnet masks, OSPF areas, Router IDs, and Cisco interface commands fit together in a single-area OSPF design.

Intermediate15 min read
OSPF lessonNetworkingLearn

Learn how interfaces, subnet masks, OSPF areas, Router IDs, and Cisco interface commands fit together in a single-area OSPF design.

What you will be able to do

  • Explain how an interface, attached network, subnet mask, and OSPF area relate.
  • Configure a Cisco interface for OSPF process 10 in area 0 using an interface-specific command.
  • Distinguish point-to-point, broadcast, NBMA, and point-to-multipoint interface behavior.
  • Use command order and OSPF identifiers to reason about interface-area matching and LSA ownership.

01

1. Start with the network building blocks

An interface is the router’s connection to one attached network. In the usual case, that interface has one IP address and one subnet mask; an unnumbered point-to-point network is an exception.

The subnet mask marks which part of the interface address belongs to the attached network. This boundary matters because OSPF assigns an interface’s network connection to an area.

Think of the configuration as a chain: interface, attached network, mask, and area. Keeping those four items distinct makes later OSPF decisions easier to follow.

02

2. Keep a single area consistent

Each network belongs to one OSPF area, and each router interface connects to one area. A single-area design therefore places the participating interfaces and their attached networks in the same chosen area.

Area membership is applied to interfaces, not to an abstract device-wide label. For example, assigning an interface to area 0 gives that interface’s OSPF connection its area assignment.

This distinction helps prevent a common mental shortcut: a router can have several interfaces, while each interface still has its own network and area relationship.

03

3. Apply OSPF on a Cisco interface

Cisco provides an interface-specific command for assigning OSPF process 10 and area 0: `ip ospf 10 area 0`. The command expresses both the local OSPF process number and the area selected for that interface.

A compact example is: `interface GigabitEthernet0/0`, followed by `ip ospf 10 area 0`. The interface context matters because the command assigns OSPF to that particular interface.

This command does not replace the interface’s IP address or mask. Those values describe the attached network, while the OSPF command associates the interface with the selected process and area.

04

4. Understand matching order

Cisco evaluates each `network` area command sequentially. Consequently, the order of those commands can change which area assignment matches an interface.

This creates an important contrast with the interface-specific command. The interface command names the target interface directly, while `network` area commands are evaluated as a sequence whose order affects matching.

When reviewing a configuration, read sequential `network` area commands from the beginning. Do not assume that a later command will be considered first.

05

5. Identify point-to-point operation

A point-to-point interface connects the router to either a physical point-to-point network or a virtual link. This describes the kind of OSPF connection represented by that interface.

On a point-to-point network or virtual link, the OSPF header identifies the sender with the sender’s Router ID. The sender is not identified there by an interface address.

That identifier choice contrasts with the ordinary interface information used to describe an attached network. Router identity and interface addressing are related, but they serve different roles.

06

6. Compare broadcast and NBMA behavior

On a broadcast or NBMA network, an interface can enter DR Other when another router has been selected as the Designated Router. DR Other describes the interface’s position relative to that election.

Cisco can configure point-to-multipoint operation on broadcast media with `ip ospf network point-to-multipoint`. For nonbroadcast media, the corresponding command is `ip ospf network point-to-multipoint non-broadcast`.

The two commands share the point-to-multipoint setting but differ in the media type they name. Choose the broadcast form for broadcast media and the non-broadcast form for nonbroadcast media.

07

7. Track OSPF identities

A Designated Router has two relevant identifiers: an OSPF Router ID and an IP interface address on its network. These identifiers are not interchangeable.

A network-LSA identifies fully adjacent routers by their OSPF Router IDs. This allows the LSA to describe router identity separately from the interface address used on the network.

For self-originated status, an LSA’s Advertising Router must match the local Router ID. A network-LSA also counts as self-originated when its Link State ID matches one of the router’s interface addresses.

08

8. Put the pieces together

Suppose an interface has an IP address and mask, connects to one attached network, and receives `ip ospf 10 area 0` under its interface configuration. The address and mask describe the network, while the command assigns that interface to area 0 for process 10.

Now classify the interface before choosing a network-type command. A physical point-to-point connection or virtual link belongs in the point-to-point category; broadcast and nonbroadcast media require different point-to-multipoint command forms when that operation is desired.

Finally, inspect identifiers separately. Use the Router ID when reasoning about an OSPF sender or the Advertising Router field, and use the interface address when reasoning about a network-LSA’s Link State ID.

09

9. Recap before Practice and Prove

An interface connects a router to one attached network, and its IP address and mask describe that network. An unnumbered point-to-point network is the stated exception to the usual addressing pattern.

Each network belongs to one OSPF area, and each interface connects to one area. The Cisco command `ip ospf 10 area 0` assigns process 10 and area 0 within the selected interface.

Point-to-point, broadcast, and NBMA descriptions identify different interface contexts. Cisco uses separate point-to-multipoint commands for broadcast and nonbroadcast media.

Cisco evaluates `network` area commands in sequence, so their order can affect matching. Interface-specific commands avoid that particular matching-order issue by naming the interface context directly.

Router IDs and interface addresses have different jobs in OSPF identity checks. Use these relationships in Practice and Prove to classify interfaces, select commands, and trace LSA ownership.

NEXT STEP

Turn reading into recall

Practice the concepts without a timer, with coaching and retry available after every answer.

Open guided practice