H3C Technologies H3C S12500 Series Switches User Manual
Page 175

164
# Set Switch C to operate in preemptive mode. The preemption delay is 5 seconds.
[SwitchC-Vlan-interface2] vrrp vrid 1 preempt-mode timer delay 5
[SwitchC-Vlan-interface2] quit
# Create track entry 1 to associate with the physical status of VLAN-interface 3 on Switch C. When
the track entry becomes negative, it means that the interface fails.
[SwitchC] track 1 interface vlan-interface 3
# Configure VF tracking to monitor track entry 1 and specify the value by which the weight
decreases, making the weight of Switch C 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.
[SwitchC] interface vlan-interface 2
[SwitchC-Vlan-interface2] vrrp vrid 1 weight track 1 reduced 250
[SwitchC-Vlan-interface2] quit
# Create track entries 2 and 3 to monitor Switch A and Switch B, respectively. If a track entry
becomes negative, it indicates that the corresponding switch fails.
[SwitchC] bfd echo-source-ip 1.2.3.4
[SwitchC] track 2 bfd echo interface vlan-interface 2 remote ip 10.1.1.2 local ip
10.1.1.4
[SwitchC] track 3 bfd echo interface vlan-interface 2 remote ip 10.1.1.3 local ip
10.1.1.4
# Configure VF tracking to monitor track entry 2. When track entry 2 becomes negative, the LVF
on Switch C whose corresponding AVF is on the switch with the IP address of 10.1.1.2
immediately becomes active. Switch C takes over the AVF on Switch A.
[SwitchC] interface vlan-interface 2
[SwitchC-Vlan-interface2] vrrp vrid 1 track 2 forwarder-switchover member-ip 10.1.1.2
# Configure VF tracking to monitor track entry 3. When track entry 2 becomes negative, the LVF
on Switch C whose corresponding AVF is on the switch with the IP address of 10.1.1.3
immediately becomes active. Switch C takes over the AVF on Switch B.
[SwitchC-Vlan-interface2] vrrp vrid 1 track 3 forwarder-switchover member-ip 10.1.1.3
4.
Verify the configuration:
After the configuration, Host A can ping the external network. To verify your configuration, use the
display vrrp verbose command.
# Display the detailed information of VRRP group 1 on Switch A.
[SwitchA-Vlan-interface2] display vrrp verbose
IPv4 Standby Information:
Run Mode : Load Balance
Run Method : Virtual MAC
Total number of virtual routers : 1
Interface Vlan-interface2
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)