How to recover VRRP and how to check VRRP status ?

Steven_zhangCreated at:Dec 11, 2019 11:21:00Updated at:Dec 11, 2019 11:21:05

In a practical application, we will connect two different ISPs to achieve router redundancy; the Topology will show as follow:

mceclip0.png

 

Since there is no loop when ECS4620 connects to the ISP, there's no need to disable the spanning-tree feature, and no need to connect a link between Master & Back-up switches, or set default route to each other. Instead, Master and Back up switches need to add a default route to their ISP.

 

VRRP Recover and Status

 

1. default

As normal situation, show vrrp brief as follow:

Master:

mceclip1.png

Back up:

mceclip2.png

 

If Master switch's port #1 link-down, Master switch's state will change to "Initial". 

mceclip3.png

At same time, Back up switch's state will change to "Master"

mceclip4.png

 

Then, when Master switch's port #1 recovers, Master switch will preempt the Master state back.

mceclip5.png

At same time, Back up switch's state will back to "Backup"

mceclip6.png

 

2. No preempt

If you don't want Master Switch to preempt back, you can use following commands:

R1(config)#interface vlan 11
R1(config-if)#no vrrp 1 preempt

Switch's Preempt status will change to "D" (Disabled).

In this situation, even Master switch's port #1 recover, 

mceclip7.png

Master switch still not preempt the "Master" state back

mceclip8.png

 

3. Preempt with delay time

If you still want Master take the Master state back, and just wait a delay time to make sure that the connection is stable, you can use following commands:

R1(config)#interface vlan 11
R1(config-if)#vrrp 1 preempt delay 30

You can assign delay time in <0-120> seconds, default is 0s.

In my example (30s), when Master switch port #1 recover within 30s, Master still in "Backup" state.

mceclip9.png

After connect 30s, Master switch preempt the "Master" state back.

mceclip10.png