The output shows that after Router A resumes normal operation, it becomes the master to forward packets
from Host A to Host B.
Multiple VRRP groups configuration example
To implement load sharing between the VRRP groups, manually configure the default gateway 10.1.1.1 1 1
for some hosts and 10.1.1.1 12 for the other on the subnet 10.1.1.0/24.
Network requirements
As shown in
mutual backup. VRRP group 1 uses the virtual IP address 10.1.1.1 1 1/24 to provide gateway service for
some hosts on the subnet 10.1.1.0/24. VRRP group 2 uses the virtual IP address 10.1.1.1 12/24 to provide
gateway service for the other hosts on the subnet.
Figure 17 Network diagram
Configuration procedure
1.
Configure Router A:
# Specify an IP address for Router A.
<RouterA> system-view
[RouterA] interface gigabitethernet 2/0/1
[RouterA-GigabitEthernet2/0/1] ip address 10.1.1.1 255.255.255.0
# Create VRRP group 1 and set its virtual IP address to 10.1.1.111.
[RouterA-GigabitEthernet2/0/1] vrrp vrid 1 virtual-ip 10.1.1.111
# Assign Router A a higher priority than Router B in VRRP group 1, so Router A can become the
master in the group.
[RouterA-GigabitEthernet2/0/1] vrrp vrid 1 priority 110
# Create VRRP group 2, and set its virtual IP address to 10.1.1.112.
[RouterA-GigabitEthernet2/0/1] vrrp vrid 2 virtual-ip 10.1.1.112
2.
Configure Router B:
# Specify an IP address for Router B.
<RouterB> system-view
Figure
17, Router A and Router B form two VRRP groups to implement load sharing and
38