Date: Thu, 21 Jun 2001 11:20:24 -0500 From: "Michael C . Wu" <keichii@iteration.net> To: list tracker <list_tracker@hotmail.com> Cc: hackers@FreeBSD.ORG Subject: Re: multiple pccard_ifconfig statements in one rc.conf ? Problems. Message-ID: <20010621112024.A67812@peorth.iteration.net> In-Reply-To: <F65chy8yKHdMvorTCl3000215da@hotmail.com>; from list_tracker@hotmail.com on Thu, Jun 21, 2001 at 04:13:29PM -0000 References: <F65chy8yKHdMvorTCl3000215da@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010621112024.A67812>
