On Tuesday 26 Jul 2016 21:24:12 Alan McKinnon wrote:
> On 26/07/2016 18:53, Andrew Lowe wrote:
> > On 27/07/16 00:10, Alan McKinnon wrote:
> >> On 26/07/2016 18:01, Andrew Lowe wrote:
> >>> Hi all,
> >>> 
> >>>     I can remember in the distant past that I had to have my modem
> >>> 
> >>> turned on before the computer otherwise, I wouldn't get an IP address.
> >>> Then something changed. One day I forgot to turn on the modem first. I
> >>> turned the machine on then realised the modem wasn't on, I turned it,
> >>> the modem, on and prepared to reboot the machine only to see an IP
> >>> address appear.
> >>> 
> >>>     It appeared that dhcp was now periodically attempting to get an
> >>> 
> >>> address whereas in the past, if on boot it didn't find one, that was it,
> >>> it just gave up. It appears that my machine has now, for some reason
> >>> reverted to "the olden days" of IP address allocation. No modem at boot,
> >>> no IP address. Reboot the machine, with the modem continuing to run, and
> >>> I get an IP address. When I have no IP address, I can run "dhcpcd
> >>> restart" and I'll get one.
> >>> 
> >>>     Anyone got any idea as to what has changed? What should I be looking
> >>> 
> >>> for to fiddle to get my preferred behaviour, modem/machine startup in
> >>> any order and I'll get an IP address. Is there a dchp "polling time" or
> >>> something similar that I need to set to get this running nicely again?
> >>> 
> >>>     Thoughts greatly appreciated,
> >>>     
> >>>         Andrew
> >> 
> >> There's no single global default, that is set is whatever dhcp client
> >> you are using. Which one is it?
> > 
> > dhcpcd
> 
> Thanks. What's in your /etc/dhcpcd.conf and related network
> configs/settings?

dhcpcd will set up an IPv4LL (aka APIPA, zeroconf, et al) address unless 
configured not to do so with the -L option.  Once an IPv4LL address is set, 
then it will scout for an IP address lease every now and then and obtain one 
when a dhcp server comes on stream and offers one.  Daemons like ifplugd will 
run dhcpcd to obtain an address when they sense a link on your configured 
interface.
-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to