From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Randy.Dunlap" Date: Fri, 21 Nov 2003 03:40:58 +0000 Subject: Re: [PATCH] All my Pcmcia cards are 'eth0' Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, 20 Nov 2003 22:28:19 -0500 Bill Nottingham wrote: | Jean Tourrilhes (jt@bougret.hpl.hp.com) 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 ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel