Networking Requirements
Switch A is the master device in VRRP group 1 and the backup device in VRRP group 2.
Switch B is the master device in VRRP group 2 and the backup device in VRRP group 1.
Host A on the LAN uses the virtual IPv6 address of VRRP group 1 as the gateway address, and Host B uses the virtual IPv6 address of VRRP group 2 as the gateway address. The two VRRP groups load balance traffic and back up each other.

| Device | Interface | VLANIF interface | IP address |
| Switch A | GE1/0/0 | VLANIF100 | 2000::1/64 |
| GE2/0/0 | VLANIF200 | 2002::1/64 | |
| Switch B | GE1/0/0 | VLANIF100 | 2000::2/64 |
| GE2/0/0 | VLANIF400 | 2001::1/64 | |
| Switch C | GE1/0/1 | VLANIF200 | 2002::2/64 |
| GE1/0/2 | VLANIF400 | 2001::2/64 | |
| GE2/0/0 | VLANIF300 | 2003::2/64 |
Configuration Roadmap
The configuration roadmap is as follows:
Create VRRP group 1 and VRRP group 2 on VLANIF 100 of Switch A. Ensure that Switch A is the master device in VRRP group 1 and the backup device in VRRP group 2.
Create VRRP group 1 and VRRP group 2 on VLANIF 100 of Switch B. Ensure that Switch B is the backup device in VRRP group 1 and the master device in VRRP group 1.
Data Preparation
To complete the configuration, you need the following data:
IPv6 addresses of the interfaces
IDs and virtual IPv6 addresses of the VRRP groups
Priorities of the switches in each VRRP group
Procedure
Configure IP addresses for the interfaces. The configuration procedure is not mentioned here.
Configure OSPFv3 on Switch A, Switch B, and Switch C so that they can communicate with each other. The configuration procedure is not mentioned here.
Configure the hosts.
Set the default gateway address of Host A to 2000::10, which is the virtual IPv6 address of VRRP group 1. Set the default gateway address of Host B to 2000::60, which is the virtual IPv6 address of VRRP group 2. Set the default gateway address of Host C to 2003::2.
Configure VRRP6 groups.
# Create VRRP group 1 and VRRP group 2 on VLANIF 100 of Switch A. Set the priority of Switch A in VRRP group 1 to 120 so that Switch A becomes the master device in VRRP group 1. Use the default priority of Switch A in VRRP group 2 so that Switch A becomes the backup device in VRRP group 2.
<Quidway> system-view
[SwitchA] interface vlanif100
[SwitchA-Vlanif100] vrrp6 vrid 1 virtual-ip FE80::1 link-local
[SwitchA-Vlanif100] vrrp6 vrid 1 virtual-ip 2000::100
[SwitchA-Vlanif100] vrrp6 vrid 1 priority 120
[SwitchA-Vlanif100] vrrp6 vrid 2 virtual-ip FE80::2 link-local
[SwitchA-Vlanif100] vrrp6 vrid 2 virtual-ip 2000::60
[SwitchA-Vlanif100] quit# Create VRRP group 1 and VRRP group 2 on VLANIF 100 of Switch B. Use the priority of Switch B in VRRP group 1 to 120 so that Switch B becomes the backup device in VRRP group 1. Set the priority of Switch B in VRRP group 2 to 120 so that Switch B becomes the master device in VRRP group 2.
<Quidway> system-view
[Quidway] sysname SwitchB
[SwitchB] interface vlanif 100
[SwitchB-Vlanif100] vrrp6 vrid 1 virtual-ip FE80::1 link-local
[SwitchB-Vlanif100] vrrp6 vrid 1 virtual-ip 2000::100
[SwitchB-Vlanif100] vrrp6 vrid 2 virtual-ip FE80::2 link-local
[SwitchB-Vlanif100] vrrp6 vrid 2 virtual-ip 2000::60
[SwitchB-Vlanif100] vrrp6 vrid 2 priority 120
[SwitchB-Vlanif100] quit
5. Verify the configuration.
After the preceding configuration is complete, Host A and Host C can ping Host B successfully. Run the display vrrp6 command on Switch A, and you can find that VRRP group 1 and VRRP group 2 are created on Switch A. Switch A is the master device in VRRP group 1 and the backup device in VRRP group 2.
[SwitchA] display vrrp6
Vlanif100 | Virtual Router 1 State : Master
Virtual IP : FE80::1
2000::100
Master IP : 2000::1
PriorityRun : 120
PriorityConfig : 120
MasterPriority : 120
Preempt : YES Delay Time : 0
TimerRun : 100
TimerConfig : 100
Virtual Mac : 0000-5e00-0201
Uncheck hop limit : NO
Accept Mode : ON
Config type : normal-vrrp
Config track link-bfd down-number : 0
Vlanif100 | Virtual Router 2 State : Backup
Virtual IP : FE80::2
2000::60
Master IP : 2000::2
PriorityRun : 100
PriorityConfig : 100
MasterPriority : 120
Preempt : YES Delay Time : 0
TimerRun : 100
TimerConfig : 100
Virtual Mac : 0000-5e00-0102
Uncheck hop limit : NO
Accept Mode : ON
Config type : normal-vrrp
Config track link-bfd down-number : 0
Run the display vrrp6 command on Switch B, and you can find that VRRP group 1 and VRRP group 2 are created on SwitchB. Switch B is the backup device in VRRP group 1 and the master device in VRRP group 2.
[SwitchB] display vrrp6
Vlanif100 | Virtual Router 1 State : Backup
Virtual IP : FE80::1
2000::100
Master IP : 2000::1
PriorityRun : 100
PriorityConfig : 100
MasterPriority : 120
Preempt : YES Delay Time : 0
TimerRun : 100
TimerConfig : 100
Virtual Mac : 0000-5e00-0201
Uncheck hop limit : NO
Accept Mode : ON
Config type : normal-vrrp
Config track link-bfd down-number : 0
Vlanif100 | Virtual Router 2 State : Master
Virtual IP : FE80::2
2000::60
Master IP : 2000::2
PriorityRun : 120
PriorityConfig : 120
MasterPriority : 120
Preempt : YES Delay Time : 0
TimerRun : 100
TimerConfig : 100
Virtual Mac : 0000-5e00-0102
Uncheck hop limit : NO
Accept Mode : ON
Config type : normal-vrrp
Config track link-bfd down-number : 0
Configuration Files
Configuration file of Switch A
#
sysname SwitchA
#
vlan batch 100 200
#
ipv6
#
ospfv3 1
router-id 1.1.1.1
#
interface Vlanif100
ipv6 enable
ipv6 address 2000::1/64
vrrp6 vrid 1 virtual-ip FE80::1 link-local
vrrp6 vrid 1 virtual-ip 2000::100
vrrp6 vrid 1 priority 120
vrrp6 vrid 2 virtual-ip FE80::2 link-local
vrrp6 vrid 2 virtual-ip 2000::60
ospfv3 1 area 0.0.0.0
#
interface Vlanif200
ipv6 enable
ipv6 address 2002::1/64
ospfv3 1 area 0.0.0.0
#
interface GigabitEthernet1/0/0
port hybrid pvid vlan 100
port hybrid pvid untagged 100
#
interface GigabitEthernet2/0/0
port hybrid pvid vlan 200
port hybrid pvid untagged 200
#
returnConfiguration file of Switch B
#
sysname SwitchB
#
vlan batch 100 400
#
ipv6
#
ospfv3 1
router-id 2.2.2.2
#
interface Vlanif100
ipv6 enable
ipv6 address 2000::2/64
vrrp6 vrid 1 virtual-ip FE80::1 link-local
vrrp6 vrid 1 virtual-ip 2000::100
vrrp6 vrid 2 virtual-ip FE80::2 link-local
vrrp6 vrid 2 virtual-ip 2000::60
vrrp6 vrid 2 priority 120
ospfv3 1 area 0.0.0.0
#
interface Vlanif200
ipv6 enable
ipv6 address 2001::1/64
ospfv3 1 area 0.0.0.0
#
interface GigabitEthernet1/0/0
port hybrid pvid vlan 100
port hybrid pvid untagged 100
#
interface GigabitEthernet2/0/0
port hybrid pvid vlan 400
port hybrid pvid untagged 400
#
returnConfiguration file of Switch C
#
sysname SwitchC
#
vlan batch 200 300 400
#
ipv6
#
ospfv3 1
router-id 3.3.3.3
#
interface Vlanif200
ipv6 enable
ipv6 address 2002::2
ospfv3 1 area 0.0.0.0
#
interface Vlanif300
ipv6 enable
ipv6 address 2003::2/64
ospfv3 1 area 0.0.0.0
#
interface Vlanif400
ipv6 enable
ipv6 address 2001::2/64
ospfv3 1 area 0.0.0.0
#
interface GigabitEthernet1/0/1
port hybrid pvid vlan 200
port hybrid pvid untagged 200
#
interface GigabitEthernet1/0/2
port hybrid pvid vlan 300
port hybrid pvid untagged 300
#
interface GigabitEthernet2/0/0
port hybrid pvid vlan 300
port hybrid pvid untagged 300
#
return



