R2511-HP MSR Router Series Layer 3 - IP Routing Command Reference(V5)

122
Parameters
ip-address: Specifies a neighbor IP address.
cost value: Specifies the cost to reach the neighbor, in the range of 1 to 65535.
dr-priority dr-priority: Specifies the neighbor DR priority in the range of 0 to 255. The default neighbor
DR priority is 1.
Usage guidelines
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 by 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.
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
# S p e ci f y t h e n e i g h b o r 1.1.1.1.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] peer 1.1.1.1
Related commands
ospf dr-priority
preference
Use preference to set the preference of OSPF routes.
Use undo preference to restore the default.
Syntax
preference [ ase ] [ route-policy route-policy-name ] value
undo preference [ ase ]
Default
The preference of OSPF internal routes is 10, and the preference of OSPF external routes is 150.
Views
OSPF view
Default command level
2: System level
Parameters
ase: Sets a preference for ASE routes. If the keyword is not specified, using the command sets a
preference for OSPF internal routes.