What happens when two computers on the same network have the same MAC address?

I was reading an article on WEP cracking, which said that filtering MAC addresses was not enough, since there are tools to change what the computer reports as its MAC address.

This made me wonder what would happen if someone uses the same MAC address as another computer on the network?

I've looked on Google, but most websites just say something like "strange things could happen". What kind of things? Packet loss, disconnected users?


Solution 1:

It really does depend on how the routers and systems on the network are configured.

At our office, our machines will not connect to the local domain due to the collision in MAC addresses. You'll get a notification message (in Windows) saying there is already a system with the Id on the network.

Sometimes you get into "races" where each computer attempts to register itself with the router, and any traffic coming to the machine can get lost since packet A will go to your machine, the other machine will register, so packet B will go there. Things can start bouncing back and forth.

You can start seeing unreachable host errors due to the collisions as well.

The results really do vary depending on when the duplicate machine is coming online and how the current infrastructure is setup to handle such items.

Your network admin will have more detailed answers on this.

Solution 2:

Basically the expected behavior is "undefined".

Basically the two network cards would both present all packets sent to that address to their respective machines which will cause some confusion when both are active. I suspect that neither machine would be able to effectively communicate with the network while the other were active.

Solution 3:

I tried this by setting same MAC address in two machines by using 'cloned MAC'. Both the machines were running on Ubuntu 14.04 x64.

Both the computers were connected to internet over same router. But at a time only one computer was able to transmit or receive data.

When both machines try to transmit or receive data at same time, none of them could complete the transmission.

Of course, this behavior is specific to my setup. On different router and devices behaviour will be different.