Hi everyone,
In my LAN I have a switch (marked as two in the picture below) which is directly connected to the "main" router (marked as one) (which is linked to the modem); one of the ports of the switch is then connected to another router (marked as three) which functions as an access point. I was wondering: when data is sent to a device connected to router three, it has to pass through the switch, but how does the switch knows where to send it, since it only knows the mac address of router three and it doesn't deal with ip addresses? I have a simple diagram below which might help to understand my situation.
My thought was that in that case the switch kind of works as a hub and sends the data to every device, since it does not know who to send the data to, but I really don't know. Can anyone help?
This is the picture
In my LAN I have a switch (marked as two in the picture below) which is directly connected to the "main" router (marked as one) (which is linked to the modem); one of the ports of the switch is then connected to another router (marked as three) which functions as an access point. I was wondering: when data is sent to a device connected to router three, it has to pass through the switch, but how does the switch knows where to send it, since it only knows the mac address of router three and it doesn't deal with ip addresses? I have a simple diagram below which might help to understand my situation.
My thought was that in that case the switch kind of works as a hub and sends the data to every device, since it does not know who to send the data to, but I really don't know. Can anyone help?
This is the picture