Marc Vandenhende

Restarting DHCP on Coldfire Lite (V3)

Discussion created by Marc Vandenhende on Dec 23, 2008
Latest reply on Feb 9, 2009 by Marc Vandenhende
Hello,

I'm working on a project using Coldfire Lite (V3).

The problem is that, when I shut down the router to which the coldfire ethernet link is connected, Coldfire Lite does not automatically request a new IP adress via DHCP after the link comes up again. Instead, it just keeps using it's originally assigned IP address.

What I would like to do is to detect when the link comes up, and then trigger the DHCP client to request a new IP address. I probably have to use dhc_setup() to do this. But I still have to detect when the link comes up somehow...

Also, I'm not sure if I can call dhc_setup() from just anywhere in my code.

If anyone could help me out, I would be very grateful.

Thanks in advance - Marc

Outcomes