vrrp-id

Function

The vrrp-id command binds an RBP to a specified VRRP group.

The undo vrrp-id command unbinds an RBP from a VRRP group.

By default, no RBP is bound to a VRRP group .

Format

vrrp-id vrid interface { interface-name | interface-type interface-number }

vrrp-id vrid interface { interface-name | interface-type interface-number } { odd-mac | even-mac }

undo vrrp-id vrid

Parameters

Parameter Description Value
vrid

Specifies the ID of a VRRP group.

The value is an integer ranging from 1 to 255.

interface interface-type interface-number

Specifies the type and number of an interface configured with a VRRP group.

-

odd-mac

Binds an RBP to a VRRP group in odd MAC address mode.

-

even-mac

Binds an RBP to a VRRP group in even MAC address mode.

-

Views

Remote backup profile view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
rbs write

Usage Guidelines

Usage Scenario

Before applying an RBP to the interface with a VRRP group configured, run the vrrp-id command to bind the RBP to the VRRP group. You can run the command to bind an RBP to a VRRP group in odd or even MAC address mode.

Prerequisites

An RBP has been created using the remote-backup-profile command in the system view.

Follow-up Procedure

Run the remote-backup-profile command in the interface view to bind the RBP to the interface with the VRRP group configured.

Precautions

The ID of the VRRP group bound with an RBP must be the same as the ID of the VRRP group configured on the corresponding interface.

Example

# Bind the RBP named rpf to VRRP group 1.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[*HUAWEI-GigabitEthernet0/1/1] vrrp vrid 1
[*HUAWEI-GigabitEthernet0/1/1] quit
[*HUAWEI] remote-backup-profile rpf
[*HUAWEI-rm-backup-prf-rpf] vrrp-id 1 interface GigabitEthernet 0/1/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >