7 years, 11 months ago.

DHCP only works with router

Hi all,

couple of days ago i bought a LPC1768 board and started set up the ethernet connection with some of the examples offerd by mbed and other users.

The code i am testing at the moment is: https://developer.mbed.org/users/pehrhovey/code/UDPtest/file/a548a085de55/Core

I followed https://developer.mbed.org/users/AxedaCorp/notebook/hack-an-ethernet-cable-to-connect-lpc1768-to-netwo/ to wire up my mbed with a RJ45 jack.

So i started playing aroung with different setup und OS like Windows 8, Ubuntu an da PI with Jessie. Firewall and antivir were deactivated, LAN connections were set to 10Mbit Halfduplex and all the way up to autonegotiation. Also a fixed IP and dhcp were used. But still nothing from mbed. Wireshark also doesnt track any traffic out or incoming to/from the mbed.

After that i connected the board to my router. And voila TeraTerm tells me "Lwip_init() called. device_init IP: 192.168.2.156 UDP Tester started..."

The thing now is that i dont get the same result plugging the mbed to another system than a router. Why can my router assign a IP to mbed and the others not? Any suggestions?

Thanks

Edit: solved

My guess is that you PC was not running a DHCP server and you forgot to use a crossover cable when connecting to a PC rather than a hub/switch

posted by Andy A 07 Dec 2016
Be the first to answer this question.