From owner-freebsd-net@FreeBSD.ORG Tue Jan 13 11:03:42 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 EB0CF106567C; Tue, 13 Jan 2009 11:03:42 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 48D2F8FC14; Tue, 13 Jan 2009 11:03:41 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so233248ugs.39 for ; Tue, 13 Jan 2009 03:03:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:mime-version:content-type:x-mailer:thread-index :x-mimeole; bh=slyDW/xUnTsJKGKiYNFlQ3hh2pMuMxXfH7A23qrkE1A=; b=ssiQAWBxmSkLTwePBONVZkVqcRQ4QdM6caB0IifN+Xyrp+sXbWHA9NtBnGsdiAhJBE l6a/opy93V8sE4XDBHhnLoEgT5OaTWaAp1GWZC5oca/+ho4N1r7BI40sALUglKHPLKR5 CM8CMxeaUKhFMUhk8auZlHLCr7lfTe3dWlGeU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:mime-version:content-type :x-mailer:thread-index:x-mimeole; b=RrVtrHBUwCcbon1Q8xmmD/3iztlINzUCW4JrHIwOUHlaOMDEIOZGuTgHo2uqI7dW7q q7DH3LznQZku1VF+OJuaBaAHkuz1LNniGC12yq3odiJJ0GdUZxSa4UQfp0v2+qUK0KRC aBUEgFe5aepVR1GMv8w8AxDd2pNEACSAi8vLg= Received: by 10.67.100.10 with SMTP id c10mr1887083ugm.2.1231844613261; Tue, 13 Jan 2009 03:03:33 -0800 (PST) Received: from mtllpt03 (bzq-79-180-238-90.red.bezeqint.net [79.180.238.90]) by mx.google.com with ESMTPS id 39sm874112ugb.43.2009.01.13.03.01.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 13 Jan 2009 03:03:32 -0800 (PST) From: "Yony Yossef" To: , Date: Tue, 13 Jan 2009 13:01:43 +0200 Message-ID: <000501c9756e$9563d550$39ed1aac@mtl.com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acl1beAG6FuxsdXgT3+8lg6M7YA9JQAABcXg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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:03:44 -0000 Hi, 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. # pciconf -l | grep mtnic mtnic0@pci0:19:0:0: class=0x020000 card=0x001715b3 chip=0x636815b3 rev=0xa0 hdr=0x00 mtnic1@pci0:16:0:0: class=0x020000 card=0x001715b3 chip=0x636815b3 rev=0xa0 hdr=0x00 Is it done by /boot/device.hints? if so, how? I've tried: hint.mtnic.0.at="pci0:16" hint.mtnic.1.at="pci0:19" but it doesn't work. They keep switching upon reboot. I'm using FreeBSD 7.0. Thanks Yony