What Happens when there are duplicate MAC Addresses. How many MAC Addresses can a Switch learn?

Home > Blogs > Cisco > What Happens when there are duplicate MAC Addresses. How many MAC Addresses can a Switch learn?

What Happens when there are duplicate MAC Addresses. How many MAC Addresses can a Switch learn?

Like This Blog 0 Mark Jacob
Added by February 29, 2016

This post is from our Cisco CCNA Training Course.

Instructor Mark Jacob was presenting a Q&A Session in our ICND1 CCNA class and answered a question regarding MAC Addresses and when they get associated to devices.


Transcription:

What issues arise if there are duplicate MAC addresses?

MAC addresses are important. Let’s say I’m a PC and I have another PC next to me that is in the same network that I’m in and I want to communicate with it. Let’s go back to the old standby “PING”. I want to ping that device. That means in order for me to ping that device, I have to determine that device’s MAC address.

How do I do that? I use the ARP process. I say, “Who’s the IP address that has this MAC address?” They reply back to me, and all is well.

However, what if the MAC address that that other endpoint has is exactly the same as mine?

I’m going to have a problem in the fact that I feel like I’m talking to myself.

I have a topology here if I can bring it live ‑‑ let’s say that I have two IP endpoints and you’ll notice that they are both plugged in to a switch.

001-CCNA-ICND1-duplicate-MAC-addresses

It turns out if one of these computers try’s to perform an ARP process to determine the MAC address of the far side, that machine will answer. But we have an intervening network device here. It’s a  Layer 2 Switch.

The Layer 2 switch passively learns MAC addresses by listening. It will have learned the MAC addresses of these two endpoints. If by some chance both of these machines claim to have duplicate MAC addresses, the switch will not know what to do with that traffic.

In fact, if I added a router to this picture. Let’s say these two people were users, and they were working for a company, and needed to browse for the Internet, as soon as both machines were live and claiming to have the same MAC address, they would have an issue.

That’s if they’re on the same network. That’s the real extent of a MAC address is, it only really matters within the same network.

How far reaching is the MAC address? That is, when does it cease to have network meaning?

002-CCNA-ICND1-duplicate-MAC-addresses

If the PC on the left in this picture is in a different network, or let’s say VLAN, from the PC on the right, it’s not as consequential, although the real problem here is they’re on the same switch. That is the extent of the network.

If I have a router connected to a router connected to a router and so on…

003-CCNA-ICND1-duplicate-MAC-addresses

And if there’s a packet flying through this network.

004-CCNA-ICND1-duplicate-MAC-addresses

This packet is flying through the network. These are like hops. That’s the actual word for it, but I imagine it like stones as you’re walking across a stream.

005-CCNA-ICND1-duplicate-MAC-addresses

Make sure you step on the stones. I can only step as far as to the next stone.

Similarly with a MAC address, this interface here has a MAC address on it. This interface has a MAC address on it.

006-CCNA-ICND1-duplicate-MAC-addresses

You can imagine, in fact let’s give a source here, here’s somebody in their house trying to browse Google.

008-CCNA-ICND1-duplicate-MAC-addresses

It turns out that whoever’s sitting here in their little house, and they’re typing Google.com, they go to their edge device, then it starts the path across to Google.

It turns out if you follow this, the source of this information (SIP) is that guy in his house. The Destination IP (DIP) is always Google. That never changes. All the way along this hop, by hop, by hop process, the MAC addresses, they do change.

There’s our packet moving. It stops the source MAC address as it stops right there, because it’s going to the right, is that interface.

009-CCNA-ICND1-duplicate-MAC-addresses

The destination MAC address is that one. If it moves again now the source MAC is here and the Destination MAC is here.

010-CCNA-ICND1-duplicate-MAC-addresses

Bottom line answer, how far reaching is a MAC address, is it only matters at Layer 2. You can ask it this way, “Does the Google server have a MAC address?” Sure. Will the guy sitting here in this house ever learn the MAC address of Google’s server? No, neither does he care. It’s some Layer 2 area that he’s not connected to, so it’s inconsequential to him.

How Many MAC Addresses can be learned by a Switch?

Quick answer is, that depends on how much money you spent when you bought the thing, because higher‑end switches can support more and learn more MAC addresses.

I have a live piece of equipment here,  Switch 1.

011-CCNA-ICND1-duplicate-MAC-addresses

Let’s do the Show MAC Address‑Table, count, [sh mac-address-table count]

012b-CCNA-ICND1-duplicate-MAC-addresses

It says the maximum number of MAC addresses that it can learn is 8,192 MAC addresses.

012-CCNA-ICND1-duplicate-MAC-addresses

Again, depending on whatever hardware you’re using, that number could go up, could go down, but that’s hardware dependent. There’s no set number that a switch has to be able to support.

The idea there is ‑‑ and in fact, I do demonstrations like this when I do a live class ‑‑ is if you overrun or exceed the ability of the switch to learn more MAC addresses, you essentially turn it into a hub. Take a nice expensive switch and tell it, “Hey, just send everything out of every port.” which can be a security risk.

Mark Jacob
Cisco and CompTIA Network + Instructor – Interface Technical Training
Phoenix, AZ

Videos You May Like

A Simple Introduction to Cisco CML2

0 3894 0

Mark Jacob, Cisco Instructor, presents an introduction to Cisco Modeling Labs 2.0 or CML2.0, an upgrade to Cisco’s VIRL Personal Edition. Mark demonstrates Terminal Emulator access to console, as well as console access from within the CML2.0 product. Hello, I’m Mark Jacob, a Cisco Instructor and Network Instructor at Interface Technical Training. I’ve been using … Continue reading A Simple Introduction to Cisco CML2

Creating Dynamic DNS in Network Environments

0 642 1

This content is from our CompTIA Network + Video Certification Training Course. Start training today! In this video, CompTIA Network + instructor Rick Trader teaches how to create Dynamic DNS zones in Network Environments. Video Transcription: Now that we’ve installed DNS, we’ve created our DNS zones, the next step is now, how do we produce those … Continue reading Creating Dynamic DNS in Network Environments

Cable Testers and How to Use them in Network Environments

0 725 1

This content is from our CompTIA Network + Video Certification Training Course. Start training today! In this video, CompTIA Network + instructor Rick Trader demonstrates how to use cable testers in network environments. Let’s look at some tools that we can use to test our different cables in our environment. Cable Testers Properly Wired Connectivity … Continue reading Cable Testers and How to Use them in Network Environments

Write a Comment

Share your thoughts...

Please fill out the comment form below to post a reply.