Arduino ethernet shield is not connecting to Internet


I am trying to run DHCPAddressPrinter.ino program on arduino uno+ ethernet shield but its getting hanged and not showing any IP address. I am using TP-Link router as well as I tried the same in DHCP server software installed in my syste also.
well the store dealer said its working fine with his Binatone router with OOTB setup. Now I am not sure whats the problem.

I ahve tested this with USB plugin as well as separate Dc supply (12 V, 1 AMP) but its not working

Any help appreciated.

If you have a SD card in the shield’s slot, remove it. That will cause the dhcp request to fail. You can use then together, but the two devices must be started in a specific order to work.

Otherwise compile and run this code. It tests the SPI connection between the Arduino and the shield. If the serial monitor shows, then the SPI bus is ok. If it shows anything else, like, then you have a problem there. Insure the shield pins are inserted fully into the Arduino.

#include <SPI.h>
#include <Ethernet.h>

byte mac[] = {  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,2,2);

void setup() {

  // disable SD SPI

  // Start ethernet
  Serial.print(F("Starting ethernet..."));
  Ethernet.begin(mac, ip);

void loop() {

thanks a lot, it was loose coupling between uno and shield