Facing difficulty connecting arduino ethernet(w5100) with PC using a switch (Dlink). When both are connected directly(p2p) using ethernet cable, arduino device can be pinged. However, when connected via switch - ping doesn't work, and both devices can't communicate with each other; updated the MAC addr. several times, nothing worked. How can this be resolved?

The same setup works when connected via a router instead of switch. But we need it to work with switch only.

Static ip has been assigned to both PC and arduino uno ethernet shield.

  • Do all link lights come on? Aug 18, 2017 at 5:43
  • Yes, three lights are on, one for power, two for the two Ethernet cables. Aug 18, 2017 at 5:49
  • Have you verified that the switch works? Aug 18, 2017 at 5:56
  • 1
    What type of D-link switch is it? Is the switch a managed switch?
    – MatsK
    Aug 18, 2017 at 11:48
  • 1
    Is there an IP conflict? ie. does another device on the network have the same IP address assigned that you have on the PC or Arduino? What does arp -a on the PC say about the Arduino IP address? If there's no IP conflicts, it could be your arp cache on either device isn't being updated. To reset the Arduino, just reboot it. To clear the arp cache on the PC, just do a search for "clear arp cache" along with your OS type (or reboot).
    – stevieb
    Aug 18, 2017 at 13:47


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.