R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
271
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, because routers on the network cannot find neighbors via broadcasting
hello packets, you must 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 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.
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.
Examples
# S p e c i 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
preference
Syntax
preference [ ase ] [ route-policy route-policy-name ] value
undo preference [ ase ]
View
OSPF view
Default level
2: System level
Parameters
ase: Sets a priority for ASE routes. If the keyword is not specified, using the command sets a priority for
OSPF internal routes.
route-policy route-policy-name: References a route policy to set priorities for specified routes. A
route-policy-name is a string of 1 to 19 characters.
value: Priority value, in the range 1 to 255. A smaller value represents a higher priority.