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 1JvGTI-0004dd-Lg for garchives@archives.gentoo.org; Sun, 11 May 2008 18:40:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 44886E0396; Sun, 11 May 2008 18:40:31 +0000 (UTC) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by pigeon.gentoo.org (Postfix) with ESMTP id 201DCE0396 for ; Sun, 11 May 2008 18:40:31 +0000 (UTC) Received: by an-out-0708.google.com with SMTP id c28so453312ana.47 for ; Sun, 11 May 2008 11:40:30 -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=D/DkgWBZDEV+mLdUxXkN86+pv8zLdR3AdSGL6uYZdok=; b=WLvj+rOKfZEY3j2ZYL5+auzvQjfR3j4IWS64DJHPqc7R2nq/qtFWXURKjEOyzJ7JK/wdLQw+T2SIq4Y6OpE06IHP4xen97jxFbX3HwXet10UwRUpRcnBMYSAJ5SNHQHBsh5o+9DF6NQ1JYOYqKBDDdp/rCho7GOoMJSZTV8kS1c= 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=Wvw/sU+XOmkFWMgjSTaHyZ5GKq4KFPCDIVJah4Kozpw83q3fIwIkFhT8z+JfPMr6D8PWLMebMN2TnQYx2TA5xLBB+NqLkqWy5ZYpl8FqcofY8/D0iflFrApIivHtxieJKthRXheNp8PXQmq2d5LSf64otINxzwU64l+VbzgF/Yg= Received: by 10.100.13.2 with SMTP id 2mr7546695anm.137.1210531230673; Sun, 11 May 2008 11:40:30 -0700 (PDT) Received: by 10.100.12.15 with HTTP; Sun, 11 May 2008 11:40:30 -0700 (PDT) Message-ID: <5bdc1c8b0805111140m4c79120bhcb70394cdc1959da@mail.gmail.com> Date: Sun, 11 May 2008 11:40:30 -0700 From: "Mark Knecht" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Change NIC ordering In-Reply-To: <200805112028.31585.shrdlu@unlimitedmail.org> 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> <200805112028.31585.shrdlu@unlimitedmail.org> X-Archives-Salt: 302883e2-96bb-490a-94af-0c7259b4c8d8 X-Archives-Hash: c26ae8d056676dd0c9fc759bd396f7d2 On Sun, May 11, 2008 at 11:28 AM, Etaoin Shrdlu wrote: > On Sunday 11 May 2008, 20:03, Mark Knecht wrote: > > Hi, > > In a machine with two NICs: > > > > 1) How do I configure which is considered eth0? > > Probably editing /etc/udev/rules.d/70-persistent-net.rules. > > > > 2) After drivers are loaded how do I see what hardware is using which > > driver? > > The above file should have a comment before each line indicating what > driver the device needs. Apart from that, you can probably peek > into /sys. On my system, there seems to exist a directory named > /sys/class/net//device/driver/module/drivers/pci\:/, for > instance for eth0 it's > > /sys/class/net/eth0/device/driver/module/drivers/pci\:3c59x/ > > So I see that eth0 is using driver 3c59x. This is a totally homebrew > method, the result of 5-minute search, and most likely better method > exist (which I'd like to know too). > -- > gentoo-user@lists.gentoo.org mailing list > > Thanks. As per the note I sent a couple of minutes ago I found the persistant-net.rules file. I've modified it, rebooted and things are working as I want them to. eth0 is still IP address 192.168.1.57 but it's moved to the Intel e100 NIC. Other machine on my network can see it. Thanks for the pointer to the /sys/class stuff. I've only looked at that once trying to understand frame buffer stuff. This was a big help. With the changes I now see: /sys/class/net/eth0/device/driver/module/drivers/pci\:e100/ /sys/class/net/eth1/device/driver/module/drivers/pci\:3c59x/ which is what I want for now. Again, thanks for the great info. Cheers, Mark -- gentoo-user@lists.gentoo.org mailing list