1 |
On 17/3/21 3:46 pm, J. Roeleveld wrote: |
2 |
> On Wednesday, March 17, 2021 7:31:52 AM CET William Kenworthy wrote: |
3 |
>> Hi, |
4 |
>> |
5 |
>> I have just reinstalled my 32 bit Gentoo on a raspberry pi 3B with a |
6 |
>> Gentoo aarch64 image also with boot on an sdcard and root on nfs (both |
7 |
>> working fine with boot on an sdcard and root on an nfs share hosted on |
8 |
>> an moosefs cluster). Both have a problem where the initial boot loader |
9 |
>> requests an IP address using "IP=dhcp", then the main operating system |
10 |
>> requests it again on initialising the interface. Despite asking using |
11 |
>> the same MAC address, ISC dhcp issues a new and different IP address - |
12 |
>> this seems counter intuitive so why is it happening? Have I missed a |
13 |
>> configuration option somewhere? |
14 |
>> |
15 |
>> The standard advice is to stop the OS requesting an address (Ubuntu and |
16 |
>> the like) - but shouldn't dhcp know that its already issued a valid IP |
17 |
>> address to that MAC address? |
18 |
>> |
19 |
>> BillK |
20 |
> Normally I get the same IP, but not if the lease is expired: |
21 |
> |
22 |
> What is the "default-lease-time" and "max-lease-time" set to on your DHCP |
23 |
> server? |
24 |
> |
25 |
> Or it gets "released", which can happen when the client informs the DHCP |
26 |
> server it no longer needs the IP. |
27 |
> |
28 |
> Also, why not fix the IP for the MAC on the DHCP server? |
29 |
> |
30 |
> |
31 |
Hi Joost, I have been moving away from fixed IP's using scripts to |
32 |
update via dynamic DNS (which is why two IP numbers per MAC are |
33 |
problematic). I might fix it on the DHCP server to see what happens. |
34 |
The lease times are relatively long considering the boot time. |
35 |
Interestingly, dhcp issues the same IP addresses consistently to both |
36 |
the boot process and OS. While stopping the OS requesting an address is |
37 |
easy enough ... the question is why is that necessary. Google shows a |
38 |
number of recommendations and howtos saying to do just that but it seems |
39 |
a "kludge". |
40 |
|
41 |
BillK |