From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2D0E10F5 for ; Thu, 21 Dec 2023 00:33:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dev-mail.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dev-mail.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="eSCpii/S" Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 19CE15C07DC for ; Wed, 20 Dec 2023 19:33:08 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 20 Dec 2023 19:33:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1703118788; x=1703205188; bh=nbWikeIf6yqQb EF5oB19xD7dwofzegumAcUigx84Dgc=; b=eSCpii/SReR7YizZW5Ssrl+nyDYF0 ROnFTdNl2qSYcqOHEVGA3wo36H6PqajBaDdSh3MIwvoBGA1nBpWNl8dHpE10QcPu tRCPXQquXmgmfF5CC2kiYDhhOTaJ816v8DxHtfna82Pb+1RKbqtlIaNaA1NsQfnB /iEC5DA+9KBL+tFt5Nij48sMCYyh5+6Zn4O1cIQSdbV2MhVOcugjXX1oV/3PozvR 4YJTja4bZU2gkVjHTXOel28X2BWn6sb+VBfj9vR/2pKVhfPXmHsiW9+UujFXCqN7 +XsksCkiE0zwcpSxcJtz+GIyWQ/ZPNIUzaZw8OuByD1SDq0/DV4gwaWig== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvddufedgvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfghrhffvufgtgfesthejre dttddvjeenucfhrhhomhepphhgnhguuceophhgnhguseguvghvqdhmrghilhdrnhgvtheq necuggftrfgrthhtvghrnhephfdtjeelveevudegieejhfejleehhfeltdeuhefhieekje ekieffteejgfdvueevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhepphhgnhguseguvghvqdhmrghilhdrnhgvth X-ME-Proxy: Feedback-ID: if6e94526:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 20 Dec 2023 19:33:07 -0500 (EST) Message-ID: Date: Wed, 20 Dec 2023 19:33:06 -0500 Precedence: bulk X-Mailing-List: linux-hotplug@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: pgnd@dev-mail.net From: pgnd Content-Language: en-US To: linux-hotplug@vger.kernel.org Subject: udev rule in /etc/udev/rules.d/ FAILS to exec on boot; but OK exec @ shell after boot ? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit hi, on lsb_release -rd Description: Fedora release 39 (Thirty Nine) Release: 39 uname -rm 6.6.6-200.fc39.x86_64 x86_64 i have this net device lspci | grep Ethernet | grep 05:00 05:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03) i enable persistent naming; in kernel cmdline, "... net.ifnames=1 ..." the interface is renamed/created during boot dmesg | grep "renamed from eth" [ 6.945108] igb 0000:05:00.0 enp5s0: renamed from eth0 i've created a udev rule to set IPv6 params cat /etc/udev/rules.d/01-enp5s0-sysctl.rules ACTION=="add|bind|change", SUBSYSTEM=="net", KERNEL=="enp5s0", \ RUN+="/sbin/sysctl -qw \ net.ipv6.conf.enp5s0.forwarding=0 \ net.ipv6.conf.enp5s0.accept_ra=1 \ net.ipv6.conf.enp5s0.use_tempaddr=1 \ " but, immediately after boot, exec sysctl \ net.ipv6.conf.enp5s0.forwarding \ net.ipv6.conf.enp5s0.accept_ra \ net.ipv6.conf.enp5s0.use_tempaddr returns the values, unchanged, net.ipv6.conf.enp5s0.forwarding = 0 net.ipv6.conf.enp5s0.accept_ra = 0 net.ipv6.conf.enp5s0.use_tempaddr = 0 otoh, if i exec at shell, udevadm trigger sysctl \ net.ipv6.conf.enp5s0.forwarding \ net.ipv6.conf.enp5s0.accept_ra \ net.ipv6.conf.enp5s0.use_tempaddr the values are changed net.ipv6.conf.enp5s0.forwarding = 0 net.ipv6.conf.enp5s0.accept_ra = 1 net.ipv6.conf.enp5s0.use_tempaddr = 1 what's keeping my udev rule from setting up the interface sysctls on boot? -pgnd