Configuring OSPF network types
OSPF classifies networks into the following types based on the link layer protocol:
•
Broadcast—When the link layer protocol is Ethernet or FDDI, OSPF classifies the network type
as broadcast by default.
•
NBMA—When the link layer protocol is Frame Relay, ATM, or X.25, OSPF classifies the
network type as NBMA by default.
•
P2P—When the link layer protocol is PPP, LAPB, or HDLC, OSPF classifies the network type
as P2P by default.
When you change the network type of an interface, follow these guidelines:
•
When an NBMA network becomes fully meshed, change the network type to broadcast to avoid
manual configuration of neighbors.
•
If any routers in a broadcast network do not support multicasting, change the network type to
NBMA.
•
An NBMA network must be fully meshed. OSPF requires that an NBMA network be fully
meshed. If a network is partially meshed, change the network type to P2MP.
•
If a router on an NBMA network has only one neighbor, you can change the network type to P2P
to save costs.
Two broadcast-, NBMA-, and P2MP-interfaces can establish a neighbor relationship only when they
are on the same network segment.
Configuration prerequisites
Before you configure OSPF network types, perform the following tasks:
•
Configure IP addresses for interfaces to ensure IP connectivity between neighboring nodes.
•
Enable OSPF.
Configuring the broadcast network type for an interface
Step
1.
Enter system view.
2.
Enter interface view.
3.
Configure the OSPF network
type for the interface as
broadcast.
4.
(Optional.)
priority for the interface.
Configuring the NBMA network type for an interface
After you configure the network type as NBMA, you must specify neighbors and their router priorities
because NBMA interfaces cannot find neighbors by broadcasting hello packets.
To configure the NBMA network type for an interface:
Command
system-view
interface
interface-number
ospf network-type broadcast
Set
a
router
ospf dr-priority priority
Remarks
N/A
interface-type
N/A
By default, the network type of an
interface depends on the link layer
protocol.
The default router priority is 1.
76