vrrp vrid priority

Syntax

vrrp vrid virtual-router-id priority priority-value

undo vrrp vrid virtual-router-id priority

View

Interface view

Default level

2: System level

Parameters

virtual-router-id: VRRP group number, which ranges from 1 to 255.

priority-value: Priority value of the router in the specified VRRP group, which ranges from 1 to 254. A higher number indicates a higher priority.

Description

Use vrrp vrid priority to configure the priority of the router in the specified VRRP group.

Use undo vrrp vrid priority to restore the default.

By default, the priority of a router in a VRRP group is 100.

Related commands: display vrrp.

Examples

# Set the priority of VRRP group 1 on VLAN-interface 2 to 150.

<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.1
[Sysname-Vlan-interface2] vrrp vrid 1 priority 150