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

From: Randy.Dunlap
Date: Thu Nov 20 2003 - 22:53:56 EST


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 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.

home:
[rddunlap@midway rddunlap]$ ifconfig
ethmain Link encap:Ethernet HWaddr 00:07:E9:09:09:A8
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:134362 errors:0 dropped:0 overruns:0 frame:0
TX packets:166363 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:72537067 (69.1 Mb) TX bytes:22872312 (21.8 Mb)
Interrupt:11 Base address:0xde80 Memory:ff9a0000-0

work:
[rddunlap@gargoyle rddunlap]$ /sbin/ifconfig
ethmain Link encap:Ethernet HWaddr 00:02:55:1A:35:D4
inet addr:172.20.1.49 Bcast:172.20.255.255 Mask:255.255.0.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17339 errors:0 dropped:0 overruns:0 frame:0
TX packets:777 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1668859 (1.5 Mb) TX bytes:103545 (101.1 Kb)
Interrupt:16 Base address:0x7000


| There are some situations where you have to jump through hoops
| because it can't atomically swap two device names (i.e.,
| eth0 <-> eth1, but the code itself seems to work ok in use here...

--
~Randy
-
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/