I have an official Arduino Uno R2 and a Wiznet 5100 shield from Hanrun (HR911105A 10/50). I want to connect the Arduino to a server of my own, but first i want to test DHCP or static ip configuration. And that's what does not work.
I first tried all the examples on the official library. None of them work for me. For example when I upload the DhcpAdressPrinter sketch i get this result on the Serial Monitor:
Failed to configure Ethernet using DHCP
I also tried to set up ip manually (using Ethernet.begin(mac,ip,gw,network)) but i get the same result.
My network configuration is 172.16.1.1 (for DNS, gw and DHCP ) and 172.16.255.255 network. The network is working (connecting a PC works).
David' issue may have been resolved, but I have the same problem and still cannot connect via my Arduino + Ethernet shield.
In my case I have a Rev3 Uno board and am using 1.0.3. When I run the sample sketch above, I receive the ethernet address of 0.0.0.0
The Uno and Ethernet boards were purchased this week from Radio Shack, the ethernet shield has a mac address on a sticker.
I verified conductivity of all pins between the ehternet shield and the Ardiuno Uno board - all check out OK.
I am on a home network with a linksys router with DHCP enabled and working for the PC's on the network.
When I plug in a raspberry pi to the same network, it immediately gets an IP address assigned to it via DHCP and is able to browse the internet.
I have tried all of the ethernet examples inside of the Arduino 1.0.3 download - and they all either hang and/or report the 0.0.0.0 "ip address" - any other suggestions?
I have the same problem as david but after giving me the IP address for SPI when I tried another exemple such as DHCPaddressPrint it gave me this Failed to configure Ethernet using DHCP
what can I do for the connection I am using 3g USB modem Thanks