cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
517
Views
0
Helpful
3
Replies

OSPF Nei Election

rihntr
Level 1
Level 1

Once a nei election has been completed and a DR/BDR have been assigned, what is the correct way to change the DR without taking down the devices that are the DR and BDR?

I was doing a lab and delayed in enabling the e0 int on the router that should have been the DR(Loopback w/ highest IP). Once I enabled the e0 int, the election was done and of course the router that should be the DR was not.

I tried to change the priority to 3 and clear the ip ospf process ut this did not work. I am doing this in a lab, but if this where a real world example, running around unplugging/reloading routers would not be the best thing to do.

Is there a way to force a re-election and change the DR?

I have looked online and through the BSCI books and could not find another solution.

Thanks in advance

1 Accepted Solution

Accepted Solutions

Todd

I have found a way to deal with the situation when a router has become DR that is not the one that you want to be DR. On the router that is currently DR change its OSPF priority on the interface to zero. The router continues to process OSPF but it immediately relinquishes its role as DR, allowing an election to take place. You can then set the priority back to its normal value if you do not want to keep it at zero. I have tested this and it works well.

It is my impression that this would be slightly less impact than clearing the OSPF process on the router. But either changing the priority to zero or clearing the OSPF process would be less impact than shutting interfaces or rebooting routers.

HTH

Rick

HTH

Rick

View solution in original post

3 Replies 3

echelon360
Level 1
Level 1

There is no pre-emption with the neighbor election. Hence you can set a higher priority but it doesn't guarantee that the router with that highest priority becomes the DR. (unless all routers initialize their process at the same time)

Usually setting the priority to "0" is a better approach to taking routers out of the DR/BDR election.

alternatively, you might want to utilize the "max-metric router-lsa" on the router that you do not want to be used as primary path via OSPF.

Harold Ritter
Cisco Employee
Cisco Employee

Todd,

There is no preemption for the DR/BDR election. Try doing a "clear ip ospf process" on the router that is currently the DR after changing the priority on the router you want to become the DR. This should cause an election and the router with the highest priority should then win.

Regards

Regards

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Todd

I have found a way to deal with the situation when a router has become DR that is not the one that you want to be DR. On the router that is currently DR change its OSPF priority on the interface to zero. The router continues to process OSPF but it immediately relinquishes its role as DR, allowing an election to take place. You can then set the priority back to its normal value if you do not want to keep it at zero. I have tested this and it works well.

It is my impression that this would be slightly less impact than clearing the OSPF process on the router. But either changing the priority to zero or clearing the OSPF process would be less impact than shutting interfaces or rebooting routers.

HTH

Rick

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card