H3C Technologies H3C SecBlade LB Cards User Manual
Page 73
65
# 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 ipv6 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 ipv6 vrid 1 preempt-mode timer delay 5
# Enable LB A to send RA messages so that hosts in network segment 1::/64 can learn the default
gateway address.
[LBA-GigabitEthernet0/1] undo ipv6 nd ra halt
[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 router with a higher weight can take over.
[LBA] interface gigabitethernet0/1
[LBA-GigabitEthernet0/1] vrrp ipv6 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 IPv6 addresses as FE80::10 and 1::10.
[LBB] interface gigabitethernet0/1
[LBB-GigabitEthernet0/1] ipv6 address fe80::2 link-local
[LBB-GigabitEthernet0/1] ipv6 address 1::2 64
[LBB-GigabitEthernet0/1] vrrp ipv6 vrid 1 virtual-ip fe80::10 link-local
[LBB-GigabitEthernet0/1] vrrp ipv6 vrid 1 virtual-ip 1::10
# 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 ipv6 vrid 1 priority 110
# Set LB B to operate in preemptive mode. The preemption delay is five seconds.
[LBB-GigabitEthernet0/1] vrrp ipv6 vrid 1 preempt-mode timer delay 5
# Enable LB B to send RA messages, so that hosts in network segment 1::/64 can learn the default
gateway address.
[LBB-GigabitEthernet0/1] undo ipv6 nd ra halt
[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 router with a higher weight can take over.
[LBB] interface gigabitethernet0/1
[LBB-GigabitEthernet0/1] vrrp ipv6 vrid 1 weight track 1 reduced 250