Arduino Ethernet

good afternoon ,
I encountered a problem using the library ethernet.h
at the input of on the output I get 249,249,249,249

#include <Ethernet.h>

IPAddress ip(192, 168, 2, 2);
IPAddress subnet(255,255,255,0);

Ethernet.begin(mac, ip, myDns, gateway, subnet);



output ^


update to version 2.00

update did not help the exit now 0.0.0

san11: update did not help the exit now 0.0.0

try WebClient example from the updated library and copy the output here.

did you connect the shield with Erhernet cable to computer instead of router?

(Ethernet shield attached to pins 10, 11, 12, 13)

Initialize Ethernet with DHCP: Failed to configure Ethernet using DHCP Ethernet shield was not found. Sorry, can't run without hardware. :(

connected via a switch. Then included it on the computer the result is the same

try to set pin 4 to OUTPUT and HIGH to disable the SD card

I do not have an SD card in my model
or I did not understand you
wiring diagram

the Ethernet library is for Wiznet W5000 chips, not for the ENC28J60 chip. for the ENC28J60 is the UIPEthernet library. but it is too big for Atmega 328p. other option is EtherCard library

Thank you