ip ospf priority
Sets the priority of a router to determine the designated OSPF router for a network.
Syntax: ip ospf priority number
no ip ospf priority
number
A number between 0 and 255 that specifies the priority of this interface.
Each broadcast and Non-Broadcast Multi-Access (NBMA) network has a designated router. If the network is a transit network, the designated router generates a link state advertisement (LSA) for the network and has other responsibilities required for the running of the protocol. The designated router is elected by the Hello Protocol.
The designated router concept reduces the amount of routing protocol traffic and reduces the size of the link-state database by enabling a reduction in the number of adjacencies required on a broadcast or non-broadcast multi-access network.
When two routers attached to a network both attempt to become the designated router, the router with the highest priority becomes the designated router. A router whose priority is set to 0 is ineligible to become designated router or backup designated router.
Use the ip ospf priority [1 - 255] command to set the priority to a value between 1 and 255.
Use the ip ospf priority 0 command to configure the router to never function as the designated router or backup designated router.
Use the no ip ospf priority command to set the priority at the default value of 1.
Factory Default: 1.
Command Mode: Interface configuration.
Example 1: In the following example, the ip ospf priority number command configures the router with a priority of 3, and the show ip ospf interface pos command displays the setting:
router(config-router)#interface pos 1/1/1
router(config-if)#ip ospf priority 3
router(config-if)#end
router#show ip ospf int pos 1/1/1
Name: POS 1/1/1
Address: 201.1.1.10
Net type: Broadcast
State:
Area: 0.0.0.0
DR: 0.0.0.0
BDR: 0.0.0.0
Priority: 3
Cost: 10
Hello int: 10
Dead int: 40
Retrans int: 5
Transmit delay: 1
Example 2: In the following example, the ip ospf priority 0 command ensures that the router will never become the designated OSPF router for this network:
router(config)#router ospf 1
router(config-router)#network 10.1.1.0 0.0.0.255 area 0
router(config-router)#interface pos 1/1/1
router(config-if)#ip ospf priority 0
Related Commands: network area
router ospf
interface
show ip ospf interface
Copyright © 2004
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: ospf.fm
HTML File Name: ospf13.html
Last Updated: 05/10/04 at 16:34:58