From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54DC8C4332F for ; Thu, 14 Dec 2023 14:48:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573545AbjLNOsH (ORCPT ); Thu, 14 Dec 2023 09:48:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573501AbjLNOsE (ORCPT ); Thu, 14 Dec 2023 09:48:04 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C61A131 for ; Thu, 14 Dec 2023 06:48:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702565289; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FQrhIHbv64EnZ37/gcr7zz8rNHgYkKc/dh/c/WTZJ7U=; b=WN7hR1gXk3aNkl/WK2zc/nLeH4nZ8M6froo42esLK/a16FsNhN2a6ya4/CLCBk00FU510S UuBewzyLXHOq0yGbNuEpLm+ATZvUZJa7nvzY6fFg7NJbUEjVStnRyh08uPyUytZn2N0gnX aKmhwWgKyBqd//SKY/FVJQpSu0PA8k0= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-65-dKF00F-TNeSK-gS_hQT0aA-1; Thu, 14 Dec 2023 09:48:07 -0500 X-MC-Unique: dKF00F-TNeSK-gS_hQT0aA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 816C91E441D1; Thu, 14 Dec 2023 14:48:00 +0000 (UTC) Received: from [10.45.224.252] (unknown [10.45.224.252]) by smtp.corp.redhat.com (Postfix) with ESMTP id DCB971121306; Thu, 14 Dec 2023 14:47:59 +0000 (UTC) Message-ID: <4a053d6a-92c6-4d01-bfe5-2349d64cc429@redhat.com> Date: Thu, 14 Dec 2023 15:47:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Failed to start Raise network interfaces error To: Julia Lawall Cc: "David S. Miller" , linux-kernel@vger.kernel.org References: <21977757-3a63-4586-ae03-e6630c1f009d@redhat.com> <4c707e3e-a324-a5e6-dc21-833b6d40324d@inria.fr> <88a7a623-ad80-406c-a63b-3136df963888@redhat.com> Content-Language: en-US From: Ivan Vecera In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14. 12. 23 15:33, Julia Lawall wrote: > > > On Tue, 12 Dec 2023, Ivan Vecera wrote: > >> >> >> On 12. 12. 23 17:33, Julia Lawall wrote: >>>> Look at 'systemd.net-naming-scheme' man page for details how the interface >>>> names are composed. >>> After booting into 6.7.0-rc4, I have the following in >>> /etc/network/interfaces: >>> >>> # This file describes the network interfaces available on your system >>> # and how to activate them. For more information, see interfaces(5). >>> >>> source/etc/network/interfaces.d/* >>> >>> # The loopback network interface >>> auto lo >>> iface lo inet loopback >>> >>> auto enp24s0f0 >>> iface enp24s0f0 inet dhcp >> >> Just change 'enp24s0f0' in /etc/network/interfaces to 'enp24s0f0np0' > > Hello, > > I don't know if anything can be done about it, but this change introduces > complexities. The people who manage the cluster that I use say that the > name of the network interface should be predictable, which is no longer > the case because it now depends on the kernel version. In this case, you can configure custom udev rule that will fix the name of the interface... Like: host ~ # cat /etc/udev/rules.d/70-network.rules ACTION=="add", SUBSYSTEM=="net", DRIVERS=="i40e",\ ATTR{address}=="xx:xx:xx:xx:xx:xx", NAME="enp24s0f0" ACTION=="add", SUBSYSTEM=="net", DRIVERS=="i40e",\ ATTR{address}=="yy:yy:yy:yy:yy:yy", NAME="enp24s0f1" Regards, Ivan