[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

[Summary] Swap names of eth0 and eth1



Hi,

I got a dozen or so replies. Thanks to echase, Mark, Jim, Bishop, Brian,
Skylar, Steven.

The reason I wanted to have this was for easy counting. I'm lazy and just
wanted to think of eth0 as the internal network and eth1 as the public
network, with eth0 belonging to the card in the lower PCI slot. This is
especially the case after unplugging cabling and moving stuff around. Like I
said I'm too lazy to label the cables.

In the end, I followed the first solution suggested to me: just swap the
cables that were being plugged into the NICs.

Most people suggested to swap the cards in their respective PCI slots.
Unfortunately this didn't work because the IRQs were getting assigned by PCI
slot. The detection by the driver (I'm told) is done via base address for
ISA cards and via IRQ with PCI cards.

Other suggestions included changing the order of NIC modules, but since the
two cards are identical, the module detects both cards when the module is
loaded.

I had a suggestion to swap the network start up scripts, which I didn't try
but am not sure that it would work because of the detection mechanism
described above.

Thien

----- Original Message -----
From: "Thien Vu" <thien_vu@hotmail.com>
To: <linuxmanagers@linuxmanagers.org>
Sent: Thursday, March 14, 2002 7:47 PM
Subject: Swap names of eth0 and eth1


> Hi all,
>
> I have two Netgear FA-310 TX cards plugged into a Abit BX6-2, in slots 1
and
> 2. These cards have the Lite-On chipset.
> The card in PCI Slot 1 has IRQ 12 and is assigned the name 'eth1'.
> The card in PCI Slot 2 has IRQ 10 and is assigned the name 'eth0'.
>
> I was wondering if there was any way to have the kernel swap the name
> assignments so it looks like:
> PCI Slot 1 --> IRQ 12 --> eth0
> PCI Slot 2 --> IRQ 10 --> eth1
>
> I am using the latest kernel and am using the 'tulip' driver.
>
> Thanks, will summarize.
>
> Thien
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers@linuxmanagers.org
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers

[Home]     [Kernel List]     [Linux SCSI]     [Video 4 Linux]     [Linux Admin]     [Yosemite News]     [Motherboards]

Powered by Linux