vrrp vrid name

Use vrrp vrid name to configure an IPv4 VRRP group as a master group and assign a name to it.

Use undo vrrp vrid name to remove the configuration.

Syntax

vrrp vrid virtual-router-id name name

undo vrrp vrid virtual-router-id name

Default

An IPv4 VRRP group does not act as a master group.

Views

Interface view

Predefined user roles

network-admin

Parameters

virtual-router-id: Specifies an IPv4 VRRP group by its virtual router ID in the range of 1 to 255.

name: Specifies a master IPv4 VRRP group name, a case-sensitive string of 1 to 20 characters.

Usage guidelines

This command configures an IPv4 VRRP group as a master group by assigning a master group name to it. A VRRP group that follows the master group is a subordinate VRRP group. The master VRRP group exchanges VRRP packets among member devices. The subordinate VRRP group does not exchange VRRP packets and follows the state of the master group. Both the master and subordinate VRRP groups can forward service traffic.

You cannot assign the same master VRRP group name to different VRRP groups on a device.

An IPv4 VRRP group cannot be both a master group and a subordinate group.

Examples

# Configure IPv4 VRRP group 1 as a master group and assign master group name abc to it.

<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp vrid 1 name abc

Related commands

display vrrp binding

vrrp vrid follow