I have a simple question which is confusing me.
In a Lan setup we have let's say 2 workstations on the same subnet on VLAN-1 and we have a Router FastEthernet also connects on the Switch as the gateway for the same subnet.
So both PC's have their default gateway ( Router's FastEthernet- IP address). When 1-PC sends a traffic to PC # 2, does the traffic have to go to Router and once router sees it that everybody is on the same subnet I don't have to send it out and it justs forwards it to PC # 2. OR ...the switch because of the MAC-Address table ( Layer-2) gets the traffic from PC-1 and forwards it to PC # 2.
My confusion is because of default gateway given to PC's and switch of Router's FastEthernet does the packet touches the Default gateway ( Router) and gets send back to switch for PC # 2. Because in Layer-3 source/dest. IP addresses..and switch can't do that so Router has to decided where it goes...correct me if i am wrong...or i am not clear enough...