How to configure a virtual address of VRRP on an AR router

3

How to configure a virtual address of VRRP on an AR router?
The vrrp vrid virtual-router-id virtual-ip virtual-address command is used to create a VRRP group and specify a virtual IP address for the group.
The vrid virtual-router-id command is used to specify a VRRP group number which is an integer in the range from 1 to 255.
The virtual-ip virtual-address command is used to specify a virtual IP address (dotted decimal notation) for the VRRP group.

[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] vrrp vrid 1 virtual-ip 10.10.10.10 //Create a VRRP group on GE1/0/0. The group number is 1, and the virtual IP address is 10.10.10.10.

Other related questions:
How to create the virtual MAC address of the VRRP on the AR router
The virtual MAC address is generated based on the virtual router ID. The format is 00-00-5E-00-01-{VRID}(VRRP); 00-00-5E-00-02-{VRID}(VRRP6).

Example of configuring VRRP active/standby backup on an AR router
The roadmap of configuring VRRP active/standby backup on an AR router to implement gateway redundancy is as follows: 1. Configure IP addresses and routing protocols for different device interfaces to enable network-layer connection among different devices. 2. Configure a VRRP group on Router A and Router B, respectively. Configure a high priority and set preemption delay to 20s on Router A and configure Router A as a master device to bear and forward traffic. Configure a low priority and configure Router B as a backup device to implement gateway redundancy. Configure a VRRP group. # Create VRRP 1 on Router A, set its priority to 120, and set the preemption delay to 20s. [RouterA] interface gigabitethernet 2/0/0 [RouterA-GigabitEthernet2/0/0] vrrp vrid 1 virtual-ip 10.1.1.111 //Configure a virtual IP address. [RouterA-GigabitEthernet2/0/0] vrrp vrid 1 priority 120 //Set priority to 120. [RouterA-GigabitEthernet2/0/0] vrrp vrid 1 preempt-mode timer delay 20 //Set the preemption delay to 20s. [RouterA-GigabitEthernet2/0/0] quit # Create VRRP 1 on Router B, and set its priority to a default value 100. [RouterB] interface gigabitethernet 2/0/0 [RouterB-GigabitEthernet2/0/0] vrrp vrid 1 virtual-ip 10.1.1.111 [RouterB-GigabitEthernet2/0/0] quit For details about the configuration, see the URL: Example for Configuring a VRRP Group in Active/Standby Mode.

Number of virtual IP addresses of VRRP groups that can be configured on the USG6000
Example for configuring VRRP load balancing (configuring multiple virtual IP addresses) Requirements: USG_A serves as the Master of VRRP group 1 and the Backup of VRRP group 2. USG_B serves as the Master of VRRP group 2 and the Backup of VRRP group 1. On the internal network, HostA uses VRRP group 1 as the gateway, and HostC uses VRRP group 2 as the gateway. This helps implement load balancing and mutual backup. Configuration roadmap 1. Create two VRRP groups at GigabitEthernet 0/0/2 of USG_A. USG_A serves as the Master of VRRP group 1 and the Backup of VRRP group 2. 2. Create two VRRP groups at GigabitEthernet 0/0/2 of USG_B. USG_B serves as the Backup of VRRP group 1 and the Master of VRRP group 2. Operation steps 1. Configure VRRP. # Configure GigabitEthernet0/0/2 on USG_A, create VRRP group 1, and set the priority of USG_A in VRRP group 1 to 105 (as the Master). Create VRRP group 2 and set the priority of USG_A in VRRP group 2 to the default value 100 (as the Backup). system-view [USG_A] vrrp mode [USG_A] interface GigabitEthernet 0/0/2 [USG_A-GigabitEthernet0/0/2] ip address 10.1.1.1 24 [USG_A-GigabitEthernet0/0/2] vrrp vrid 1 virtual-ip 10.1.1.111 [USG_A-GigabitEthernet0/0/2] vrrp vrid 1 priority 105 [USG_A-GigabitEthernet0/0/2] vrrp vrid 2 virtual-ip 10.1.1.112 # Configure GigabitEthernet0/0/2 on USG_B, create VRRP group 1, and set the priority of USG_B in VRRP group 1 to the default value `100 (as the Backup). Create VRRP group 2 and set the priority of USG_B in VRRP group 2 to 105 (as the Master). system-view [USG_B] vrrp mode [USG_B] interface GigabitEthernet 0/0/2 [USG_B-GigabitEthernet0/0/2] ip address 10.1.1.2 24 [USG_B-GigabitEthernet0/0/2] vrrp vrid 1 virtual-ip 10.1.1.111 [USG_B-GigabitEthernet0/0/2] vrrp vrid 2 virtual-ip 10.1.1.112 [USG_B-GigabitEthernet0/0/2] vrrp vrid 2 priority 105

How is a VRRP virtual MAC address calculated
A virtual MAC address is generated by the virtual router based on the virtual router ID. The virtual MAC address format is 00-00-5E-00-01-{VRID} (VRRP) and 00-00-5E-00-02-{VRID} (VRRP6).

Configuring virtual IP addresses of VRRP groups on the USG6000
Configuring virtual IP addresses of VRRP groups on the USG6000 sys //Access the system view. [USG6600-1] int g1/0/9 //Access the Layer 3 interface. [USG6600-1-GigabitEthernet1/0/9]ip add 1.1.1.1 24 //Configure the interface IP address. [USG6600-1-GigabitEthernet1/0/9]vrrp vrid 1 virtual-ip 1.1.1.254 active (virtual IP address of the VRRP group) //Configure the virtual IP address of the VRRP group.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top