Re: [PATCH] All my Pcmcia cards are 'eth0'

From: Jean Tourrilhes
Date: Fri Nov 21 2003 - 12:24:19 EST


On Thu, Nov 20, 2003 at 07:40:58PM -0800, Randy.Dunlap wrote:
> On Thu, 20 Nov 2003 22:28:19 -0500 Bill Nottingham <notting@xxxxxxxxxx> wrote:
>
> | Jean Tourrilhes (jt@xxxxxxxxxxxxxxxxxx) said:
> | > One of the main problem is that they are all assigned 'eth0',
> | > and therefore all configured with the same IP address. This is really
> | > pathetic.
> | >
> | > The usual answer is : you should use 'nameif' :
> | > http://www.xenotime.net/linux/doc/network-interface-names.txt
> | > Well, of course, nobody ever bothered to try it, so it doesn't
> | > work. No comments.
> |
> | Well, no offense, but I'd think comments are necessary about no
> | one bothering to try it and it not working. I've had an orinoco_cs
> | device 'bob' using nameif for a while.
>
> Jean, have you given me any feedback on that small howto and it
> not working? If so, I've missed it and I apologize for that.

I may be real dense, but your Howto only describe using nameif
at boot time, which is mostly useless for Pcmcia cards (unless you
want to solder Pcmcia cards in their slots).

> I use that method both at home and at work all the time,
> with no problems, but I haven't tried it with PCMCIA cards, so
> that's something that might need some work, as you have discovered.

That's the point. If you want it to work with Pcmcia cards
(and other dynamic devices such as USB), 'nameif" *must* be called
from the hotplug scripts (pretty obvious, isn't it ?). And currently
you can't do that properly, which is the reason of my changes.
Note that once you add nameif in the hotplug scripts, you no
longer need to call it at boot time, so with one bird you kill two
stones.

> ~Randy

Thanks for looking into that.

Jean
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/