Sub topic 5
Network Types: Broadcast, Point-to-Point, and Others
This chapter assumes you know how OSPF Hello packets discover neighbors, how IPv4 subnets work, and how Ethernet and serial point-to-point links differ. An OSPF network type is a per-interface setting. It tells OSPF how to behave on that link: whether to find neighbors by multicast, whether to elect a DR, and which timers to use.
Why the Type Matters
OSPF cannot see your cabling. It sees an interface and a network type. If the type does not match the real topology, you get extra elections, wasted adjacencies, or neighbors that never come up.
The Common Types
| Type | Default on | DR/BDR election | Hello / Dead (seconds) | Neighbor discovery |
|---|---|---|---|---|
| Broadcast | Ethernet | Yes | 10 / 40 | Multicast 224.0.0.5 |
| Point-to-point | Serial (PPP, HDLC) | No | 10 / 40 | Multicast 224.0.0.5 |
| Non-broadcast (NBMA) | Frame Relay, ATM | Yes | 30 / 120 | Static neighbor commands |
| Point-to-multipoint | Never the default | No | 30 / 120 | Multicast 224.0.0.5 |
| Point-to-multipoint non-broadcast | Never the default | No | 30 / 120 | Static neighbor commands |
Broadcast and point-to-point are by far the most common today. The other types exist for legacy WAN clouds that do not support multicast, and you will rarely configure them.
Broadcast
A broadcast network is a multi-access segment, such as an Ethernet LAN with several routers. OSPF elects a DR and a BDR to limit the number of adjacencies. The next chapter covers that election.
Point-to-Point
A point-to-point link has exactly two routers. No election is needed, so adjacency forms faster and the link needs no DR or BDR.
Most routers connect over Ethernet today, so the default type on those links is broadcast. If a link really joins only two routers, you can change the type to point-to-point. This skips the election and removes the Type 2 LSA that a DR would otherwise originate.
interface GigabitEthernet0/0
ip address 10.0.12.1 255.255.255.252
ip ospf network point-to-pointMismatches
Both ends of a link should use the same network type. The mismatch behavior depends on the types involved:
- Broadcast on one side and point-to-point on the other can leave the neighbors in a state where they are not both fully adjacent, and routes can be missing or inconsistent. The two sides disagree about whether a DR exists.
- Hello and Dead timers must match for an adjacency to form. Types that use different default timers, such as broadcast and point-to-multipoint, will not become neighbors unless you change the timers to match.
Choosing a Type
Checking the Type
Use show ip ospf interface to see the current type, timers, and DR state for an interface. The type appears as Network Type POINT_TO_POINT or Network Type BROADCAST.
Exercise
Two routers are connected by a single Ethernet cable with a /30 subnet. Neither router has any OSPF network type configured. What type is used, and what would you change to avoid an unnecessary DR/BDR election?
Show answer
Ethernet interfaces default to broadcast, so a DR and BDR are elected even though only two routers exist. Configure ip ospf network point-to-point on both interfaces. This skips the election and the DR-originated Type 2 LSA.
Exercise
Router A uses a point-to-multipoint type and Router B uses a broadcast type on the same link. Why will they fail to become neighbors by default?
Show answer
Their default Hello and Dead timers differ (30/120 versus 10/40), and Hello packets with mismatched timers are rejected. You must either match the timers or set the same network type on both ends.