Study FAQ
How does an Ethernet switch learn MAC addresses and handle an unknown destination?
Also asked as 2
- What does a switch do with the source MAC and an unknown destination MAC?
- Why is an unknown unicast frame flooded only within its VLAN?
Answer
An Ethernet switch learns a frame's source MAC address on its incoming port in the frame's VLAN. It then looks up the destination MAC in that VLAN. A known unicast destination identifies the forwarding port. With ordinary unknown unicast flooding, a destination missing from the table causes a copy to go to the other eligible forwarding ports in the VLAN.
For example, when host A first sends to host B and the switch has no entry for B, A's frame can reach B through flooding. When B transmits, the switch can learn B's source MAC on B's port. Later frames for B can use that port directly. Broadcast is a separate case that also reaches eligible ports within the broadcast domain.
VLAN membership and port forwarding state determine which ports can receive a flooded frame. A feature such as Unknown Unicast Flood Block can further restrict flooding on a supported AOS-CX port. A MAC table entry for A means a frame from A was seen there, which is weaker evidence than observing a reply from B or confirming an end-to-end application exchange.
References
Full explanation
HPE6-A86: Following an Ethernet Packet Through the Network Layers
Study guide · HPE6-A86
Read the full explanation