Supposing we have a router (Internet box for example) with 2 switch connected on it.
We have a machine A on switch 1 and a machine B on switch 2.
The router wants to transmit a packet to machine A on switch 1. ARP is already resolved, so the packet will contain machine A destination MAC addresse.
How does a router know which switch to send this packet?