From nobody Sat Mar 26 08:34:17 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 91DFF1A4FCB0 for ; Sat, 26 Mar 2022 08:34:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KQXLd68Ldz3rNC for ; Sat, 26 Mar 2022 08:34:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AF56A1DC8A for ; Sat, 26 Mar 2022 08:34:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22Q8YHel005916 for ; Sat, 26 Mar 2022 08:34:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22Q8YHUT005915 for bugs@FreeBSD.org; Sat, 26 Mar 2022 08:34:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262821] dhclient keeps contradicting leases Date: Sat, 26 Mar 2022 08:34:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bsd@volki.at X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648283657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Z5LGRhF7ZADyWlmmK4BO8ZMqMz6SB9N9Xdw9YMDMoqk=; b=yi5Vm9kD4YMjaugKfACEE+xitABkBscxOnd+p9Rn66ZRL3w3L0ciKO9MoPObk95P4T+EXR 2BMiQtaqBYRMEtjIgnO54F/M8C5tukXwB2mND3bcIcUI06iSK78/aIdBnLfQlMRBdNpRhT zyyUFMlJa0kX+r+bcSGguayaZN1SaP7id+4QOdWZCo5wtVmi4Nl0nwVUtht7g1TF0I49R3 vrECUGl5icCSqIcKeQkyNTPoTRZ6+3ZlLZalJGPtjocsUWFVaP6nLQruTUamnbc6IP/eW4 bTYAo/GsyxHNnGxN0ZgSReh+1kEPIFX4e+L5X0q1RQDt2S8Z57GDBZA5qCcC+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648283657; a=rsa-sha256; cv=none; b=xUMG7sH+P7UEQ78kdFmJjtSzJYdbFnpY2MRifIR2yvpS00ApQb9os+aCxNThEUUYx1hcTr 8GyoXadh663zPkh0q16Uo2w8pXDmSF1b67tmT0q0FFbOfBTOXWSO46T9DhcaPFn60dYwH7 lrAtSriPNhnSHxaZM5+ylL8Dq5DayQR4Il5IYSgzz1CyVPZSY4U84mLMwuY0CdVxVYlXjx 44aETc3t1hSEuziRlXRHIuAQzZC5XRZGHvo/utpefxZBVeJpr6bqk8Q0EYZoiMB2pV37oF 4DdIOcJ63zvtNXzhFKoM5Ifzb1xAi0RF8MnrKZoTjLbbj3X2lgy+U91Sqp2UDg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262821 Bug ID: 262821 Summary: dhclient keeps contradicting leases Product: Base System Version: 12.3-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: bsd@volki.at According to the dhclient(8) manpage, "Old leases are kept around in case t= he DHCP server is unavailable when dhclient is first invoked (generally during= the initial system boot process). In that event, old leases from the dhclient.leases.IFNAME file which have not yet expired are tested, and if t= hey are determined to be valid, they are used until either they expire or the D= HCP server becomes available." Now the problem is that even after the new lease becomes available and acti= ve, the old lease is still kept in /var/db/dhclient.leases.. This lo= oks like a bug: ~# killall dhclient ~# rm /var/db/dhclient.leases.em0=20 ~# dhclient em0 DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 5 DHCPOFFER from 100.64.0.1 DHCPREQUEST on em0 to 255.255.255.255 port 67 DHCPACK from 100.64.0.1 bound to 100.64.122.132 -- renewal in 43140 seconds. ~# killall dhclient ~# cat /var/db/dhclient.leases.em0=20 lease { interface "em0"; fixed-address 100.64.122.132; option subnet-mask 255.255.128.0; option routers 100.64.0.1; option domain-name-servers 213.143.111.122,8.8.8.8; option domain-name "ve1.innonet.at"; option dhcp-lease-time 86281; option dhcp-message-type 5; option dhcp-server-identifier 172.26.0.120; renew 6 2022/3/26 20:04:52; rebind 0 2022/3/27 05:04:07; expire 0 2022/3/27 08:03:53; } ~# dhclient em0 DHCPREQUEST on em0 to 255.255.255.255 port 67 DHCPACK from 100.64.0.1 bound to 100.64.122.132 -- renewal in 43130 seconds. ~# cat /var/db/dhclient.leases.em0=20 lease { interface "em0"; fixed-address 100.64.122.132; option subnet-mask 255.255.128.0; option routers 100.64.0.1; option domain-name-servers 213.143.111.122,8.8.8.8; option domain-name "ve1.innonet.at"; option dhcp-lease-time 86281; option dhcp-message-type 5; option dhcp-server-identifier 172.26.0.120; renew 6 2022/3/26 20:04:52; rebind 0 2022/3/27 05:04:07; expire 0 2022/3/27 08:03:53; } lease { interface "em0"; fixed-address 100.64.122.132; option subnet-mask 255.255.128.0; option routers 100.64.0.1; option domain-name-servers 213.143.111.122,8.8.8.8; option domain-name "ve1.innonet.at"; option dhcp-lease-time 86261; option dhcp-message-type 5; option dhcp-server-identifier 172.26.0.120; renew 6 2022/3/26 20:05:02; rebind 0 2022/3/27 05:04:06; expire 0 2022/3/27 08:03:53; } This is confusing, because the two entries are essentially the same but with different renew and rebind dates, so it remains unclear when the renew and rebind are actually scheduled to happen. --=20 You are receiving this mail because: You are the assignee for the bug.=