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.
--
+-----------------------------------------------------------+
| [EMAIL PROTECTED] | [EMAIL PROTECTED] |
| http://iteration.net/~keichii | Yes, BSD is a conspiracy. |
+-----------------------------------------------------------+
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message