How does a switch learn MAC Addresses

Rene,

You stated in a earlier post the following:
The switch is a pretty “dumb” box…it only cares about a couple of things:

When it receives an ethernet frame and it didn’t see the source MAC address before, it is stored in the mac address table.
If the destination MAC address is known, it forwards it out of the correct interface.
If the destination MAC address is unknown, it is flooded on all ports (except the one where it came from).
If the destination MAC address is a broadcast, it is flooded on all ports (except the one it came from).

Here is an explanation from the Cisco book "Incoming frames also include the destination MAC address. Again, the switch looks up this address in the address table, hoping to find the switch port and VLAN where the destination address is attached. If it is found, the frame can be forwarded out the corresponding switch port. If the address is not found in the table, the switch must take more drastic action: The frame is forwarded in a “best effort” fashion by flooding it out all switch ports assigned to the source VLAN.

I am a little confused. Will destination MAC address get flooded on all ports or flooding out all switch ports assigned to the source VLAN?