Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id EDE01226125 for <~alpine/users@lists.alpinelinux.org>; Fri, 22 Nov 2024 12:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1732276841; x=1732881641; i=daggs@gmx.com; bh=BAyurJDgNY+KuStImE9hEwT/itQ6BSO9CZuo/t814l4=; h=X-UI-Sender-Class:MIME-Version:Message-ID:From:To:Cc:Subject: Content-Type:Date:In-Reply-To:References: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=FBA+keUpDdMRwIdGx11TgqxvusETzROSO0DVSn+vHXOYdmHHabyHQovdZPmuirfw ukocZJxZRERSFPV9hma0JfkdRWG8knjkuZjS9YpA5V5iQfuuK2pAMvveL+HhmJaw2 afWK4erPBu9LOZi+oL7CWMY7Ft1/RbsfrMmYdawM/w7uzj6w/G9Dz6LxpTfE4LSF9 ajToW17R4L/oLEbr6LVbc/OHp/qVgtkb5fWNeYE7UPZBNiiREG192QxCwTBkmIOEM AH1e3o73d0vcBqxG+nKjoEzOzotGf95F7XLFRXBCIZXN0gQaVsLYn6/mNXJ0m/VTT bz4Rzz9QSTl7xitIBg== 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-bs01.server.lan [172.19.170.58]) (via HTTP); Fri, 22 Nov 2024 13:00:41 +0100 MIME-Version: 1.0 Message-ID: From: daggs To: Natanael Copa Cc: ~alpine/users@lists.alpinelinux.org Subject: Re: nic hotplug ip renewal Content-Type: text/plain; charset=UTF-8 Date: Fri, 22 Nov 2024 13:00:41 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <20241122111939.4342e7fb@ncopa-desktop.lan> References: <20241122111939.4342e7fb@ncopa-desktop.lan> X-UI-Message-Type: mail X-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G07+5h1HWnmZD3pMJV3B2IDTPd4pTDCVaUYpb8g== Content-Transfer-Encoding: quoted-printable 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 script= 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 l= ooses 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