The vrrp vrid command configures a VRRP backup group.
The undo vrrp vrid command deletes a VRRP backup group.
By default, no VRRP backup group is configured.
Parameter | Description | Value |
---|---|---|
virtual-router-id |
Specifies the ID of a VRRP backup group. |
The value is an integer ranging from 1 to 255. |
virtual-ip virtual-address |
Specifies the virtual IP address of a VRRP backup group. The virtual IP address and the IP address of the interface where the VRRP backup group resides must be on the same network segment. If the VRRP backup group is an LBRG member group, you do not need to assign a virtual IP address to the VRRP backup group. |
The value is in dotted decimal notation. |
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view
Usage Scenario
A VRRP backup group can be used to implement gateway redundancy without causing networking changes. The VRRP backup group uses the master device to forward traffic along an active link. One virtual IP address serves one separate user group, in which users have the same reliability requirements. This setting helps prevent the default gateway addresses from varying according to location changes of VRRP routers.
A VRRP backup group works in either master/backup or load balancing mode.Follow-up Procedure
After a VRRP backup group is configured, you can optimize VRRP performance by operations such as changing VRRP packet attributes or the interval at which VRRP packets are sent. This improves VRRP link stability.
Precautions
If the addresses of a VRRP backup group have all been deleted, the system automatically deletes the VRRP backup group.
The VRRP backup group to be configured as an LBRG must have been assigned a virtual IP address. After the interface learns ARP entries and the ARP entries age, ARP age probe packets to be sent carry this interface's IP address as the source IP address, not the virtual IP address. A maximum of 16 virtual IP addresses can be configured for each VRRP group.<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/1 [~HUAWEI-GigabitEthernet0/1/1] vrrp vrid 1 virtual-ip 10.10.10.10
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/1 [~HUAWEI-GigabitEthernet0/1/1] vrrp vrid 1 virtual-ip 10.10.10.11