Re: [gentoo-user] Ethernet Card Init order?
This is my lilo (grub has the same thing) append=ether=5,0xe400,eth0 ether=10,0x300,eth1 and it ensures that eth0 is the one on irq5 and eth1 on irq10 On Wed, 2005-04-20 at 13:43 -0400, fire-eyes wrote: I have two NIC's in a server. One always comes up as eth0, the other always eth1. One is on-board, the other is an add-on. I'd like to swap them around, that is to say, have the NIC that is currently eth0 become eth1, and the NIC which is eth1 become eth0. Is this possible? -- Tres -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Ethernet Card Init order?
On Wed, 2005-04-20 at 19:53 +0200, Richard Fish wrote: fire-eyes wrote: I have two NIC's in a server. One always comes up as eth0, the other always eth1. One is on-board, the other is an add-on. I'd like to swap them around, that is to say, have the NIC that is currently eth0 become eth1, and the NIC which is eth1 become eth0. If they use the same driver, probably not. If they use separate drivers, you just need to build the drivers as modules, and load them in the order you want. But, why do you care?? As long as it's consistent, can't you reliably configure both cards however you want?? One is gigabit and needs to be eth0, and connected to the lan. The other to the wan. It's just the way we do things here. As far as modules that's an idea, whoever won't work here, I don't enable modules at all for server kernels... I betchya there's a kernel paramater that you can shove into the bootloader to have passed on, just not sure what it is :) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Ethernet Card Init order?
fire-eyes wrote: I betchya there's a kernel paramater that you can shove into the bootloader to have passed on, just not sure what it is :) It seems you are correct. According to http://www.ibiblio.org/mdw/HOWTO/Ethernet-HOWTO-8.html#lilo And /usr/src/linux/Documentation/kernel-parameters.txt, you should be able to get away with just netdev=eth1,eth0 Notice that ether= is obsolete in 2.6, it should be netdev=. -Richard -- gentoo-user@gentoo.org mailing list
Re: Re: [gentoo-user] Ethernet Card Init order?
Check the Gentoo udev docs which have links to a couple of good sites that are helpful. From: Richard Fish [EMAIL PROTECTED] Date: 2005/04/20 Wed PM 02:55:07 EDT To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Ethernet Card Init order? Neil Bothwick wrote: Alternatively, you can use udev to give them whatever names you like. Huh? How? -Richard -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Ethernet Card Init order?
On Wed, 20 Apr 2005 21:01:18 +0200, Richard Fish wrote: Alternatively, you can use udev to give them whatever names you like. Does it actually work for renaming eth0 to eth1 and eth1 to eth0, or does it only work for renaming eth0 to lan0, for example? Probably not, because you could end up with both having the same name at some point. Do you need those names, or just something consistent? Naming them lan0 and wan0 would seem better. If nothing else, it would make your config files and scripts more readable. -- Neil Bothwick New: Different color from previous model. pgpuzzL52k2zw.pgp Description: PGP signature
Re: [gentoo-user] Ethernet Card Init order?
Neil Bothwick wrote: Probably not, because you could end up with both having the same name at some point. Do you need those names, or just something consistent? Naming them lan0 and wan0 would seem better. If nothing else, it would make your config files and scripts more readable. Just in case the reply-to-myself has things confused, it is actually fire-eyes problem, not mine! He has and wants eth0 and eth1, which are both wired connections. He just wants them swapped. For me, both my spare ethernet pccard and wireless pccard come up as eth1, and I have no particular issue with that. I do think there _should _ be a standard naming convention for wireless cards, but I don't really care whether it is ethX or wlanX. Now athX on the other hand -Richard -- gentoo-user@gentoo.org mailing list