From owner-freebsd-hackers Thu Jun 21 10:24:33 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f116.law14.hotmail.com [64.4.21.116]) by hub.freebsd.org (Postfix) with ESMTP id C2DE037B401 for ; Thu, 21 Jun 2001 10:24:29 -0700 (PDT) (envelope-from list_tracker@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 21 Jun 2001 10:24:29 -0700 Received: from 64.242.6.171 by lw14fd.law14.hotmail.msn.com with HTTP; Thu, 21 Jun 2001 17:24:29 GMT X-Originating-IP: [64.242.6.171] From: "list tracker" To: keichii@peorth.iteration.net Cc: hackers@FreeBSD.ORG Subject: Re: multiple pccard_ifconfig statements in one rc.conf ? Problems. Date: Thu, 21 Jun 2001 17:24:29 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 21 Jun 2001 17:24:29.0522 (UTC) FILETIME=[07332B20:01C0FA77] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG So what you are saying is that there _is not_ any way to perform multiple pccard_ifconfig statements solely in /etc/rc.conf ? I feel that defining it in /etc/rc.conf is more elegant, and am surprised that it was built to work with one card but will not work with another one. btw, as I successfully use pccard_ifconfig for ep0, I note that I do not have a line in pccard.conf for ep0 (or for wi0) - both of these cards work fine out of rc.conf without entries in pccard.conf - just _not at the same time_, as you know. thanks for the example - LT >From: "Michael C . Wu" >Reply-To: "Michael C . Wu" >To: list tracker >CC: hackers@FreeBSD.ORG >Subject: Re: multiple pccard_ifconfig statements in one rc.conf ? >Problems. >Date: Thu, 21 Jun 2001 11:20:24 -0500 > >On Thu, Jun 21, 2001 at 04:13:29PM -0000, list tracker scribbled: >| >| I have two pc card NICs in my system - ep0 and wi0. All of the normal >| problems (irq, etc.) have been solved, and I am using them beautifully. >| >| The problem is, I would like to use the pccard_ifconfig directive to >| configure BOTH of these cards from /etc/rc.conf. >| >| Currently, I have _one_ pccard_ifconfig statement in rc.conf, and NO >normal >| ifconfig statements: >| >| pccard_ifconfig="DHCP" >| >| and this causes my ep0 (in slot 0) to successfully grab a DHCP address >and >| function on the network. Since I do not specify in any way which card to >| use, I am assuming that it just uses whichever card is in slot 0. >| >| So the logical thing to try (I thought) was this: >| >| pccard_ifconfig_ep0="DHCP" >| pccard_ifconfig_wi0="inet 10.10.10.10 netmask 255.255.255.0" >| >| But this does not work. >| >| How do I use the (very convenient) pccard_ifconfig mechanism in rc.conf >to >| configure multiple pccard NICs ? > >I know I posted earlier with the same stuff, but here is >another way to use this. > >Use pccard.conf just like this: >card "Lucent Technologies" "WaveLAN/IEEE" > config 0x1 "wi" ? > insert /etc/pccard_ether $device start > insert sh /etc/setup_wi > remove /etc/pccard_ether $device stop > remove /sbin/ifconfig $device delete > >The part of interest is "insert sh /etc/setup_wi" >Put your config scripts there, such as "ifconfig xxx" >and such. If you have seperate scripts for different >cards, you can setup as many cards as possible. > >-- >+-----------------------------------------------------------+ >| keichii@iteration.net | keichii@freebsd.org | >| http://iteration.net/~keichii | Yes, BSD is a conspiracy. | >+-----------------------------------------------------------+ > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-hackers" in the body of the message _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message