From owner-freebsd-questions Tue Feb 18 9:35:57 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFE7A37B401 for ; Tue, 18 Feb 2003 09:35:54 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BD0F43F3F for ; Tue, 18 Feb 2003 09:35:53 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id h1IHZm5P021430 for ; Tue, 18 Feb 2003 17:35:48 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id h1IHZm2J021429 for freebsd-questions@FreeBSD.ORG; Tue, 18 Feb 2003 17:35:48 GMT Date: Tue, 18 Feb 2003 17:35:48 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: NIC numbering Message-ID: <20030218173548.GB20940@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <20030215082835.A34779@badger.tltodd.com> <20030217123009.GA8983@postecom.it> <20030217130819.GA1275@raggedclown.net> <20030218110230.A42817@badger.tltodd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030218110230.A42817@badger.tltodd.com> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-3.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT,USER_AGENT_MUTT version=2.44 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 18, 2003 at 11:02:30AM -0600, Terry Todd wrote: > On Mon, Feb 17, 2003 at 02:08:19PM +0100, Cliff Sarginson wrote: > > On Mon, Feb 17, 2003 at 01:30:09PM +0100, Andrea Franceschini wrote: > > > On Sat, Feb 15, 2003 at 08:28:35AM -0600, Terry Todd wrote: > > > > When you have more than one of the same type of NIC card in one > > > > machine is there a way to insure that the NIC numbering remains > > > > attached to the same card / MAC address if more cards are added or > > > > they are moved around? > > > > > > Here's an example. > > The original setup: > > $ ifconfig -a > rl0: flags=8802 mtu 1500 > ether 00:e0:29:85:49:b6 > media: Ethernet autoselect (10baseT/UTP) > status: no carrier > rl1: flags=8802 mtu 1500 > ether 00:e0:29:85:49:d0 > media: Ethernet autoselect (10baseT/UTP) > status: no carrier > > After the cards are switched around in the PCI slots: > > $ ifconfig -a > rl0: flags=8802 mtu 1500 > ether 00:e0:29:85:49:d0 > media: Ethernet autoselect (10baseT/UTP) > status: no carrier > rl1: flags=8802 mtu 1500 > ether 00:e0:29:85:49:b6 > media: Ethernet autoselect (10baseT/UTP) > status: no carrier > > How can I keep rl0 associated with MAC 00:e0:29:85:49:b6 > and rl1 associated with MAC 00:e0:29:85:49:d0 and still > be able to add cards or move them around? About the best you can do is use ifconfig(8) to set the MAC address at the same time as you configure the interface: ifconfig rl0 ether 00:e0:29:85:49:b6 ifconfig rl1 ether 00:e0:29:85:49:d0 which will cause the MAC address to stick with the interface number, rather than the actual card. That will work if you just keep the two cards as you've shown here, but if you add a new card that happens to end up as rl0 then you'll probably end up with a mess. As far as I know, there's no way of wiring down interface numbers to PCI bus slots, analogously to the way you can wire down SCSI devices by bus, target and LUN --- see the section on 'SCSI DEVICE CONFIGURATION' in LINT. You'ld probably have to go a bit linux-ish and have, say, eth0 as the generic name for an ethernet interface independant of the actual chipset on the NIC in order to make the most sense of that sort of wiring-down idea. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message