Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 6 Dec 2001 18:07:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 6 Dec 2001 18:07:31 -0500 Received: from hera.cwi.nl ([192.16.191.8]:17859 "EHLO hera.cwi.nl") by vger.kernel.org with ESMTP id ; Thu, 6 Dec 2001 18:07:14 -0500 X-Mailer: exmh version 2.3.1 01/18/2001 (debian 2.3.1-1) with nmh-1.0.4+dev From: Hein Roehrig To: linux-kernel@vger.kernel.org Subject: network interface names ethX and renaming interfaces Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 07 Dec 2001 00:05:32 +0100 Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hello *, in Linux 2.2.20 I have a problem renaming the network interface dummy0 to eth0 and then starting a regular ethernet driver --- I would like it to come up as eth1 but it comes up as eth0, messing up the dummy0 interface. Reading the source, it appears that in init_ethernev(), ethernet drivers claim device names according to the array ethdev_index and shoot down any device name eth0 claimed by a non-ethernet driver. Therefore it appears to me that SIOCSIFNAME should either disallow renaming to ethX or it should adjust ethdev_index. Thanks in advance for any comment/advice, Hein - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/