Back to Lab Listing

Lab Objective:

Learn how to troubleshoot duplicate MAC addresses.

Lab Purpose:

You will have read in your study guide I’m sure that every MAC address should be unique. Each vendor is given a unique code (OUI) which comprises half of the MAC address, and it allocates the other half. Duplicate MAC address issues can arise if you buy cheap equipment from disreputable vendors or due to a configuration issue.

Packets need a MAC address in order to encapsulate a frame properly. Switches build a table of MAC addresses to ports. If the same MAC address is allocated to multiple ports, then either frame will be dropped or misdirected. Constant table rewrites on a switch may lead to its crashing.

Lab Tool:

Packet Tracer

Lab Topology:

Please use the following topology to complete this lab exercise:

duplicate mac address

Lab Walkthrough:

Task 1:

Drag three desktops. Connect them all with straight-through cables.

Task 2:

Add the IP addresses on the PCs as indicated. Here is the process for PC0:

duplicate mac address2

Task 3:

Copy-and-paste the MAC address from PC0 to PC1. Yours will differ from mine of course.

duplicate mac address3

duplicate mac address4

Task 4:

Ping from 192.168.1.1 to .3.

duplicate mac address5

Task 5:

Now check the MAC table on the switch. You will see the 3587 MAC address is associated with F0/1.

Switch#show mac-address-table

Mac Address Table

——————————————-

 

Vlan Mac Address Type Ports

—- ———– ——– —–

 

1 0004.9aac.3587 DYNAMIC Fa0/1

1 00d0.ba48.a838 DYNAMIC Fa0/3

Task 6:

Now ping 192.168.1.3 from 192.168.1.2.

duplicate mac address6

Task 7:

Check the MAC table on the switch again.

Switch#show mac-address-table

Mac Address Table

——————————————-

 

Vlan Mac Address Type Ports

—- ———– ——– —–

 

1 0004.9aac.3587 DYNAMIC Fa0/2

1 00d0.ba48.a838 DYNAMIC Fa0/3

Task 8:

You can repeat this lab, but with a sniffer attached to the switch (see next lab). You can capture ARP and ICMP to see the two different IP addresses claiming the same source MAC. You may need to clear the switch MAC table with the command clear mac-address-table.

duplicate mac address7

duplicate mac address8

Note:

If you see multiple MAC addresses associated with one port, it usually indicates a trunk interface connected to another switch (or possibly a hub).

Newsletter Subscribe

Stay Informed, Stay Inspired: Subscribe for Cutting-Edge IT-Certification Insights

101 Labs Newsletter