From owner-freebsd-hackers Thu Jun 21 9:20:34 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from peorth.iteration.net (peorth.iteration.net [208.190.180.178]) by hub.freebsd.org (Postfix) with ESMTP id 94E6437B408 for ; Thu, 21 Jun 2001 09:20:26 -0700 (PDT) (envelope-from keichii@iteration.net) Received: by peorth.iteration.net (Postfix, from userid 1001) id 9505959228; Thu, 21 Jun 2001 11:20:24 -0500 (CDT) Date: Thu, 21 Jun 2001 11:20:24 -0500 From: "Michael C . Wu" To: list tracker Cc: hackers@FreeBSD.ORG Subject: Re: multiple pccard_ifconfig statements in one rc.conf ? Problems. Message-ID: <20010621112024.A67812@peorth.iteration.net> Reply-To: "Michael C . Wu" References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from list_tracker@hotmail.com on Thu, Jun 21, 2001 at 04:13:29PM -0000 X-PGP-Fingerprint: 5025 F691 F943 8128 48A8 5025 77CE 29C5 8FA1 2E20 X-PGP-Key-ID: 0x8FA12E20 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 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