From owner-freebsd-net@FreeBSD.ORG Tue Jan 13 11:25:19 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 5C16F106564A for ; Tue, 13 Jan 2009 11:25:19 +0000 (UTC) (envelope-from yoniy@mellanox.co.il) Received: from mellanox.co.il (mail.mellanox.co.il [194.90.237.43]) by mx1.freebsd.org (Postfix) with ESMTP id 8E9D48FC0A for ; Tue, 13 Jan 2009 11:25:17 +0000 (UTC) (envelope-from yoniy@mellanox.co.il) Received: from Internal Mail-Server by MTLPINE1 (envelope-from yoniy@mellanox.co.il) with SMTP; 13 Jan 2009 12:58:34 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Tue, 13 Jan 2009 12:58:32 +0200 Message-ID: <5D49E7A8952DC44FB38C38FA0D758EAD01736127@mtlexch01.mtl.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Using device.hints to determine network device unit number Thread-Index: Acl1beAG6FuxsdXgT3+8lg6M7YA9JQ== From: "Yehonatan Yossef" To: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Eitan Shefi , Oleg Kats , Liran Liss Subject: Using device.hints to determine network device unit number 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: Tue, 13 Jan 2009 11:25:19 -0000 Hi,=20 =20 I would like to determine the unit number of my network cards, make the device on pci0:16 appear always as mtnic0 and pci0:9 appear always as mtnic1. =20 # pciconf -l | grep mtnic mtnic0@pci0:19:0:0: class=3D0x020000 card=3D0x001715b3 = chip=3D0x636815b3 rev=3D0xa0 hdr=3D0x00 mtnic1@pci0:16:0:0: class=3D0x020000 card=3D0x001715b3 = chip=3D0x636815b3 rev=3D0xa0 hdr=3D0x00 =20 Is it done by /boot/device.hints? if so, how? I've tried: =20 hint.mtnic.0.at=3D"pci0:16" hint.mtnic.1.at=3D"pci0:19" =20 but it doesn't work. They keep switching upon reboot. I'm using FreeBSD 7.0. =20 Thanks Yony =20