From owner-freebsd-hardware@FreeBSD.ORG Tue Apr 16 19:03:21 2013 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D6161B8E; Tue, 16 Apr 2013 19:03:21 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx1.freebsd.org (Postfix) with ESMTP id 59222100F; Tue, 16 Apr 2013 19:03:21 +0000 (UTC) Received: by mail-vc0-f173.google.com with SMTP id gf12so697024vcb.32 for ; Tue, 16 Apr 2013 12:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=wmmhsbq4zCPOEQHAmFllhh8bDk6Js4Md8hhhw5uG+bc=; b=zwteLh/xJtZjLMrZb2qtQcdgxGxhjkAeARlmySjVEDztVI67tVYt4HKetRCmt4PTU3 o+ig//DMV8MTdVtRXMX7BPcPWArPbJqGXp1ndXO4p2sPVUQW+aATAlsMMbSKmC4GwVDR kSdqBwire5y4d/MvBqX8Eplk1cRZoLrrWBazOnUWpB9lE0VJ/CWwjvji3oXXdzbJR+TL XQuefbWhNwF5QLFy9xj0zspvf67I0+QNuy6awiFC4BiiwqZPgU02KyEI0ApP+nj9lLVN pw72oEYsk2zfWxXdD/jePMzFlD4VdETNiQG3Q4t8dQWkOFZPaF+ONXUX2L/Nek0LcyAg l1sg== MIME-Version: 1.0 X-Received: by 10.52.249.105 with SMTP id yt9mr2134726vdc.86.1366138994830; Tue, 16 Apr 2013 12:03:14 -0700 (PDT) Received: by 10.58.132.203 with HTTP; Tue, 16 Apr 2013 12:03:14 -0700 (PDT) In-Reply-To: <20130416183618.GG98205@lor.one-eyed-alien.net> References: <20130416135621.GE3286@vpn.offrom.nl> <20130416154423.GD98205@lor.one-eyed-alien.net> <20130416183618.GG98205@lor.one-eyed-alien.net> Date: Tue, 16 Apr 2013 12:03:14 -0700 Message-ID: Subject: Re: control of order of inet devices From: Mehmet Erol Sanliturk To: Brooks Davis Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Adrian Chadd , freebsd-current , Willy Offermans , "freebsd-hardware@freebsd.org" X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Apr 2013 19:03:21 -0000 On Tue, Apr 16, 2013 at 11:36 AM, Brooks Davis wrote: > On Tue, Apr 16, 2013 at 10:08:00AM -0700, Adrian Chadd wrote: > > Since people keep asking about this; maybe it's time we added a hint > > to the bus code that allows for the unit to be set based on the pci > > bus / slot / etc. > > I don't see how that would address Willy's request. Neither the unit > number or the if_index of an interface effects its order in > getifaddrs() output. > > With modern bus hierarchies, you probably don't want to use the unit > anyway as it loses too much information. Some along the lines of > Fedora's Consistent Network Device Naming would likely be more useful. > That would be fairly easy to implement. > > -- Brooks > Fedora is using eth0 , ... , eth9 , but FreeBSD is using em* , re* , .. names which is much better than Fedora ( or similar distributions ) approach . In eth0 , ... , usage , it is necessary to record MAC addresses of the NIC units ( because any name is not displayed like FreeBSD ) BEFORE starting an installation to isolate which one is referenced : Even this is not very useful sometimes because I am seeing they ( different Linux distributions ) are reporting MAC addresses differently for some NIC units , and no one of them is identical to others to number eth with existing NIC units ( for example , eth0 is not used for the same NIC by all the distributions , i.e. , there is no any standard numbering scheme ) . FreeBSD is using names ( Realtek , Intel , etc with other information also ) which is very easy to understand which NIC unit is referenced . I think , in FreeBSD , the problem may occur when all of the NIC units are the same model . For such cases , there is a necessity to display also slot / port information ( in that case MAC address is not showing slot / port information ) . Thank you very much . Mehmet Erol Sanliturk