[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: netcfg: using udhcpc to get dhcp lease fails

On Sunday 31 January 2010, Luk Claes wrote:
> Otavio Salvador wrote:
> >> Also, if I run netcfg multiple times with dhcp3, I get multiple
> >> leases in the leases file. You seem to overwrite the existing file.
> >> Not sure if that needs fixing or not.
> >
> > I think it is not worth. syslog now has the gotten IP each time it
> > runs so is easy to spot if it has been run twice.

The same is true with dhcp3 isn't it?

> With dhcp3 not all the leases in the file are valid aka only the latest
> one for every IP is valid if it's not expired yet.

Of course.

> I'm not sure if udhcp would cope with invalid leases in the leases file?

It's only an output file. udhcp itself does not use it.

Having all leases in the file would mostly be an aid for troubleshooting.
It's not a huge issue for me though.

Reply to: