Configure the OSPF priority for the VLAN during the election process for the designated router. The VLAN with the highest priority number is the best candidate for the designated router. If you configure the priority to 0, the VLAN cannot become either the designated router or a backup designated router.
default ip ospf priority
ip ospf priority <0-255>
The default is 1.
VLAN Interface Configuration