Example: Controlling OSPF Designated Router Election
This example shows how to control OSPF designated router election.
Before you begin:
Configure the device interfaces. See the Interfaces Feature Guide for Security Devices.
Configure the router identifiers for the devices in your OSPF network. See Example: Configuring an OSPF Router Identifier.
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  hierarchy level, and then enter commit from configuration mode.
To control OSPF designated router election:
- Configure an OSPF interface and specify the device priority.
To specify an OSPFv3 interface, include the ospf3 statement at the [edit protocols] hierarchy level.user@host# set protocols ospf area 0.0.0.3 interface ge-0/0/1 priority 200
- If you are done configuring the device, commit the configuration.user@host# commit
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.