From owner-freebsd-questions@FreeBSD.ORG Wed Jan 14 21:24:23 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 604D41065672; Wed, 14 Jan 2009 21:24:23 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id B46E88FC24; Wed, 14 Jan 2009 21:24:22 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so339912ugs.39 for ; Wed, 14 Jan 2009 13:24:21 -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=2G3hJK5DrqV8EvhW/aDYWUXSPtndl/EDv/677ZY2aTA=; b=tztvsV5YyAHlEYXtnpNk8QqmLU0XidEhqUO4hQNzRoOaZmwkemhSOo0b0/YbIyJg6c s7XTZiwLCYkRt9Ez/9ltefhI6dVgChlI24KYSM6Ae/uP7YfU5T+26Ph0inzcqGa7Qe9O eKSkIxE1uGi0h7BtginjG/F8rStfH9HegviSk= 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=NO4G7YtOXdFPszniaL3gAmmZR1LN/RNqAZ2WB5Nuk5pDuCW4Pno8J50fBe35M8AD1d HkPcSeCWRL1EV/DP/A7du6T2JTIv7s42Rsq4QlakEKqwR+x9ylrh21s/ASDECS4kTrUO 4TPUVu3OZE1O9X7vbeveoCs+BPeV++4XcaElM= Received: by 10.67.25.9 with SMTP id c9mr2907496ugj.14.1231968261357; Wed, 14 Jan 2009 13:24:21 -0800 (PST) Received: from mtllpt03 (bzq-79-180-238-90.red.bezeqint.net [79.180.238.90]) by mx.google.com with ESMTPS id u1sm5380686uge.55.2009.01.14.13.24.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 14 Jan 2009 13:24:20 -0800 (PST) From: "Yony Yossef" To: "'H.fazaeli'" References: <20def4870901140009y1f007108y92797d5f79ffac08@mail.gmail.com> <496E11B7.3010608@sepehrs.com> Date: Wed, 14 Jan 2009 23:24:12 +0200 Message-ID: <000b01c9768e$745aa160$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+eTfDCOC1kvQAKbJWQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 In-Reply-To: <496E11B7.3010608@sepehrs.com> Cc: freebsd-net@freebsd.org, freebsd-questions@freebsd.org Subject: RE: howto determine network device unit number? device.hints? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2009 21:24:24 -0000 > -----Original Message----- > From: H.fazaeli [mailto:fazaeli@sepehrs.com] > Sent: Wednesday, January 14, 2009 6:24 PM > To: Yony Yossef > Cc: freebsd-net@freebsd.org; freebsd-questions@freebsd.org; > Eitan Shefi; Oleg Kats; Liran Liss > Subject: Re: howto determine network device unit number? device.hints? > > > 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 > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > > > > > > > -- > > > Best regards. > > Hooman Fazaeli > Sepehr S. T. Co. Ltd. > > Web: http://www.sepehrs.com > Tel: (9821)88975701-2 > Fax: (9821)88983352 > > > > >