4-58
This configuration is not supported on the null interface.
Examples
# Set the LSA transmission delay to 3 seconds on the current interface.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf trans-delay 3
peer
Syntax
peer ip-address
[
cost value
|
dr-priority dr-priority
]
undo peer ip-address
View
OSPF view
Default Level
2: System level
Parameters
ip-address
: Neighbor IP address.
cost value
: Specifies the cost to reach the neighbor, in the range 1 to 65535.
dr-priority
: Neighbor DR priority, in the range 0 to 255.
Description
Use the
peer
command to specify a neighbor, and the DR priority of the neighbor.
Use the
undo peer
command to remove the configuration.
On an X.25 or Frame Relay network, you can configure mappings to make the network fully meshed
(any two routers have a direct link in between), so OSPF can handle DR/BDR election as it does on a
broadcast network. However, since routers on the network cannot find neighbors via broadcasting
hello packets, you need to specify neighbors and neighbor DR priorities on the routers.
After startup, a router sends a hello packet to neighbors with DR priorities higher than 0. When the DR
and BDR are elected, the DR will send hello packets to all neighbors for adjacency establishment.
Note that:
z
The cost set with the
peer
command is the cost to the specified neighbor on the P2MP link. If no
cost is specified, the cost to the neighbor equals the local interface’s cost.
z
A router uses the priority set with the
peer
command to determine whether to send a hello packet
to the neighbor rather than for DR election. The DR priority set with the
ospf dr-priority
command is used for DR election.
Related commands:
ospf dr-priority
.