Switches store the MAC addresses in an internal database called MAC Address Table. The entries in that table can be addresses learned by the switch or that can be entered manually by the switch administrator. This table is analogy to a router's routing table, only a switch operates at layer 2 whereas the router operate at Layer 3.
A switch, unlike a hub, has memory large enough to automatically store and keep track of incoming source MAC addresses and the Ethernet port where they are arriving. It checks the destination MAC address of an incoming packet, searches its memory for a matching MAC address and routes the packet only to the ethernet port associated with that address. (A hub would send the incoming packet out to all its ethernet ports.)
MAC address stored in NIC card
Packets will be transmitted out of all switch ports except for the port where the packets were received. It's called flooding.
The source MAC address within a frame is used by the switch to associate a port with that MAC address. Frames are directed by the switch from one port to another based on the destination MAC address within the frame.
A switch would record multiple entries for a single switch port in its MAC address table if it does not contain the Mac address of a particular destination in the address table. It will broadcast to all ports besides the port where entry comes from.
address resolution protocol is used when the switch used to build the dynamic mac address table.
source mac address
The source MAC address
Switch working in Data link layer of OSI Model which is working my MAC address it is sending receiving packets by Mac address which switch make mac tale in RAM to save all information.
Source MAC address and source port
No. Hubs simply repeat all the Ethernet frames on all ports and do not interfere with the source or destination MAC addresses and as such do not need their own MAC address.
A switch uses MAC address to forward frames while a router uses IP addresses.
It will broadcast to every port in the vlan.