The set protocols vrrp interface vif vrid ip command assigns a virtual IP address to the VRRP group. 

NOTE:

This command applies to both VRRPv2 and VRRPv3 configuration.


Command Syntax

set protocols vrrp interface <interface-name> vif <vif-name> vrid <virtual-router-id> ip <ip-address>

 

Parameter

Parameter

Description

interface <interface-name>

Specifies the Layer 3 interface name of VRRP device. The value is a string.

vif <vif-name>

Specifies the VLAN interface name. The value is a string.

vrid <virtual-router-id>

Specifies the VRID of a VRRP group. The value is an integer that ranges from 1 to 254.

ip <ip-address>

Specifies the virtual IPvX address of a VRRP group. The value could be an IPv4 address or an IPv6 address.

Type the IPvX address without subnet mask as the mask value is the same as the Layer 3 interface.

 

Usage Guidelines

If users on a network have the same reliability requirements, configure multiple virtual IPvX addresses for a VRRP group. By doing this, one virtual IP address can serve one separate user group.

One VRRP group supports a maximum of 254 virtual IPv4 addresses, and 64 virtual IPv6 addresses.

Follow the rules below when configuring the virtual IPv4 / IPv6 address:

The gateway address of the downstream host should be configured as the virtual IPvX address of the VRRP virtual router device. For IPv6, the gateway address should be the virtual link-local address.


Example

admin@Xorplus# set protocols vrrp interface vlan100 vif vlan100 vrid 2 ip 192.168.1.5
admin@Xorplus# commit