MIKE HIGGINBOTTOM

A Digital Garden - frequent growth but a bit weedy in the back corner

Redundant IP And MAC Addresses

In this scenario, both the IP address and the MAC address are redundant. Two devices will share both an IP address and a MAC address. @ref

Consider two routers sharing the IP address 10.0.0.1 and the MAC address 00:53:ff:ff:11:11 @ref

The hosts will still use the shared IP address as their default gateway, but in this example their ARP mapping will never need to change – the shared IP address 10.0.0.1 will always map to the shared MAC address 00:53:ff:ff:11:11 @ref

Despite the hosts’ ARP mapping never needing to be updated, Gratuitous ARP is still crucial. But not for the sake of updating the hosts’ ARP mapping, but for the sake of updating the switch’s MAC address table so the shared MAC address is associated with the correct port. Switches learn MAC address mappings from the Source MAC address of any received frame. @ref

Notice, as a router fails, the other router sends a Gratuitous ARP. The switch then updates its MAC address table with the new location of the device that owns the shared MAC address. @ref

The purpose is for the Switch to learn the new location of the shared MAC address. @ref

In this way, frames sent by the hosts addressed to 00:53:ff:ff:11:11 will always egress the correct switch port. @ref

First Hop Redundancy Protocols (FHRPs) like HSRP or VRRP use this exact strategy to enable both routers to share the same IP address and MAC address. Gratuitous ARP is instrumental to enable this type of functionality. @ref