From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JvGDt-0003DP-Gj for garchives@archives.gentoo.org; Sun, 11 May 2008 18:24:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 515C1E02B9; Sun, 11 May 2008 18:24:35 +0000 (UTC) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by pigeon.gentoo.org (Postfix) with ESMTP id 2AEE1E02B9 for ; Sun, 11 May 2008 18:24:35 +0000 (UTC) Received: by an-out-0708.google.com with SMTP id c28so452483ana.47 for ; Sun, 11 May 2008 11:24:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=QcgxRZFKGGAXMhmJoblHFOK58Qpg1UiUZd3SI5rT0ho=; b=NosNIR27tgZ+PYAwCw4AwGUQMpIZQdtaC5vV7fM44XThNGEk+TvcNR94EJHhedMdEog5VBsg0AxbH6grXTxRKi4JvmULjb0XrBVsVCC2U6StalPZZ/hHtby3P5u403wKeL0EL2nvSwhP5MAW+JzID9e8HsLxbAmCLuTTnyxxT5c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Mst7a+dDoXerHZi7KZnaS4/xPR/ys/sq46x1v48aHk5Sd/oHcmSh5cclT1k4SFVvXGvpuz6plk0ueVNB2ULW/8OOKB3XaZ9qDKP6474z05zmlCmLvuZKZhYAXqVgPUVPVGvE73dwCS6TnOZ2ANdKBs0YcdKRovDGlyM18MZtmo0= Received: by 10.100.92.5 with SMTP id p5mr599245anb.78.1210530274856; Sun, 11 May 2008 11:24:34 -0700 (PDT) Received: by 10.100.12.15 with HTTP; Sun, 11 May 2008 11:24:34 -0700 (PDT) Message-ID: <5bdc1c8b0805111124vfb67ba5gb456205a7ddfaed3@mail.gmail.com> Date: Sun, 11 May 2008 11:24:34 -0700 From: "Mark Knecht" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Change NIC ordering In-Reply-To: <200805112013.10171.dirk.heinrichs@online.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5bdc1c8b0805111103s3916d9f4rf095943df49283f3@mail.gmail.com> <200805112013.10171.dirk.heinrichs@online.de> X-Archives-Salt: 4faa9aaf-a993-4506-b190-bccd30153289 X-Archives-Hash: 35fefea3d3716500a73159475f2af727 On Sun, May 11, 2008 at 11:13 AM, Dirk Heinrichs wrote: > Am Sonntag, 11. Mai 2008 schrieb Mark Knecht: > > > > In a machine with two NICs: > > > > 1) How do I configure which is considered eth0? > > Use udev to name them as you like, see > http://reactivated.net/writing_udev_rules.html. > > > > 2) After drivers are loaded how do I see what hardware is using which > > driver? > > Check dmesg output. > > HTH... > > Dirk > Hi Dirk, I found the 70-persistant-net.rules file with these contents: # This file was automatically generated by the /lib/udev/write_net_rules # program run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single line. # PCI device 0x10b7:0x9202 (3c59x) SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:11:d8:f4:ce:e3", NAME="eth0" # PCI device 0x8086:0x1229 (e100) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:90:27:17:91:5d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" I think instead of writing something new that might fight with this it's intended that I just change this file. If I turn things around like this: # PCI device 0x8086:0x1229 (e100) SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:90:27:17:91:5d", NAME="eth0" # PCI device 0x10b7:0x9202 (3c59x) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:d8:f4:ce:e3", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" that I should have a pretty good chance of success. Off to give it a try. - Mark -- gentoo-user@lists.gentoo.org mailing list