Layer 2 Switch – MAC Address Table and Frame Forwarding with Hub

ciscoethernetswitch

Frame Forwarding by Layer 2 switch

My apologies if this is not the right forum to ask this, but I am a newbie when it comes to networking. I am currently going through the CISCO Networking Essentials course, and one of the Activities in the second module left me confused. Basically computers with MAC addresses 0E and 0F are both connected to a hub, which connects to a single Layer 2 switch port (Fa9). The question starts with the assumption that a MAC address table entry already exists for 0E (Fa9) but none yet for 0F. If computer with MAC 0E were to address a frame to computer with MAC 0F, how would that ever reach its destination? As I understand it, the switch, not "seeing" 0F in its table would flood the frame out all connected ports except Fa9 (incoming), but that means the frame will never exit via Fa9, so how is computer with MAC 0F ever supposed to receive the frame?

Thanks in advance for your help.

Best Answer

A hub simply repeats electric signals received on a one interface out of all other interfaces. So device 0F, as well as the switch, will receive the frame. In that case the switch will not forward the frame out the same port it received it on, but it doesn't matter since 0F already received it. Regarding learning of 0F - The switch will eventually learn 0F's address once 0F sends a frame.