H3C Technologies H3C SecBlade LB Cards User Manual
Page 55

47
[LBA] vrrp mode load-balance
# Create VRRP group 1 and configure its virtual IP address as 10.1.1.1.
[LBA] interface gigabitethernet0/1
[LBA-GigabitEthernet0/1] ip address 10.1.1.2 24
[LBA-GigabitEthernet0/1] vrrp vrid 1 virtual-ip 10.1.1.1
# Set the priority of LB A in VRRP group 1 to 120, which is higher than that of LB B (110) and that
of LB C (100), so that LB A can become the master.
[LBA-GigabitEthernet0/1] vrrp vrid 1 priority 120
# Configure LB A to operate in preemptive mode so that it can become the master whenever it
works properly. Configure the preemption delay as five seconds to avoid frequent status
switchover.
[LBA-GigabitEthernet0/1] vrrp vrid 1 preempt-mode timer delay 5
[LBA-GigabitEthernet0/1] quit
# Create track entry 1 to associate with the physical status of GigabitEthernet 0/2 on LB A. When
the track entry becomes negative, it means that the interface fails.
[LBA] track 1 interface gigabitethernet0/2
# Configure VF tracking to monitor track entry 1 and specify the value by which the weight
decreases, making the weight of LB A decrease by more than 245 (250 in this example) when
track entry 1 turns to negative. In such a case, another device with a higher weight can take over.
[LBA] interface gigabitethernet0/1
[LBA-GigabitEthernet0/1] vrrp vrid 1 weight track 1 reduced 250
2.
Configure LB B:
# Configure VRRP to operate in load balancing mode.
[LBB] vrrp mode load-balance
# Create VRRP group 1 and configure its virtual IP address as 10.1.1.1.
[LBB] interface gigabitethernet0/1
[LBB-GigabitEthernet0/1] ip address 10.1.1.3 24
[LBB-GigabitEthernet0/1] vrrp vrid 1 virtual-ip 10.1.1.1
# Set the priority of LB B in VRRP group 1 to 110, which is higher than that of LB C (100), so that
LB B can become the master when LB A fails.
[LBB-GigabitEthernet0/1] vrrp vrid 1 priority 110
# Set LB B to operate in preemptive mode and set the preemption delay to five seconds.
[LBB-GigabitEthernet0/1] vrrp vrid 1 preempt-mode timer delay 5
[LBB-GigabitEthernet0/1] quit
# Create track entry 1 to associate with the physical status of GigabitEthernet 0/2 on LB B. When
the track entry becomes negative, it means that the interface fails.
[LBB] track 1 interface gigabitethernet0/2
# Configure VF tracking to monitor track entry 1 and specify the value by which the weight
decreases, making the weight of LB B decrease by more than 245 (250 in this example) when
track entry 1 turns to negative. In such a case, another device with a higher weight can take over.
[LBB] interface GigabitEthernet0/1
[LBB-GigabitEthernet0/1] vrrp vrid 1 weight track 1 reduced 250
3.
Configure LB C:
# Configure VRRP to operate in load balancing mode.