Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #256290 > unrolled thread
| Started by | hans@hanswkraus.com |
|---|---|
| First post | 2023-03-23 09:50 +0100 |
| Last post | 2023-03-23 13:00 +0100 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.debian.user
Bullseye (Debian11) doesn't renew dhcp lease hans@hanswkraus.com - 2023-03-23 09:50 +0100
Re: Bullseye (Debian11) doesn't renew dhcp lease hans@hanswkraus.com - 2023-03-23 13:00 +0100
| From | hans@hanswkraus.com |
|---|---|
| Date | 2023-03-23 09:50 +0100 |
| Subject | Bullseye (Debian11) doesn't renew dhcp lease |
| Message-ID | <GcoNX-eu4b-5@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Hi,
a pc with a plain vanilla Debian11 doesn't renew the dhcp lease
automatically, I have to do it per hand (systemctl stop ifup@$1.service
&& systemctl start ifup@$1.service).
The "/var/lib/dhcp/dhclient.lan0.leases" file:
=======================================================
default-duid "\000\001\000\001+\255\242Y|\020\311\235\007\"";
lease {
interface "lan0";
fixed-address 172.23.139.11;
option subnet-mask 255.255.248.0;
option dhcp-lease-time 7200;
option routers 172.23.136.1;
option dhcp-message-type 5;
option dhcp-server-identifier 172.23.136.1;
option domain-name-servers 172.23.136.1;
option domain-name "kraush.home.arpa";
renew 3 2023/03/22 21:43:33;
rebind 3 2023/03/22 22:28:58;
expire 3 2023/03/22 22:43:58;
}/etc/systemd/network/10-board-1G.link
lease {
interface "lan0";
fixed-address 172.23.139.11;
option subnet-mask 255.255.248.0;
option routers 172.23.136.1;
option dhcp-lease-time 7200;
option dhcp-message-type 5;
option domain-name-servers 172.23.136.1;
option dhcp-server-identifier 172.23.136.1;
option domain-name "kraush.home.arpa";
renew 4 2023/03/23 09:02:59;
rebind 4 2023/03/23 09:51:21;
expire 4 2023/03/23 10:06:21;
}
=======================================================
I don't run network manager, the configuration files:
/etc/systemd/network/10-board-1G.link ==============================
# RJ45, 1G, on board
[Match]
MACAddress=7c:10:c9:9d:07:22
[Link]
Name=lan0
=======================================================
/etc/network/interfaces.d/lan0 ====================================
# /etc/network/interfaces.d/lan0
auto lan0
allow-hotplug lan0
iface lan0 inet dhcp
iface lan0 inet6 dhcp
=======================================================
Any help appreciated, Hans
[toc] | [next] | [standalone]
| From | hans@hanswkraus.com |
|---|---|
| Date | 2023-03-23 13:00 +0100 |
| Message-ID | <GcrLP-evVf-7@gated-at.bofh.it> |
| In reply to | #256290 |
[Multipart message — attachments visible in raw view] — view raw
On 23.03.2023 09:36, hans@hanswkraus.com wrote:
> Hi,
>
> a pc with a plain vanilla Debian11 doesn't renew the dhcp lease
> automatically, I have to do it per hand (systemctl stop ifup@$1.service
> && systemctl start ifup@$1.service).
>
> The "/var/lib/dhcp/dhclient.lan0.leases" file:
> =======================================================
> default-duid "\000\001\000\001+\255\242Y|\020\311\235\007\"";
> lease {
> interface "lan0";
> fixed-address 172.23.139.11;
> option subnet-mask 255.255.248.0;
> option dhcp-lease-time 7200;
> option routers 172.23.136.1;
> option dhcp-message-type 5;
> option dhcp-server-identifier 172.23.136.1;
> option domain-name-servers 172.23.136.1;
> option domain-name "kraush.home.arpa";
> renew 3 2023/03/22 21:43:33;
> rebind 3 2023/03/22 22:28:58;
> expire 3 2023/03/22 22:43:58;
> }/etc/systemd/network/10-board-1G.link
> lease {
> interface "lan0";
> fixed-address 172.23.139.11;
> option subnet-mask 255.255.248.0;
> option routers 172.23.136.1;
> option dhcp-lease-time 7200;
> option dhcp-message-type 5;
> option domain-name-servers 172.23.136.1;
> option dhcp-server-identifier 172.23.136.1;
> option domain-name "kraush.home.arpa";
> renew 4 2023/03/23 09:02:59;
> rebind 4 2023/03/23 09:51:21;
> expire 4 2023/03/23 10:06:21;
> }
> =======================================================
>
> I don't run network manager, the configuration files:
> /etc/systemd/network/10-board-1G.link ==============================
>
> # RJ45, 1G, on board
>
> [Match]
> MACAddress=7c:10:c9:9d:07:22
>
> [Link]
> Name=lan0
> =======================================================
>
> /etc/network/interfaces.d/lan0 ====================================
> # /etc/network/interfaces.d/lan0
>
> auto lan0
> allow-hotplug lan0
> iface lan0 inet dhcp
> iface lan0 inet6 dhcp
> =======================================================
>
> Any help appreciated, Hans
By the way: this is a secondary IP connection. The primary one has a
valid_lft "forever" and with that I don't have any problems.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web