H3C Technologies H3C SecBlade LB Cards User Manual
Page 56
48
[LBC] vrrp mode load-balance
# Create VRRP group 1 and configure its virtual IP address as 10.1.1.1.
[LBC] interface gigabitethernet0/1
[LBC-GigabitEthernet0/1] ip address 10.1.1.4 24
[LBC-GigabitEthernet0/1] vrrp vrid 1 virtual-ip 10.1.1.1
# Set LB C to operate in preemptive mode and set the preemption delay to five seconds.
[LBC-GigabitEthernet0/1] vrrp vrid 1 preempt-mode timer delay 5
[LBC-GigabitEthernet0/1] quit
# Create track entry 1 to associate with the physical status of GigabitEthernet 0/2 on LB C. When
the track entry becomes negative, it means that the interface fails.
[LBC] 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 C 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.
[LBC] interface gigabitethernet0/1
[LBC-GigabitEthernet0/1] vrrp vrid 1 weight track 1 reduced 250
[LBC-GigabitEthernet0/1] quit
4.
Verify the configuration:
After the configuration, Host A can ping the external network. To verify the configuration, use the
display vrrp verbose command.
# Display the detailed information about VRRP group 1 on LB A.
[LBA-GigabitEthernet0/1] display vrrp verbose
IPv4 Standby Information:
Run Mode : Load Balance
Run Method : Virtual MAC
Total number of virtual routers : 1
Interface GigabitEthernet0/1
VRID : 1 Adver Timer : 1
Admin Status : Up State : Master
Config Pri : 120 Running Pri : 120
Preempt Mode : Yes Delay Time : 5
Auth Type : None
Virtual IP : 10.1.1.1
Member IP List : 10.1.1.2 (Local, Master)
10.1.1.3 (Backup)
10.1.1.4 (Backup)
Forwarder Information: 3 Forwarders 1 Active
Config Weight : 255
Running Weight : 255
Forwarder 01
State : Active
Virtual MAC : 000f-e2ff-0011 (Owner)
Owner ID : 0000-5e01-1101
Priority : 255
Active : local
Forwarder 02