Re: swapping network cards

From: <captgoodnight@acsalaska.net>
Date: Thu Jul 15 2004 - 19:57:15 AKDT

On Wednesday 14 July 2004 05:41 pm, Justin Dieters wrote:
> I am trying to set up my laptop so I can easily switch out the wireless
> card with the wired card (both PCMCIA) and vice-versa. However, I am
> having trouble getting it to work right. I assume one card must be set
> up as eth0 and the other as eth1,

Not really. Sometimes eth0 and wlan0, or just eth0...

> but it seems that since only one or
> the other card is in at a time, it gets confused and thinks the wireless
> card is the 10/100 card and the 10/100 card is the wireless card and
> things like that.

module load confusion maybe

> When this happens I can't get anything to work unless
> I delete all the configuration (using redhat-config-network) for the
> network cards and redo them from scratch using just one of the cards.
>
> Perhaps there is something I'm missing. I've tried binding the devices
> to the MAC address, but then it just complains that MAC addresses don't
> match. I've got the appropriate aliases for eth0 and eth1 in
> /etc/modules.conf.
>
> I'm hoping someone out there knows what my be the problem or what I am
> doing wrong.
>

Okay, I maybe able to help here. I use two different modules for my wireless card. Kinda the
same scenario as yours, not exactly, but close enough I think. Here's my gig, let's say I want to use
/etc/pcmcia/hostap_cs.conf (hostap modules) instead of /etc/pcmcia/wlan-ng.conf (wlanng module).

state is up and running with wlanng module.

ifconfig wlan0 down
rmmod prism2_cs p80211
cardmgr eject (this is important here, maybe not there)
then I physically remove the card
mv /etc/pcmcia/wlan-ng.conf /etc/pcmcia/wlan-ng.conf.save (keeps pcmcia_cs from loading it out of confusion)
mv /etc/pcmcia/hostap_cs.conf.save /etc/pcmcia/hostap_cs.conf (I previously added the save to use the wlanng module)
service pcmcia restart (important!)
insert card
presto, hostap module is used with no conflicts what so ever.

My ip,netmask,gw,and ... is stored in /etc/pcmcia/network.opts, this never changes here though. It sounds like module/pcmcia_cs
confusion. I'm not sure if wireless uses the same /etc/pcmcia/network.opts as the wired card does, but I reckon so. If you desire
separate configs for /etc/pcmcia/network.opts, then use the .save method from above. And of course, when the method is solid,
just script it or add it as a function to .bashrc.

Hope it helps,
eddie

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Thu Jul 15 19:56:32 2004

This archive was generated by hypermail 2.1.8 : Thu Jul 15 2004 - 19:56:32 AKDT