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 1JvGKE-0003Yi-Nv for garchives@archives.gentoo.org; Sun, 11 May 2008 18:31:10 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3BDDCE0371; Sun, 11 May 2008 18:31:09 +0000 (UTC) Received: from dcnode-01.unlimitedmail.net (139.Red-80-26-111.staticIP.rima-tde.net [80.26.111.139]) by pigeon.gentoo.org (Postfix) with ESMTP id B659DE0371 for ; Sun, 11 May 2008 18:31:08 +0000 (UTC) Received: from ppp.zz ([137.204.208.98]) (authenticated bits=0) by dcnode-01.unlimitedmail.net (8.14.2/8.14.0) with ESMTP id m4BIV3wH011512 for ; Sun, 11 May 2008 20:31:03 +0200 From: Etaoin Shrdlu To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Change NIC ordering Date: Sun, 11 May 2008 20:28:31 +0200 User-Agent: KMail/1.9.7 References: <5bdc1c8b0805111103s3916d9f4rf095943df49283f3@mail.gmail.com> In-Reply-To: <5bdc1c8b0805111103s3916d9f4rf095943df49283f3@mail.gmail.com> 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 Message-Id: <200805112028.31585.shrdlu@unlimitedmail.org> X-UnlimitedMail-MailScanner-From: shrdlu@unlimitedmail.org X-Spam-Status: No X-Archives-Salt: 266bcbef-31e7-46c1-bdbc-88386d831caf X-Archives-Hash: 8cb4522355262496fea3b831f73eb7d0 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