From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Gh8fC-0001MQ-6P for garchives@archives.gentoo.org; Mon, 06 Nov 2006 17:53:38 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kA6Ho0f6010887; Mon, 6 Nov 2006 17:50:00 GMT Received: from ilievnet.com ([84.21.204.200]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kA6HkHHE005840 for ; Mon, 6 Nov 2006 17:46:18 GMT Received: from localhost (localhost [127.0.0.1]) by ilievnet.com (Postfix) with ESMTP id 83389202821 for ; Mon, 6 Nov 2006 19:46:17 +0200 (EET) X-Virus-Scanned: amavisd-new at ilievnet.com Received: from ilievnet.com ([127.0.0.1]) by localhost (ilievnet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JPLHvAnRVTuM for ; Mon, 6 Nov 2006 19:46:12 +0200 (EET) Received: from [10.0.1.1] (mail.ilievnet.com [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ilievnet.com (Postfix) with ESMTP id D303C20083E for ; Mon, 6 Nov 2006 19:46:12 +0200 (EET) Message-ID: <454F74E2.7030203@ilievnet.com> Date: Mon, 06 Nov 2006 19:46:10 +0200 From: Daniel Iliev User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.8.0.7) Gecko/20061010 SeaMonkey/1.0.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Changing the NIC name References: <17CD9CE4C0FA574A8B29EF02D49B385D2A954E@srvexch-01.mcaschool.local> In-Reply-To: <17CD9CE4C0FA574A8B29EF02D49B385D2A954E@srvexch-01.mcaschool.local> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: c8af10a1-c0ed-4f78-88c4-02ee781b3923 X-Archives-Hash: 8fa95e91119756799cc21ba50c32a1cd Timothy A. Holmes wrote: >> On Monday 06 November 2006 21:59, Hans-Werner Hilse wrote: >> >> >>>> I would like to reverse those two names, so that snort >>>> >> can use the >> >>>> higher capacity card for its sniffer. I am not quite >>>> >> sure where to >> >>>> look even to begin this process. >>>> >>> You can give arbitrary names to those interfaces by configuring udev >>> appropriately: >>> >>> e.g. /etc/udev/rules.d/10-my-own-rules: >>> ---snip >>> KERNEL=="eth*", SYSFS{address}=="00:12:34:fe:dc:ba", NAME="eth-lan" >>> KERNEL=="eth*", SYSFS{address}=="00:56:78:98:76:54", >>> >> NAME="eth-sniff" >> >>> ---snip >>> >> You could also just tell Snort to use eth1. But this is useful info. >> >> - Noven >> -- >> >>> -- Novensiles divi Flamen --< >>> ---- Miles Militis Fons ----< >>> >> > > Ive been trying to do that - I can do it from command line, but not from > init script which is why im trying to change the names around > > Timothy A. Holmes > IT Manager / Network Admin / Web Master / Computer Teacher > Medina Christian Academy > A Higher Standard... > > > Another approach: When linux loads the modules it assigns the names by the order of loading. If the module for the Intel NIC is loaded first it becomes eth0, the next NIC whose module is loaded becomes eth1 and so on. If you have your drivers built into the kernel then the names are related to the PCI slots - the NIC connected to the PCI with lowest number become eth0 and so on. So you could change their places on the main board. HTH -- Best regards, Daniel -- gentoo-user@gentoo.org mailing list