Manipulating DR Selection
Problem
You want to manipulate the Designated Router (DR) selection process on a particular subnet.
Solution
The ip ospf priority configuration command allows
you to weight the Designated Router (DR) selection process on a
network segment. The following configuration examples are for three
different routers that all share the same Ethernet segment. Router5 has the highest OSPF priority, so it
will become the DR. Router1 has the
second highest priority because we want it to be the Backup Designated
Router (BDR).
Router1 is connected to this
network segment through a VLAN trunk:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#interfaceRouter1(config-subif)#FastEthernet0/0.1ip ospf priorityRouter1(config-subif)#2exitRouter1(config)#endRouter1#
We will configure Router3
with a priority of 0. The default priority is 1. A router with priority 0 will never become the DR or BDR:
Router3#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router3(config)#interfaceRouter3(config-subif)#FastEthernet0/0.1ip ospf priorityRouter3(config-subif)#0exitRouter3(config)#endRouter3#
Router5 has the highest
priority, so it will become the DR for the segment:
Router5#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router5(config)#interfaceRouter5(config-if)#Ethernet0ip ospf priorityRouter5(config-if)#10exitRouter5(config)#endRouter5#
Discussion
There are ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access