From owner-freebsd-net@FreeBSD.ORG Thu Jan 15 10:29:11 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1579106566B for ; Thu, 15 Jan 2009 10:29:11 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id 7D1968FC0A for ; Thu, 15 Jan 2009 10:29:10 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.13.1/8.13.1) with ESMTP id n0F9kNod024511 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 Jan 2009 16:46:23 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.2/8.12.11) id n0F9nCWt065667; Thu, 15 Jan 2009 16:49:12 +0700 (ICT) Date: Thu, 15 Jan 2009 16:49:12 +0700 (ICT) Message-Id: <200901150949.n0F9nCWt065667@banyan.cs.ait.ac.th> From: Olivier Nicole To: yonyossef.lists@gmail.com In-reply-to: <001601c976f5$c015f7a0$220f000a@mtl.com> (yonyossef.lists@gmail.com) References: <20def4870901140009y1f007108y92797d5f79ffac08@mail.gmail.com> <496E11B7.3010608@sepehrs.com> <000b01c9768e$745aa160$220f000a@mtl.com> <496EF30E.4010304@sepehrs.com> <000c01c976ec$87e040b0$220f000a@mtl.com> <496F012A.2040807@sepehrs.com> <001601c976f5$c015f7a0$220f000a@mtl.com> X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Cc: freebsd-net@freebsd.org, fazaeli@sepehrs.com, freebsd-questions@freebsd.org, yonyossef.lists@gmail.com Subject: Re: howto determine network device unit number? device.hints? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2009 10:29:11 -0000 Hi, Sorry to jump in but... > Problem is, this unit number is not constant and changing arbitrarily every > time I reload the driver (card A unit number=0 & card B un=1 or the other > way around). Since I have been using FreeBSD, the NIC had always been given the same unit number (that is, unless I play and swap the hardware inside the machine). And that is the normal behaviour. Of course at each boot the interface em0 remains interface em0 and ithe interface em1 remains interface em1, else it would be a headache. > Plus, I still don't understand why the unit number should change at all, > instead of being determined according to the card PCI location or some other > constant. Not only it should not change, but you are the first person I ever see mentioning that it change at each boot. Bests, Olivier