[Spread-users] Spread and dynamic IP addresses?

Jonathan Stanton jonathan at cnds.jhu.edu
Thu Jul 11 13:02:22 EDT 2002

I havn't tried it before but I think the following should work.

Make sure your local name /dns works on the mobile nodes. So if a node
calls "gethostname" it returns a dns name that matches it's current IP
address as assigned by DHCP. Then put the entire range of DHCP address
that you want to be able to use spread in the spread.conf file (like you
mentioned below)

What will not work is if each node has a static 'hostname' but dynamic
IP address because then the combination of "gethostname" = myname,
"getaddrbyname(myname)"  = myaddr will not create a (myname,myaddr) pair
that exists in the spread.conf file, since the mappings change.

Now, about the second issue, if the IP address of a node changes while a
spread daemon is running, things will NOT work. The spread daemon would
have to be killed and restarted (with the new IP address). I think that
can be automated by many dhcp clients, but youw ill lose any active
spread connections when it occurs.

I don't know if any of these comments help you, but if you have any
more questions, this list is the right place.


On Wed, Jul 10, 2002 at 07:18:26AM -0700, Ned Konz wrote:
> I have an application for Spread that would be set up as a number of 
> relatively mobile wireless nodes on a LAN.
> It is easiest to set up these nodes to get their IP addresses via 
> DHCP, to avoid managing addresses manually.
> But the spread server config files seem to require static IP 
> addresses.
> And, of course, the IP address of a particular node (and spread 
> server) could change when it renews its DHCP lease. I guess this 
> isn't too likely, but it is possible.
> Would it work to define all the server config files as covering (say) 
> the first 10 DHCP addresses:
> through
> and let Spread servers/clients come and go?
> Thanks,
> -- 
> Ned Konz
> http://bike-nomad.com
> _______________________________________________
> Spread-users mailing list
> Spread-users at lists.spread.org
> http://lists.spread.org/mailman/listinfo/spread-users

Jonathan R. Stanton         jonathan at cs.jhu.edu
Dept. of Computer Science   
Johns Hopkins University    

More information about the Spread-users mailing list