I have got few doubts in switching.
Switches do broadcast (ARP) first time to learn the destination mac address & store it in the mac-address table.Next time if any packet comes from the same source to same destination it'll not do broadcast,it'll look into the mac-table & send it to the destination directly (unicast).
if the destination is not availabl then it'll send it to the default-gateway.
My Question is,
1. How will the switch know whether this packet has to send it to the default gateway or not?
2. Will Switch maintain the destination adress as the mac-address of default-gateway for all the hosts in different subnet.
3.What will happen if we move the host from one switch to another switch (same subnet)within the MAX-age timer expires.
Also please point me to some good links which will explain in depth of switching technology.
Thanks in advance