peer
Use peer to specify a neighbor and a DR priority for the neighbor.
Use undo peer to remove the configuration.
Syntax
peer ip-address [ cost value | dr-priority dr-priority ]
undo peer ip-address
Default
No neighbor is specified.
Views
OSPF view
Predefined user roles
network-admin
mdc-admin
Parameters
ip-address: Specifies a neighbor by its IP address.
cost value: Specifies the cost to reach the neighbor, in the range of 1 to 65535.
dr-priority dr-priority: Specifies the DR priority for the neighbor, in the range of 0 to 255. The default neighbor DR priority is 1.
Usage guidelines
Because routers on an X.25 or Frame Relay network cannot locate neighbors by multicasting hello packets, you must use this command to specify neighbors.
At startup, a router sends a hello packet to neighbors with a nonzero priority. After the DR and BDR are elected, the DR sends hello packets to all neighbors to create adjacencies.
The cost set with the peer command applies only to P2MP neighbors. If no cost is specified, the cost to the neighbor equals the local interface's cost.
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.
Examples
# Specify the neighbor 1.1.1.1.
<Sysname> system-view [Sysname] ospf 100 [Sysname-ospf-100] peer 1.1.1.1
Related commands
ospf dr-priority