Example for Configuring VRRP6 Backup Groups to Work in Multi-gateway Load Balancing Mode
In this example, two VRRP6 backup groups are configured to work in multi-gateway load balancing mode. Devices in the VRRP6 backup groups back up each other and load-balance traffic.
Networking Requirements
Hosts are connected to a network through gateway routers. To improve network reliability, configure a VRRP6 group to work in master/backup mode on gateway routers. If multiple VRRP6 backup groups run on a device, configure the backup groups to work in multi-gateway load balancing mode to load-balance traffic.
Device A functions as the master device in VRRP6 group 1 and the backup device in VRRP6 group 2.
Device B functions as the master device in VRRP6 group 2 and the backup device in VRRP6 group 1.
Host A uses the virtual IPv6 address of VRRP6 group 1 as a default gateway address, and host B uses the virtual IPv6 address of VRRP6 group 2 as a default gateway address. The two backup groups back up each other and load-balance traffic.
Interfaces 1 through 4 in this example represent GE 0/1/0, GE 0/2/0, GE 0/3/0, GE 0/4/0, respectively.
Configuration Roadmap
The configuration roadmap is as follows:
Assign an IPv6 address to each interface on each device and configure OSPFv3 to ensure network reachability.
Create VRRP6 backup groups 1 and 2 on Device A's GE 0/1/0.
Create VRRP6 backup groups 1 and 2 on Device B's GE 0/1/0.
Data Preparation
To complete the configuration, you need the following data:
IPv6 address of each interface on each device (for configuration details, see Configuration Files in this section)
VRRP6 group 1's virtual IPv6 address: 2001:db8::100; VRRP6 group 2's virtual IPv6 address: 2001:db8::60
Device A's priority in VRRP6 group 1: 120; Device B's priority in VRRP6 group 1: 100
Device B's priority in VRRP6 group 2: 120; Device A's priority in VRRP6 group 2: 100
Procedure
- Configure OSPFv3 on Device A, Device B, and Device C to ensure that they can communicate with each other. For configuration details, see Configuration Files in this section.
- Create VRRP6 backup groups.
# Assign an IPv6 address to GE 0/1/0 on Device A. Create VRRP6 backup groups 1 and 2 on GE 0/1/0. Set Device A's priority to 120 in VRRP6 group 1, and retain the default priority (100) for Device A in VRRP6 group 2.
<HUAWEI> system-view
[~HUAWEI] sysname DeviceA
[*HUAWEI] commit
[~DeviceA] interface gigabitethernet 0/1/0
[*DeviceA-GigabitEthernet0/1/0] undo shutdown
[*DeviceA-GigabitEthernet0/1/0] ipv6 enable
[*DeviceA-GigabitEthernet0/1/0] ipv6 address 2001:db8::1 64
[*DeviceA-GigabitEthernet0/1/0] vrrp6 vrid 1 virtual-ip fe80::1 link-local
[*DeviceA-GigabitEthernet0/1/0] vrrp6 vrid 1 virtual-ip 2001:db8::100
[*DeviceA-GigabitEthernet0/1/0] vrrp6 vrid 1 priority 120
[*DeviceA-GigabitEthernet0/1/0] vrrp6 vrid 2 virtual-ip fe80::2 link-local
[*DeviceA-GigabitEthernet0/1/0] vrrp6 vrid 2 virtual-ip 2001:db8::60
[*DeviceA-GigabitEthernet0/1/0] commit
[~DeviceA-GigabitEthernet0/1/0] quit
[~DeviceA] quit
# Assign an IPv6 address to GE 0/1/0 on Device B. Create VRRP6 backup groups 1 and 2 on GE 0/1/0. Set Device B's priority to 120 in VRRP6 group 2, and retain the default priority (100) for Device B in VRRP6 group 1.
<HUAWEI> system-view
[~HUAWEI] sysname DeviceB
[*HUAWEI] commit
[~DeviceB] interface gigabitethernet 0/1/0
[*DeviceB-GigabitEthernet0/1/0] undo shutdown
[*DeviceB-GigabitEthernet0/1/0] ipv6 enable
[*DeviceB-GigabitEthernet0/1/0] ipv6 address 2001:db8::2 64
[*DeviceB-GigabitEthernet0/1/0] vrrp6 vrid 1 virtual-ip fe80::1 link-local
[*DeviceB-GigabitEthernet0/1/0] vrrp6 vrid 1 virtual-ip 2001:db8::100
[*DeviceB-GigabitEthernet0/1/0] vrrp6 vrid 2 virtual-ip fe80::2 link-local
[*DeviceB-GigabitEthernet0/1/0] vrrp6 vrid 2 virtual-ip 2001:db8::60
[*DeviceB-GigabitEthernet0/1/0] vrrp6 vrid 2 priority 120
[*DeviceB-GigabitEthernet0/1/0] commit
[~DeviceB-GigabitEthernet0/1/0] quit
[~DeviceB] quit
- Verify the configuration.
After completing the configurations, ping host C from host A and host B. The pings are successful. Run the display vrrp6 verbose command on Device A. The command output shows that Device A serves as the master device in VRRP6 group 1 and as a backup device in VRRP6 group 2.
<DeviceA> display vrrp6 interface gigabitethernet0/1/0 verbose
GigabitEthernet0/1/0 | Virtual Router 1 State : Master Virtual IP : FE80::1 2001:DB8::100 Master IP : 2001:DB8::1 Local IP : 2001:DB8::1 PriorityRun : 120 PriorityConfig : 120 MasterPriority : 120 Preempt : YES Delay Time : 0s Remain : -- Hold Multiplier : 4 TimerRun : 100cs TimerConfig : 100cs Virtual MAC : 00e0-fc12-7890 Check hop limit : YES Config Type : Normal Create Time : 2013-07-27 20:15:46 Last Change Time : 2013-07-27 20:15:46 GigabitEthernet0/1/0 | Virtual Router 2 State : Backup Virtual IP : FE80::2 2001:DB8::60 Master IP : 2001:DB8::2 Local IP : 2001:DB8::1 PriorityRun : 100 PriorityConfig : 100 MasterPriority : 120 Preempt : YES Delay Time : 0s Remain : -- Hold Multiplier : 4 TimerRun : 100cs TimerConfig : 100cs Virtual MAC : 00e0-fc12-7880 Check hop limit : YES Config Type : Normal Create Time : 2013-07-27 20:17:46 Last Change Time : 2013-07-27 20:17:46
Run the display vrrp6 verbose command on Device B. The command output shows that Device B serves as the master device in VRRP6 group 2 and as a backup device in VRRP6 group 1.
<DeviceB> display vrrp6 interface gigabitethernet0/1/0 verbose
GigabitEthernet0/1/0 | Virtual Router 1 State : Backup Virtual IP : FE80::1 2001:DB8::100 Master IP : 2001:DB8::1 Local IP : 2001:DB8::2 PriorityRun : 100 PriorityConfig : 100 MasterPriority : 120 Preempt : YES Delay Time : 0s Remain : -- Hold Multiplier : 4 TimerRun : 100cs TimerConfig : 100cs Virtual MAC : 00e0-fc12-7890 Check hop limit : YES Config Type : Normal Create Time : 2013-07-27 20:19:46 Last Change Time : 2013-07-27 20:19:46 GigabitEthernet0/1/0 | Virtual Router 2 State : Master Virtual IP : FE80::2 2001:DB8::60 Master IP : 2001:DB8::2 Local IP : 2001:DB8::2 PriorityRun : 120 PriorityConfig : 120 MasterPriority : 120 Preempt : YES Delay Time : 0s Remain : -- Hold Multiplier : 4 TimerRun : 100cs TimerConfig : 100cs Virtual MAC : 00e0-fc12-7880 Check hop limit : YES Config Type : Normal Create Time : 2013-07-27 20:21:46 Last Change Time : 2013-07-27 20:21:46
Configuration Files
Device A configuration file
# sysname DeviceA # ospfv3 1 router-id 1.1.1.1 # interface GigabitEthernet0/1/0 undo shutdown ipv6 enable ipv6 address 2001:DB8::1/64 vrrp6 vrid 1 virtual-ip FE80::1 link-local vrrp6 vrid 1 virtual-ip 2001:DB8::100 vrrp6 vrid 1 priority 120 vrrp6 vrid 2 virtual-ip FE80::2 link-local vrrp6 vrid 2 virtual-ip 2001:DB8::60 ospfv3 1 area 0.0.0.0 # interface GigabitEthernet0/2/0 undo shutdown ipv6 enable ipv6 address 2001:DB8:1::1/64 ospfv3 1 area 0.0.0.0 # return
Device B configuration file
# sysname DeviceB # ospfv3 1 router-id 1.1.1.1 # interface GigabitEthernet0/1/0 undo shutdown ipv6 enable ipv6 address 2001:DB8::2/64 vrrp6 vrid 1 virtual-ip FE80::1 link-local vrrp6 vrid 1 virtual-ip 2001:DB8::100 vrrp6 vrid 2 virtual-ip FE80::2 link-local vrrp6 vrid 2 virtual-ip 2001:DB8::60 vrrp6 vrid 2 priority 120 ospfv3 1 area 0.0.0.0 # interface GigabitEthernet0/2/0 undo shutdown ipv6 enable ipv6 address 2001:DB8:2::1/64 ospfv3 1 area 0.0.0.0 # return
Device C configuration file
# sysname DeviceC # ospfv3 1 router-id 3.3.3.3 # interface GigabitEthernet0/3/0 undo shutdown ipv6 enable ipv6 address 2001:DB8:3::2/64 ospfv3 1 area 0.0.0.0 # interface GigabitEthernet0/2/0 undo shutdown ipv6 enable ipv6 address 2001:DB8:1::2 ospfv3 1 area 0.0.0.0 # interface GigabitEthernet0/4/0 undo shutdown ipv6 enable ipv6 address 2001:DB8:2::2/64 ospfv3 1 area 0.0.0.0 # return