Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 4EC08225B89 for <~alpine/users@lists.alpinelinux.org>; Fri, 22 Nov 2024 20:03:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1732305805; x=1732910605; i=daggs@gmx.com; bh=qbcqwRZinKONnae5iPQvo6KiQXdondCUZF6MokVxGtw=; h=X-UI-Sender-Class:MIME-Version:Message-ID:From:To:Cc:Subject: Content-Type:Date:References:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=quCS3xkdDjrryChV2SHyOWBAJlOHXo+j+JDxMx4dq4PmfZkAb7spnzcH1DgNXV+c YrmnHvwkKToKTCngQ8Vcgys2ytAHo1cAGW0RNZ4z74EdN0jlH7K8FlCMJMSb18TPj cXnCoYkJKIwgeTQoJQtaTMDoxCdyJBod2xa3vTRJWAEN9xJEr8yUkXU1crkQkYRRk ANM570aFweXf7AxSxBWoF95F0/DNVIrfh6Eory1wT11hHiRzWm/sbEBffLB0F90rv 1CASY6mi0isASS0wP5Q3b624R1dwWzIyq3hOlb7mmq2JiTbUW+ylcYC3Nbc2i8Bz9 V/T9m1dvXuVarIWWug== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [176.228.1.115] ([176.228.1.115]) by web-mail.gmx.net (3c-app-mailcom-bs14.server.lan [172.19.170.182]) (via HTTP); Fri, 22 Nov 2024 21:03:25 +0100 MIME-Version: 1.0 Message-ID: From: daggs To: ncopa@alpinelinux.org Cc: ~alpine/users@lists.alpinelinux.org Subject: Re: Re: nic hotplug ip renewal Content-Type: text/plain; charset=UTF-8 Date: Fri, 22 Nov 2024 21:03:25 +0100 Importance: normal Sensitivity: Normal References: <20241122111939.4342e7fb@ncopa-desktop.lan> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:62XcrR8eQw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== Content-Transfer-Encoding: quoted-printable Greetings Natanael, > Sent: Friday, November 22, 2024 at 2:00 PM > From: "daggs" > To: "Natanael Copa" > Cc: ~alpine/users@lists.alpinelinux.org > Subject: Re: nic hotplug ip renewal > > Greetings Natanael, > > > Sent: Friday, November 22, 2024 at 12:19 PM > > From: "Natanael Copa" > > To: "daggs" > > Cc: ~alpine/users@lists.alpinelinux.org > > Subject: Re: nic hotplug ip renewal > > > > On Fri, 22 Nov 2024 08:59:14 +0100 > > daggs wrote: > > > > > Greetings, > > > > > > I have this interface file: > > > auto lo > > > iface lo inet loopback > > > > > > allow-hotplug vnet0 > > > iface vnet0 inet dhcp > > > > > > when vnet0 get visible, there is no ip assignment, so I wrote a scri= pt that tries to run ifup on the adapter and when it success, it bails out= . > > > thing is, after the lease time is over (~10 hours of lease), the nic= looses the ip, how can I configure the lease to be renewed when needed? > > > I'm using openrc and eudev on alpine 3.20.x > > > > I think for this the simplest solution would be to use dhcpcd. Let > > interfaces file only have lo interface and > > > > apk add dhcpcd && rc-update add dhcpcd boot > > > > -nc > > > > Didn't thought of adding dhcpcd as boot service, will try it. > > Thanks, > > Dagg Tried it, after boot, the adapter doesn't get any ip. I assume that it might be related to the fact that when dhcpcd is executed= , the device doesn't exists, hence the hotplug. I tried to look for config examples for /etc/dhcpcd.conf that supports dhc= p but all I find are static ips. Any idea where I can find dhcp config for /etc/dhcpcd.conf? Thanks, Eial