1 |
On Wednesday, March 17, 2021 7:31:52 AM CET William Kenworthy wrote: |
2 |
> Hi, |
3 |
> |
4 |
> I have just reinstalled my 32 bit Gentoo on a raspberry pi 3B with a |
5 |
> Gentoo aarch64 image also with boot on an sdcard and root on nfs (both |
6 |
> working fine with boot on an sdcard and root on an nfs share hosted on |
7 |
> an moosefs cluster). Both have a problem where the initial boot loader |
8 |
> requests an IP address using "IP=dhcp", then the main operating system |
9 |
> requests it again on initialising the interface. Despite asking using |
10 |
> the same MAC address, ISC dhcp issues a new and different IP address - |
11 |
> this seems counter intuitive so why is it happening? Have I missed a |
12 |
> configuration option somewhere? |
13 |
> |
14 |
> The standard advice is to stop the OS requesting an address (Ubuntu and |
15 |
> the like) - but shouldn't dhcp know that its already issued a valid IP |
16 |
> address to that MAC address? |
17 |
> |
18 |
> BillK |
19 |
|
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? |