set protocols ospf interface priority

Run the command set protocols ospf interface priority to set the OSPF priority for the interface. The larger the numeric value of the priority, the higher the chances for it to become the designated router. Setting a priority of zero makes the router ineligible to become a designated router or back up designated router.
The command delete protocols ospf interface priority sets the OSPF priority for the interface to the default of 1.


Command Syntax

set protocols ospf interface <interface-name> [address <ipv4>] priority <PRIORITY-VALUE>

delete protocols ospf interface <interface-name> [address <ipv4>] priority


Parameter

Parameter

Description

interface <interface-name>Specifies the VLAN interface name, the loopback interface name, the routed interface or the sub-interface name.

address <ipv4>

Optional. Specifies an IPv4 address. 
priority <PRIORITY-VALUE>Specifies the OSPF priority value. Range: 0 to 255. Default: 1.


Usage Guidelines

L3 interface can be configured with multiple IP addresses. If you specify an interface and also specify an interface address in this command, the parameters are configured only for the specified IP of that interface. If only the interface is specified but no IP address is specified, the parameters are set for all IPs of the interface.


Example

  •  Configure the OSPF vlan200 priority to 5.
admin@XorPlus# set protocols ospf interface vlan200 priority 5
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.