Changing priority per-interface

Syntax:

ip ospf [ip-address|all] priority 1-255

The priority is used when selecting the DR and backup DRs (BDRs.)

The value can be from 0 to 255 (with 255 as the highest priority.) If you set the priority to 0, the routing switch does not participate in DR and BDR election. Allows different settings for different subnet interfaces in the VLAN.

ip ospf priority 1-255

Assigns the specified priority to all networks configured on the VLAN.

ip ospf ip-address priority 1-255

Assigns the specified priority to the specified subnet on the VLAN.

ip ospf all priority 1-255

Assigns the specified priority to all networks configured on the VLAN. Operates the same as the ip ospf priority option.

Default: 1; range 0–255