Another VRRP question from me, I'm sorry. I'm really getting to know this topic at the moment and this subreddit has been a great help so far.
Let's say you have two routers (A + B) that were assigned to a single VRRP group with ID 1. Thus, the virtual MAC address should be 00-00-5E-00-01-01 and let the virtual IP address be 192.168.1.254. Router A is the current master.
The routers are both connected to a single switch on the LAN. At the switch, you have a client PC which was correctly configured to use the virtual router addresses.
Now, what exactly happens in case router A goes down? I understand from RFC 5798 how the election of the 2nd router to become the new master works, and thus that the traffic then goes over this device. But how does this work in detail?
I understand that the client PC made an ARP resolution of the virtual gateway IP 192.168.1.254 some time in the past. It thus already has the virtual MAC address 00-00-5E-00-01-01, nothing changes there. The point I'm missing is, how does the switch know that it should not forward the traffic on it's old switch port anymore?
I suppose the switching table says something like:
- Port 1 - MAC address client PC
- Port 2 - MAC address virtual router
00-00-5E-00-01-01 - Port 3 - MAC address virtual router
00-00-5E-00-01-01
Does the switch forward the traffic on both ports 2 + 3 all the time and then the backup router drops the traffic?
Or is my assumption about the switching table wrong and something changes on the switch once the backup router gets elected master?
Thanks in advance, once again!
No comments:
Post a Comment