I understand in multi-access environment if set "ip ospf priority 0", the interface is not able to participate in DR/BDR selection process which has a value 1 as default. Now consider the following scenario in a broadcast environment:
ip ospf priority 255
router ospf 1
ip address 126.96.36.199 255.255.255.255
My question is :-
a) which from the above will be selected as DR and BDR?
b) Does setting "ip ospf priority 255" supercede other rules in DR/BDR selection process ? (e.g. highest ip/ router-id)
To reinforce what Jon wrote:
a) The router who comes up first will be DR and the second one BDR. DR/BDR election in OSPF is non-preemptive, so who got the job keeps the job.
IF an election process takes place RouterA will be DR and router C will be BDR.
b) Yes, if a DR/BDR election takes place
So in brief:
1) If there is no existing DR on a LAN and no other OSPF router as seen from the Hellos, then the router declares itself as DR unless the priority is set to 0.
2a) If there is already a DR and a BDR no change will occur, independent of priority. DR and BDR will keep their role, even if they have a smaller priority.
2b) If there is no BDR but a DR then the router will become BDR.
2C) If there is no DR and no BDR and Hellos from several routers are seen (all with 0.0.0.0 in the DR and BDR field) then election takes place. The routers must be able to form an adjacency (matching area, authentication, password, stub bit, etc. ..).
3) A priority of 0 means no DR or BDR role.
if you set the OSPf priority of a router to 255 it will supercede all other information and will be elected as a DR and if any other router will also have a 255 priotity then router-id will be used as a decision maker.
it is always better to fix the router-id manually because in future if you configure a new loopback address with higher number than current router-id, so after reboot router will pick the new interface ip as router-id and whole OSPF database will be converged with new router-id.
Regarding interfaces, loopback interfaces preferred over physical interfaces in router-id selection.
Please rate the post, if find useful.
OSPF priority will take precedence over the highest IP/router-id. Only if the priority is the same will the highest IP/router-id then be used to break the tie.
Note that if an OSPF router boots up and it has the highest priority but there is already and DR/BDR then it will not become either the DR or BDR.