R3204P16-HP Load Balancing Module High Availability Configuration Guide-6PW101

34
If LB A operates normally, packets sent from Host A to Host B are forwarded by LB A; if interface
Ten-GigabitEthernet 0/0.1 through which LB A connects to the internet is not available, packets sent
from Host A to Host B are forwarded by LB B.
Figure 23 Network diagram for interface tracking in VRRP
2. Configure LB A
<LB A> system-view
[LB A] interface Ten-GigabitEthernet 0/0.2
[LB A-Ten-GigabitEthernet0/0.2] ip address 202.38.160.1 255.255.255.0
# Create VRRP group 1 and configure its virtual IP address as 202.38.160.111.
[LB A-Ten-GigabitEthernet0/0.2] vrrp vrid 1 virtual-ip 202.38.160.111
# Set the priority of LB A in the VRRP group to 110.
[LB A-Ten-GigabitEthernet0/0.2] vrrp vrid 1 priority 110
# Configure the authentication mode of the VRRP group as simple and authentication key as hello.
[LB A-Ten-GigabitEthernet0/0.2] vrrp vrid 1 authentication-mode simple hello
# Configure the master to send VRRP packets every five seconds.
[LB A-Ten-GigabitEthernet0/0.2] vrrp vrid 1 timer advertise 5
# Set LB A to work in preemptive mode. The preemption delay is five seconds.
[LB A-Ten-GigabitEthernet0/0.2] vrrp vrid 1 preempt-mode timer delay 5
# Set the interface to be tracked.
[LB A-Ten-GigabitEthernet0/0.2] vrrp vrid 1 track interface Ten-GigabitEthernet 0/0.1
reduced 30
3. Configure LB B
<LB B> system-view
[LB B] interface Ten-GigabitEthernet 0/0.2
[LB B-Ten-GigabitEthernet0/0.2] ip address 202.38.160.2 255.255.255.0
# Create VRRP group 1 and configure its virtual IP address as 202.38.160.111.
[LB B-Ten-GigabitEthernet0/0.2] vrrp vrid 1 virtual-ip 202.38.160.111
# Configure the authentication mode of the VRRP group as simple and authentication key as hello.
[LB B-Ten-GigabitEthernet0/0.2] vrrp vrid 1 authentication-mode simple hello
# Configure the master to send VRRP packets every five seconds.