Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Example: Controlling OSPF Designated Router Election


This example shows how to control OSPF designated router election.


Before you begin:


This example shows how to control OSPF designated router election. Within the example, you set the OSPF interface to ge-/0/0/1 and the device priority to 200. The higher the priority value, the greater likelihood the routing device will become the designated router.

By default, routing devices have a priority of 128. A priority of 0 marks the routing device as ineligible to become the designated router. A priority of 1 means the routing device has the least chance of becoming a designated router.


CLI Quick Configuration

To quickly configure an OSPF designated router election, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.

Step-by-Step Procedure

To control OSPF designated router election:

  1. Configure an OSPF interface and specify the device priority. Note

    To specify an OSPFv3 interface, include the ospf3 statement at the [edit protocols] hierarchy level.

  2. If you are done configuring the device, commit the configuration.


Confirm your configuration by entering the show protocols ospf command. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

To confirm your OSPFv3 configuration, enter the show protocols ospf3 command.


Confirm that the configuration is working properly.

Verifying the Designated Router Election


Based on the priority you configured for a specific OSPF interface, you can confirm the address of the area’s designated router. The DR ID, DR, or DR-ID field displays the address of the area’s designated router. The BDR ID, BDR, or BDR-ID field displays the address of the backup designated router.


From operational mode, enter the show ospf interface and the show ospf neighbor commands for OSPFv2, and enter the show ospf3 interface and the show ospf3 neighbor commands for OSPFv3.