Prerequisites
Before configuring OSPF network types, you have configured:
IP addresses for interfaces, making neighboring nodes accessible with each other at network layer.
OSPF basic functions.
Configuring the OSPF Network Type for an Interface as Broadcast
Follow these steps to configure the OSPF network type for an interface as broadcast:
To do...
Enter system view
Enter interface view
Configure the OSPF network
type for the interface as
broadcast
Configure a DR priority for the
interface
Configuring the OSPF Network Type for an Interface as NBMA
After configuring the network type of an interface as NBMA, you need to make some special
configurations.
Because NBMA interfaces cannot find neighbors via broadcasting Hello packets, you need to specify
neighbors and neighbor DR priorities. (A DR priority of 0 means the router does not have the DR
election right; a DR priority greater than 0 means the router has the DR election right).
Follow these steps to configure the OSPF network type for an Interface as NBMA:
To do...
Enter system view
Enter interface view
Configure the OSPF network
type for the interface as
NBMA
Configure a DR priority for the
interface
Exit to system view
Enter OSPF view
Specify a neighbor and its DR
priority
Use the command...
system-view
interface interface-type
interface-number
ospf network-type
broadcast
ospf dr-priority priority
Use the command...
system-view
interface interface-type
interface-number
ospf network-type nbma
ospf dr-priority priority
quit
ospf [ process-id | router-id
router-id | vpn-instance
instance-name ] *
peer ip-address [ dr-priority
dr-priority ]
1-25
Remarks
—
—
Required
By default, the network type is
broadcast.
Optional
The default DR priority is 1.
Remarks
—
—
Required
By default, the network type is
broadcast.
Optional
The default DR priority is 1
—
—
Required