Hello Quirik
Indeed this post requires a deeper explanation. I went in to lab this up to get a deeper understanding of how these MAC addresses populate the MAC address table. You will see such duplication of MAC addresses whenever you have a trunk between two switches.
I created a topology where there were seven VLANs created on two switches (SW2, and SW3), and all of those VLANs are sent over a trunk connection between the two switches. The trunk connection goes across the Gi0/1 interface on both switches. Take a look at the MAC address table of SW3:
SW3#show mac address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
1 5254.000b.225e DYNAMIC Gi0/0
1 5254.0010.949f DYNAMIC Gi0/1
1 5254.0010.defe DYNAMIC Gi0/1
1 5254.0011.337a DYNAMIC Gi0/1
1 5254.0012.4282 DYNAMIC Gi0/1
10 5254.0011.337a DYNAMIC Gi0/1
20 5254.0011.337a DYNAMIC Gi0/1
30 5254.0011.337a DYNAMIC Gi0/1
40 5254.0011.337a DYNAMIC Gi0/1
50 5254.0011.337a DYNAMIC Gi0/1
60 5254.0011.337a DYNAMIC Gi0/1
Total Mac Addresses for this criterion: 11
SW3#
Notice that we have the same MAC address of 5254.0011.337a
for every VLAN. What is this MAC address? Well, it’s the MAC address of the Gi0/1 interface of SW2. Note the following:
SW2#show inter gi 0/1
GigabitEthernet0/1 is up, line protocol is up (connected)
Hardware is iGbE, address is 5254.0011.337a (bia 5254.0011.337a)
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
So, although in general it is considered a hard and fast rule that you cannot have multiple entries of MAC addresses within a MAC address table of a switch, the only exception to this rule is when you consider the MAC address of the port on the switch connected to your trunk. These entries are typically installed due to various control plane communications that take place using several different protocols, including CDP, STP, VTP and DTP to name a few.
The MAC address table will be populated only when there is traffic. Even if you have hosts in various VLANs, if there is no traffic to and from these devices, no additional entries will appear.
I hope this has been helpful!
Laz