< Home

Configuring a VRRP Group

Context

A VRRP group can virtualize multiple devices into one gateway and set the next hop address of the default route on the host to the IP address of the virtual gateway to implement gateway backup without changing the networking. After a VRRP group is configured, traffic is forwarded through the master. If the master fails, a new master is selected from the backups to forward traffic. This implements gateway backup.

You can perform the following steps to implement basic configurations of a VRRP group. For other configurations and precautions of a VRRP group, see VRRP Configuration.

When multiple VRRP groups are configured on a device, you are advised to set the same parameters for the VRRP groups to ensure that the VRRP groups have the same status. If the VRRP groups are in different states, services on the VRRP groups that are not bound to HSB will be affected after a master/backup switchover is performed on the VRRP groups that are bound to HSB.

Procedure

  • Configure an IPv4 VRRP group.
    1. Run system-view

      The system view is displayed.

    2. Run interface vlanif vlan-id

      The VLANIF interface view is displayed.

    3. Run vrrp vrid virtual-router-id virtual-ip virtual-address

      The IPv4 VRRP group is created, and a virtual IP address is configured.

      By default, no IPv4 VRRP group is created.

    4. Run vrrp vrid virtual-router-id priority priority-value

      The priority of a device in the IPv4 VRRP group is configured.

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

  • Configure an IPv6 VRRP group.
    1. Run system-view

      The system view is displayed.

    2. Run ipv6

      The IPv6 function is enabled globally.

    3. Run interface vlanif vlan-id

      The VLANIF interface view is displayed.

    4. Run ipv6 enable

      The IPv6 service is enabled on the interface.

    5. Run vrrp6 vrid virtual-router-id virtual-ip virtual-ipv6-address [ link-local ]

      An IPv6 VRRP group is created, and a virtual IPv6 address is configured.

      By default, no IPv6 VRRP group is configured on a device.

    6. Run vrrp6 vrid virtual-router-id priority priority-value

      The priority of a device in an IPv6 VRRP group is configured.

      By default, the priority of a device in an IPv6 VRRP group is 100.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >