I tried many options and worked out the examples in Ethernet ibrary to setup the MAC and IP for Ethernet Shield.But nothing seems to be working.
I executed below program which I got from one of the topic posted in this forum.
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,1,101);
void setup() {
Serial.begin(9600);
// disable SD SPI
pinMode(4,OUTPUT);
digitalWrite(4,HIGH);
// Start ethernet
Serial.println(F("Starting ethernet..."));
Ethernet.begin(mac, ip);
Serial.println(Ethernet.localIP());
delay(2000);
Serial.println(F("Ready"));
}
void loop() {
}
Serial monitor output was :
Starting ethernet...
0.0.0.0
Ready
Then,I tried,
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,1,2);
void setup() {
Serial.begin(9600);
// disable SD SPI
pinMode(4,OUTPUT);
digitalWrite(4,HIGH);
// Start ethernet
Serial.print(F("Starting ethernet..."));
Ethernet.begin(mac, ip);
Serial.println(Ethernet.localIP());
}
void loop() {
}
Serial monitor output was:
Starting ethernet...0.0.0.0
I also tried the code in
http://forum.arduino.cc/index.php?topic=288175.5;wap2
But in Serial monitor ,I could not see anything .
Is there really some problem with W5100 or SP bus? I am not sure whether I have to really replace the Ethernet Shield.
I can see that Arduino is connected properly with Ethernet Shield and some leds are glowing.For reference,I attached two images which shows my Arduino and Ethernet Shield connections in this post.



