2

Consider the following scenario:

Host B has IP 192.168.0.100 and host A has IP 192.168.0.110 and they are connected to a Layer 3 managed switch having IP 192.168.0.254 on a particular broadcast domain (lets say VLAN 10)

Theory 1 (which I believe to be false)

When B initially tries to ping 192.168.0.110. It will send an ARP request to FF:FF:FF:FF:FF:FF asking who has 192.168.0.110 and the switch will only flood this request on all ports in the VLAN, if and only if it doesn't have an ARP entry in its own ARP table showing the entry for 192.168.0.110. If it has such an entry it won't even forward the ARP request to Host A and will reply with the MAC address for 192.168.0.110 from its own ARP cache with the MAC address of A.

Theory 2 (Which I believe to be correct).

The switch will not intervene in the ARP process even if it has an ARP entry for the IP being queried for. If B (or any other host in this broadcast domain) sends an ARP request for 192.168.0.110 to FF:FF:FF:FF:FF:FF the switch will just broadcast it to the domain and let host A respond for itself to this ARP request. This will happen even if the switch as an ARP entry for A (192.168.0.110) in its own ARP table. The switches own ARP table is only for its own communication (from its IP 192.168.0.254) with the hosts in the VLAN, and it doesn't act like a caching ARP proxy as stipulated in Theory 1.

Which of the above scenarios is accurate? Do some switches actually behave in the manner described in Theory 1?

2 Answers 2

1

The switch, while a layer-3 switch, is only a layer-2 switch for a LAN. As a layer-2 switch, the switch doesn't get involved with the ARP request/reply, unless it is the target of the ARP request, or it is making the ARP request. Of note is that the SVI address of the layer-3 switch is just another host on the LAN, and it will update its layer-3 ARP cache when it sees the ARP request, but it will not actually interpose itself in the process between the two hosts.

The switch will also update its MAC address table for the LAN with any frame coming into any of its layer-2 interfaces.

1
  • Makes sense. Thanks for confirming. This basically means Theory 2 is correct. Jun 17, 2016 at 19:56
1

"theory 2" is how switches normally operate.

"theory 1" would be an optimisation hack. I know the BGP EVPN guys are doing local arp/nd interception to reduce BUM traffic. I have no idea if anyone is doing it in a plain Ethernet environment.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.