This is always the case when routing between subnets.
If routing locally inside the same broadcast domain (bunch of hosts connected to a switch) everything is known locally by the switch (in it's cam table <database of known mac addresses learnt from the network>) and all of the hosts use ARP to learn about each other's MAC addresses, so all the information required to communicate is present.
However, if routing to a different network we need to route at layer-3 (via a router) the host can't send traffic directly to the host because it's remote - it needs to do it via a gateway (router) therefore, instead of the final destination host MAC address in the layer-2 header, the layer-2 destination address of the router's gateway interface is used - so the packet flows directly to the router.
The MAC address of the router would be learnt by the host via ARP.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.