[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
DHCP: renewal when cable is plugged out/in
- Date: Fri, 4 Apr 2008 11:36:59 -0500 (CDT)
- From: chris at chriscaudle.org (Chris Caudle)
- Subject: DHCP: renewal when cable is plugged out/in
On Fri, April 4, 2008 4:40 am, Arnout Vandecappelle wrote:
> Actually also on my laptop it would be useful: I sometimes move to the
> meeting room, which is on a separately routed network, so my IP address
> should be updated... But that's of no concern on this forum :-)
Perhaps the solutions are similar. On a Windows laptop, the easiest
solution to the problem is to run "ipconfig /renew" to renew the IP
address for the interface, which seems to cause a new request to the DHCP
server. I would assume that the /renew argument is an implicit call to
/release first to release the current IP address, then a new request to
have an address assigned.
I'm not sure what the equivalent on posix systems is, my Linux systems are
not portable, so I don't usually have need to acquire an address outside
of the normal lease cycle. I think maybe a SIGHUP to the dhcpc daemon,
and restarting the daemon.
I'm not familiar with how all the equivalent functions are integrated into
RTEMS, so I can't offer specific suggestions, but maybe this will prompt
some thought. Perhaps there is a way for the application on RTEMS to
detect the Ethernet interface going down then up again, and send a signal
to cause the DHCP client to do the equivalent of release and renew?
--
Chris Caudle