Delaying Preemption
-
The node of the master VIP goes down. In this case, the backup VIP takes over as the master VIP after the dead interval set on the backup VIP’s node.
-
The priority of the master VIP is set to zero. The backup VIP takes over as the master VIP after the dead interval set on the backup VIP’s node.
Example: Delaying Preemption
| Entity and Parameters | Settings on NS1 | Settings on NS2 |
|---|---|---|
| VIP1 (for reference purposes only) | IP address: 192.0.1.10, VRID: 10, Priority: 100, Preemption: Enabled, Preemption delay time: 1000 seconds | IP address: 192.0.1.10, VRID: 10, Priority: 200, Preemption: Enabled, Preemption delay time: 2000 seconds |
| Dead Interval | 1 Seconds | 2 Seconds |
-
If the priority of VIP1 on NS1 is set to a value (for example, 210) higher than that of VIP1 on NS2, VIP1 on NS1 takes over as master after its set preemption delay time (1000 secs).
-
If a third node NS3 with the following VRRP settings is added to this deployment, VIP1 on NS3 becomes master after its set preemption delay time (3000 secs).
-
VIP1
-
VRID: 30
-
IP address:
-
Priority = 300
-
Preemption delay time = 3000 seconds
-
-
-
If NS2 goes down, VIP1 on NS1 takes over as master after 1 second (set dead interval on NS1). Preemption delay time for VIP1 on NS1 does not apply in this case.
-
If NS2 goes down and NS1 restarts, VIP1 on NS1 becomes master 1 second (set dead interval on NS1) after NS1 comes up. Preemption delay time for VIP1 on NS1 does not apply in this case.
-
If the priority of VIP1 on NS2 is set to zero, VIP1 goes to standby mode. VIP1 on NS1 takes over as master after 1 second (set dead interval on NS1). Preemption delay time for VIP1 on NS1 does not apply in this case.
Configuring Delay Preemption for IPv4 Active-Active Mode
-
To set the preemption delay time while adding a virtual MAC, at the command prompt, type:
-
add vrID \<id> -preemptiondelaytimer \<secs>
-
show vrID
-
-
To set the preemption delay time while modifying a virtual MAC, at the command prompt, type:
-
set vrID \<id> -preemptiondelaytimer \<secs>
-
show vrID
-
-
Navigate to System > Network > VMAC.
-
On the VMAC tab. While adding a new virtual MAC, or editing an existing virtual MAC, set the Preemption Delay Timer parameter.
Settings on NS1
> set vrid param –deadInterval 1
Done
> add ns ip 192.0.1.10 255.255.255.255 –type VIP
Done
> add vrid 10 –Priority 100 –Preemption Enable –preemptiondelaytimer 1000
Done
> bind ns ip 192.0.1.10 255.255.255.255 –vrid 10
Done
Settings on NS2
> set vrid param –deadInterval 2
Done
> add ns ip 192.0.1.10 255.255.255.255 –type VIP
Done
> add vrid 20 –Priority 200 –Preemption Enable –preemptiondelaytimer 2000
Done
> set ns ip 192.0.1.10 255.255.255.255 –vrid 10
Done
Configuring Delay Preemption for IPv6 Active-Active Mode
-
To set the preemption delay time while adding a virtual MAC6, at the command prompt, type:
-
add vrID6 \<id> -preemptiondelaytimer \<secs>
-
show vrID6
-
-
To set the preemption delay time while modifying a virtual MAC6, at the command prompt, type:
-
set vrID6 \<id> -preemptiondelaytimer \<secs>
-
show vrID6
-
-
Navigate to System > Network > VMAC.
-
On the VMAC6 tab. While adding a virtual MAC6 address, or editing an existing virtual MAC6 address, set the Preemption Delay Timer parameter.