1152
C
76: OSPF C
HAPTER
View
Parameters
Description
Related commands:
Examples
preference
Syntax
View
Parameters
C
ONFIGURATION
OMMANDS
undo peer ip-address
OSPF view
ip-address: Neighbor IP address.
dr-priority: Neighbor DR priority, in the range 0 to 255, the bigger the value, the
higher the priority.
Use the
command to specify the IP address of an NBMA neighbor, and the
peer
DR priority of the neighbor.
Use the
undo peer
The DR priority of NBMA neighbors defaults to 1.
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.
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.
ospf dr-priority.
# Specify the neighbor IP address 1.1.1.1.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] peer 1.1.1.1
preference [ ase ] [ route-policy route-policy-name ] value
undo preference [ ase ]
OSPF view
ase: Sets priority for ASE routes. If the keyword is not specified, using the
command sets priority for internal routes.
route-policy: Applies a route policy to set priorities for specified routes.
command to remove the configuration.