Re: goose DHCP clients to new address Was: DHCP Problem
On Sun, 3 Dec 2023 22:14:51 +0100
Geert Stappers <stappers@stappers.nl> wrote:
> I assume that the previous router is disconnected from the LAN.
No. Until I solve this problem (and a few others), I will have clients
using the old router.
> The DHCProtocol has "release" for such goosing.
> At DHCPclient do "stop DHCP", over the wire goes DHCPRELEASE [0]
> The DHCPclient should forget ( "release" ) previous settings.
> At DHCPclient do "start DHCP", client should get fresh config,
> including the setting for the fresh router.
I'm not sure how to do this. I did run on a client
dhclient -r
dhclient
I observed no changes.
The -r causes dhclient to release its lease. Invoking dhclient again
should then obtain a new lease.
>
>
> If that is already done, provide information to enable further help.
> Such as name of the DHCP client program and DHCP lease time.
I am using whatever is standard on Debian Bullseye and Bookworm.
root@hawk:/etc# pre dhc
isc-dhcp-client 4.4.1-2.3+deb11u2 amd64
isc-dhcp-common 4.4.1-2.3+deb11u2 amd64
root@hawk:/etc#
root@tiassa:~# pre dhc
isc-dhcp-client 4.4.3-P1-2 amd64
isc-dhcp-common 4.4.3-P1-2 amd64
root@tiassa:~#
The client's name is dhclient.
default-lease-time 86400; # 24 hours
max-lease-time 172800; # 48 hours
I think for the purposes of experimentation I will shorten those to
half an hour and one hours respectively.
--
Does anybody read signatures any more?
https://charlescurley.com
https://charlescurley.com/blog/
Reply to: