
C613-50186-01 Rev B
Command Reference for AR2050V
946
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
OSPF C
OMMANDS
IP
OSPF
PRIORITY
ip ospf priority
Overview
This command sets the router priority, which is a parameter used in the election of
the designated router for the network.
The
no
variant of this command returns the router priority to the default of 1.
Syntax
ip ospf [<
ip-address
>] priority <
priority
>
no ip ospf [<
ip-address
>] priority
Default
The router priority for an interface is set to 1 by default.
Mode
Interface Configuration for a VLAN interface or a PPP interface.
Usage
Set the priority to help determine the OSPF Designated Router (DR) for a network.
If two routers attempt to become the DR, the router with the higher router priority
becomes the DR. If the router priority is the same for two routers, the router with
the higher router ID takes precedence.
Only routers with nonzero router priority values are eligible to become the
designated or backup designated router.
Configure router priority for multi-access networks only and not for point-to-point
networks.
Example
The following example shows setting the OSPF priority value to 3 on the VLAN
interface
vlan2
.
awplus#
configure terminal
awplus(config)#
interface vlan2
awplus(config-if)#
ip ospf priority 3
The following example shows setting the OSPF priority value to 3 on the PPP
interface
ppp0
.
awplus#
configure terminal
awplus(config)#
interface ppp0
awplus(config-if)#
ip ospf priority 3
Related
Commands
Parameter
Description
<
ip-address
>
The IP address of the interface.
<
priority
>
<
0-255
> Specifies the Router Priority of the interface.