When a switch is powered on, it doesn't know where each end device is located on the network. Managed switches store the MAC addresses of devices in a special location called the CAM table.
To get a better idea of how the MAC addresses are stored within the CAM table, we'll use the following network topology to demonstrate:
![](https://static.packt-cdn.com/products/9781789340501/graphics/assets/99c1ab9a-56fd-440f-a5dc-98fce3056fbc.png)
At this point, the switch has now been powered on and doesn't know which devices are connected to which interfaces/ports, since the CAM table is empty:
![](https://static.packt-cdn.com/products/9781789340501/graphics/assets/54ddd445-0260-41fa-ac16-c98c785d0be5.png)
Let's assume PC1 wants to send a message to PC4. PC1 would build an Ethernet frame with its source MAC address as AA-AA, and PC4's MAC address of DD-DD as the destination.
Once sent to the switch, the source MAC address is recorded on Port 1, as follows:
![](https://static.packt-cdn.com/products/9781789340501/graphics/assets/1e18c250-665f-43d7-b311-7cbb5ee97ba1.png)
Since the switch doesn't have an entry for PC4 (DD-DD), it would send it out of all ports except Port 1 (as that...