i tried to browse all available answers on this subject, but it's still not clear to me what a switch can or can't do.
I understand that when a host sends out a ping command, for instance ping 192.168.1.5, the switch will only look at the frames, since it is a very simple version of a switch that doesn't operate in layer 3. But in my case, when using this ping command i do get a response from another host, so it seems that the switch did some routing?
Also, when a host is sending a packet to another host on the same switch network, before the ARP process, how does the sending host know the recipient's MAC address in the first place, if they didn't communicate before?
Thanks for the answers!