What happens if two computers have the same MAC

local-area-networkmac addressnetworking

Possible Duplicate:
Can duplicate MAC addresses on same LAN cause trouble?

What happens to network traffic on a switched LAN if two devices have the same MAC (probably because one is cloning the other). This is probably a static IP network instead of DHCP. If someone sends to that MAC, would it go to both computers? If one of those computers sends to a third computer, everything should be normal? Or maybe the ACK messages won't make it back?
Thanks!

Best Answer

A switch learns MAC addresses. Once it sees an address coming from a port, it will direct the traffic for this address only to this specific port.

In your case this means the two hosts will see only part of the traffic, depending which host sent the "latest" packet. The result will be very ugly networking problems. Do not expect the switch to handle this situation: MAC addresses are supposed to be worldwide unique.

A hub may work -- they simply spit out the packets on all ports except the one where it came in -- but these are very rare for 100MBit and non-existent for Gigabit. And of course half-duplex.