Using Point-to-Point OSPF and example configurations
When configuring OSPF (Open Shortest Path First), one of the often-overlooked decisions is choosing the correct network type for an interface. While broadcast and non-broadcast are common in Ethernet and Wireless environments, point-to-point has specific advantages, especially in modern routed networks. In this post, I will break down what OSPF point-to-point mode is, when to use it, and why it might be your best option.
What Is Point-to-Point OSPF?
In OSPF, a point-to-point network type is a logical setting that tells the OSPF process that this link connects exactly two devices, with no need for DR/BDR elections, multicast discovery, or neighbor prioritization.
When a link is set to point-to-point:
- OSPF immediately forms an adjacency with the directly connected neighbor.
- No DR/BDR election is needed.
- LSAs (Link State Advertisements) are simpler, as there’s no “network LSA” required.
Why Use Point-to-Point?
1. Simplified Adjacency Formation
In point-to-point mode, OSPF assumes there is only one neighbor. That makes neighbor formation and LSA exchange faster and more deterministic. There’s no ambiguity, no election, and fewer timers to worry about.
Example: On a /30 or /31 link between two routers, using point-to-point ensures immediate and clean OSPF adjacencies.
2. No DR/BDR Elections
DR (Designated Router) and BDR (Backup Designated Router) elections are unnecessary overhead on links that only have two devices. Point-to-point mode disables the DR/BDR process entirely, reducing complexity and potential troubleshooting headaches.
3. Better Fit for Routed Infrastructure Links
If you’re connecting routers over serial links, Ethernet back-to-back cables, or VPN tunnels (like GRE or IPsec), those are all functionally point-to-point. Matching the OSPF type to the physical/logical reality of the link is best practice.
4. Cleaner LSDB and SPF Calculations
In point-to-point OSPF, Type 1 Router LSAs advertise the connected point-to-point link without needing a Type 2 Network LSA, which is required on broadcast networks with a DR. This streamlines the LSDB (Link-State Database) and makes SPF (Shortest Path First) calculations faster.
5. Ideal for MPLS Core Links
MPLS backbones and transit routers often use point-to-point links for LDP and OSPF adjacency. Using point-to-point helps optimize convergence times and reduces unnecessary OSPF control traffic.
When to Use Point-to-Point OSPF
| Scenario | Use Point-to-Point? | Why |
|---|---|---|
| /30 or /31 WAN link | ✅ | Only two routers |
| GRE tunnel | ✅ | Logically point-to-point |
| Back-to-back Ethernet | ✅ | No switching involved |
| Metro Ethernet (EVC per customer) | ✅ | Each EVC is typically two endpoints |
| Shared broadcast domain (e.g., switch with 3+ routers) | ❌ | Use broadcast or non-broadcast mode |
How to Configure It
Cisco IOS Example:
interface GigabitEthernet0/1
ip address 10.1.1.1 255.255.255.252
ip ospf network point-to-point
ip ospf 1 area 0
MikroTik RouterOS V6 Example:
/interface ospf instance
add name=default router-id=10.1.1.1
/interface ospf interface
add interface=ether1 network-type=point-to-point
Juniper JunOS Example:
set interfaces ge-0/0/1 unit 0 family inet address 10.1.1.1/30
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 interface-type p2p
Arista EOS Example:
In Arista EOS, you configure OSPF under the interface and specify the network type as point-to-point:
interface Ethernet1
ip address 10.1.1.1/30
ip ospf network point-to-point
ip ospf area 0.0.0.0
This ensures the interface behaves as a point-to-point OSPF link—no DR/BDR, faster convergence, and simplified neighbor relationships.
https://j2sw.com
https://startawisp.info
https://indycolo.net
#packetsdownrange #routethelight