26
Figure 11 Network diagram
Configuration procedure
1. Configure Router A:
# Configure VRRP to operate in load balancing mode.
<RouterA> system-view
[RouterA] vrrp mode load-balance
# Create VRRP group 1, and set its virtual IP address to 10.1.1.1.
[RouterA] interface gigabitethernet 1/0
[RouterA-GigabitEthernet1/0] ip address 10.1.1.2 24
[RouterA-GigabitEthernet1/0] vrrp vrid 1 virtual-ip 10.1.1.1
# Assign Router A the highest priority in VRRP group 1, so Router A can become the master.
[RouterA-GigabitEthernet1/0] vrrp vrid 1 priority 120
# Configure Router A to operate in preemptive mode, so it can become the master whenever it
operates correctly. Set the preemption delay to 5 seconds to avoid frequent status switchover.
[RouterA-GigabitEthernet1/0] vrrp vrid 1 preempt-mode delay 5
[RouterA-GigabitEthernet1/0] quit
# Create track entry 1 to monitor the upstream link status of GigabitEthernet 2/0. When the
upstream link fails, the track entry transits to Negative.
[RouterA] track 1 interface ethernet 1/2
# Configure the VFs in VRRP group 1 to monitor track entry 1, and decrease their weights by 250
when the track entry transits to Negative.
[RouterA] interface gigabitethernet 1/0
[RouterA-GigabitEthernet1/0] vrrp vrid 1 weight track 1 reduced 250
2. Configure Router B:
Host A Host B Host C
Router A Router B Router C
GE1/0
IP: 10.1.1.2/24
VIP: 10.1.1.1/24
Network
GE1/0
IP: 10.1.1.3/24
VIP: 10.1.1.1/24
GE1/0
IP: 10.1.1.4/24
VIP: 10.1.1.1/24
Master
AVF 1
Backup
AVF 2
Backup
AVF 3
IP: 10.1.1.5/24
Gateway IP: 10.1.1.1/24
IP: 10.1.1.6/24
Gateway IP: 10.1.1.1/24
IP: 10.1.1.7/24
Gateway IP: 10.1.1.1/24
GE2/0
GE2/0
GE2/0