1-25
Prerequisites
Before configuring OSPF network types, you have configured:
z
IP addresses for interfaces, making neighboring nodes accessible with each other at network layer.
z
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…
Use the command…
Remarks
Enter system view
system-view
—
Enter interface view
interface
interface-type
interface-number
—
Configure the OSPF network
type for the interface as
broadcast
ospf network-type
broadcast
Required
By default, the network type is
broadcast.
Configure a DR priority for the
interface
ospf dr-priority priority
Optional
The default DR priority is 1.
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…
Use the command…
Remarks
Enter system view
system-view
—
Enter interface view
interface
interface-type
interface-number
—
Configure the OSPF network
type for the interface as
NBMA
ospf network-type nbma
Required
By default, the network type is
broadcast.
Configure a DR priority for the
interface
ospf dr-priority
priority
Optional
The default DR priority is 1
Exit to system view
quit
—
Enter OSPF view
ospf
[
process-id
|
router-id
router-id
|
vpn-instance
instance-name
] *
—
Specify a neighbor and its DR
priority
peer
ip-address
[
dr-priority
dr-priority
]
Required