From owner-freebsd-net@FreeBSD.ORG Wed Jan 14 21:22:01 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 9DE31106566B; Wed, 14 Jan 2009 21:22:01 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id F19208FC0C; Wed, 14 Jan 2009 21:22:00 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so339744ugs.39 for ; Wed, 14 Jan 2009 13:22:00 -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:references:subject :date:message-id:mime-version:content-type:content-transfer-encoding :x-mailer:thread-index:x-mimeole:in-reply-to; bh=Bbs7Eg8jRJigA724edIgwwP1dfjGei1wOujtWT587Zo=; b=hCFRg+k8RnSd94j8Kq8DWnmzI38C+iSeaWDNGjFDNUHAaWEwANrNguEp1pgaqcPCaU Kj3KokzcizbuIBzkyV/z1WCgpoioSzS2v0An+yZzALU8XkV445OFtxcxN3HRMN2N4wbP CHUGFe6ieA1zaX8WxGL47asUFH0e21sd9kJBw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:references:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :x-mimeole:in-reply-to; b=CawGrMsLB2jisc5/DwNFMNeeBio2V9f+iUbCQfIof1txNnSGo0qVFLSs+YwyWGR+dT IR3LXWqscIMx67s+5KauZsiaDeEv5UfZLETwaqgggDBNmx6aUu3hwj709ZVeuDuz7mto b6Br589vnUq0Pysr0HoNfcIW8NsYMUoegi3tU= Received: by 10.66.224.19 with SMTP id w19mr2894987ugg.71.1231968119963; Wed, 14 Jan 2009 13:21:59 -0800 (PST) Received: from mtllpt03 (bzq-79-180-238-90.red.bezeqint.net [79.180.238.90]) by mx.google.com with ESMTPS id 40sm5382118uge.51.2009.01.14.13.21.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 14 Jan 2009 13:21:58 -0800 (PST) From: "Yony Yossef" To: "'H.fazaeli'" , "Yony Yossef" References: <20def4870901140009y1f007108y92797d5f79ffac08@mail.gmail.com> <496E11B7.3010608@sepehrs.com> Date: Wed, 14 Jan 2009 23:21:50 +0200 Message-ID: <000a01c9768e$1ff65240$220f000a@mtl.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acl2ZLFIvz5BW5IpTT+eTfDCOC1kvQAKTARQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 In-Reply-To: <496E11B7.3010608@sepehrs.com> Cc: Eitan Shefi , freebsd-net@freebsd.org, Oleg Kats , freebsd-questions@freebsd.org, Liran Liss 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: Wed, 14 Jan 2009 21:22:02 -0000 > > you may not change unit numbers as they are strictly > controlled by kernel. > However, on freebsd 5.3+, you may use 'ifconfig name ' > to achieve the same affect > Sorry, I don't understand the usage of ifconfig you suggested and the effect it will cause. Can you please explain it? Yony > > Yony Yossef wrote: > > Hi, > > > > I would like to determine the unit number of my network cards, e.g. > > make the device on pci0:16 be assigned every time with unit > number 0 > > and pci0:19 with unit number 1. > > > > Is it done by /boot/device.hints? > > if so, how? > > > > My cards are: > > > > 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 > > > > So I've tried: > > > > hint.mtnic.0.at="pci0:16" > > hint.mtnic.1.at="pci0:19" > > > > but it doesn't work. They keep switching arbitrarily. > > I'm using FreeBSD 7.0. > > > > Thanks > > Yony