1 |
On Tuesday 26 Jul 2016 21:24:12 Alan McKinnon wrote: |
2 |
> On 26/07/2016 18:53, Andrew Lowe wrote: |
3 |
> > On 27/07/16 00:10, Alan McKinnon wrote: |
4 |
> >> On 26/07/2016 18:01, Andrew Lowe wrote: |
5 |
> >>> Hi all, |
6 |
> >>> |
7 |
> >>> I can remember in the distant past that I had to have my modem |
8 |
> >>> |
9 |
> >>> turned on before the computer otherwise, I wouldn't get an IP address. |
10 |
> >>> Then something changed. One day I forgot to turn on the modem first. I |
11 |
> >>> turned the machine on then realised the modem wasn't on, I turned it, |
12 |
> >>> the modem, on and prepared to reboot the machine only to see an IP |
13 |
> >>> address appear. |
14 |
> >>> |
15 |
> >>> It appeared that dhcp was now periodically attempting to get an |
16 |
> >>> |
17 |
> >>> address whereas in the past, if on boot it didn't find one, that was it, |
18 |
> >>> it just gave up. It appears that my machine has now, for some reason |
19 |
> >>> reverted to "the olden days" of IP address allocation. No modem at boot, |
20 |
> >>> no IP address. Reboot the machine, with the modem continuing to run, and |
21 |
> >>> I get an IP address. When I have no IP address, I can run "dhcpcd |
22 |
> >>> restart" and I'll get one. |
23 |
> >>> |
24 |
> >>> Anyone got any idea as to what has changed? What should I be looking |
25 |
> >>> |
26 |
> >>> for to fiddle to get my preferred behaviour, modem/machine startup in |
27 |
> >>> any order and I'll get an IP address. Is there a dchp "polling time" or |
28 |
> >>> something similar that I need to set to get this running nicely again? |
29 |
> >>> |
30 |
> >>> Thoughts greatly appreciated, |
31 |
> >>> |
32 |
> >>> Andrew |
33 |
> >> |
34 |
> >> There's no single global default, that is set is whatever dhcp client |
35 |
> >> you are using. Which one is it? |
36 |
> > |
37 |
> > dhcpcd |
38 |
> |
39 |
> Thanks. What's in your /etc/dhcpcd.conf and related network |
40 |
> configs/settings? |
41 |
|
42 |
dhcpcd will set up an IPv4LL (aka APIPA, zeroconf, et al) address unless |
43 |
configured not to do so with the -L option. Once an IPv4LL address is set, |
44 |
then it will scout for an IP address lease every now and then and obtain one |
45 |
when a dhcp server comes on stream and offers one. Daemons like ifplugd will |
46 |
run dhcpcd to obtain an address when they sense a link on your configured |
47 |
interface. |
48 |
-- |
49 |
Regards, |
50 |
Mick |