Networking Forums

Networking Forums > Computer Networking > Linux Networking > enumeration order of eth interfaces

Reply
Thread Tools Display Modes

enumeration order of eth interfaces

 
 
doug
Guest
Posts: n/a

 
      05-30-2005, 10:12 AM
Hi all,

Hopefully a quick question for you. Please tell me if this is the wrong
newsgroup for such a question.

I have a 2.4 system (RH8) with three ethernet interfaces, eth0, 1, 2. When
I upgrade this box to use the 2.6 kernel, the order of these interfaces
changes (physically, eth0 becomes eth2, and vice versa).

This only happens on particular hardware - other boxes do not have this
issue.

Any odea what's going on?

Thanks in advance,
Doug


 
Reply With Quote
 
 
 
 
Andrew Schulman
Guest
Posts: n/a

 
      05-30-2005, 01:04 PM
>
> I have a 2.4 system (RH8) with three ethernet interfaces, eth0, 1, 2.
> When I upgrade this box to use the 2.6 kernel, the order of these
> interfaces changes (physically, eth0 becomes eth2, and vice versa).
>
> This only happens on particular hardware - other boxes do not have this
> issue.
>
> Any odea what's going on?


No, but if it's important for you to be able to definitely refer to a
certain interface by a certain name, you can use nameif or ifrename to
assign arbitrary names to interfaces with given attribuates, e.g. MACs.
I've used both and find ifrename to be a little more flexible, and also
IIRC hotplug will call it (and not nameif) when the interface comes up to
rename it automatically.

--
To reply by email, change "deadspam.com" to "alumni.utexas.net"

 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      05-30-2005, 01:13 PM
On Mon, 30 May 2005 10:12:01 GMT, doug wrote:
> Hi all,
>
> Hopefully a quick question for you. Please tell me if this is the wrong
> newsgroup for such a question.
>
> I have a 2.4 system (RH8) with three ethernet interfaces, eth0, 1, 2. When
> I upgrade this box to use the 2.6 kernel, the order of these interfaces
> changes (physically, eth0 becomes eth2, and vice versa).


As I misunderstand it, they are numbered in the order they are found
on the buss when the kernel probes it.

>
> This only happens on particular hardware - other boxes do not have this
> issue.
>
> Any odea what's going on?


Guessing Plug-N-Play is not set NO/OFF/FALSE in the pc's bios.
 
Reply With Quote
 
doug
Guest
Posts: n/a

 
      05-30-2005, 03:02 PM

"Bit Twister" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Mon, 30 May 2005 10:12:01 GMT, doug wrote:
>> Hi all,
>>
>> Hopefully a quick question for you. Please tell me if this is the wrong
>> newsgroup for such a question.
>>
>> I have a 2.4 system (RH8) with three ethernet interfaces, eth0, 1, 2.
>> When
>> I upgrade this box to use the 2.6 kernel, the order of these interfaces
>> changes (physically, eth0 becomes eth2, and vice versa).

>
> As I misunderstand it, they are numbered in the order they are found
> on the buss when the kernel probes it.


Yeah, that's what I thought, but why is this order switched on 2.6 on
certain machines (i.e. what's so special about *this* hardware?) And is
there any way to specify this order myself?

>
>>
>> This only happens on particular hardware - other boxes do not have this
>> issue.
>>
>> Any odea what's going on?

>
> Guessing Plug-N-Play is not set NO/OFF/FALSE in the pc's bios.


I wonder if it could be that simple! I'll have a check tomorrow. Thx!

Doug


 
Reply With Quote
 
doug
Guest
Posts: n/a

 
      05-31-2005, 01:14 AM

"Andrew Schulman" <(E-Mail Removed)> wrote in message
news:UbEme.42932$(E-Mail Removed). ..
>>
>> I have a 2.4 system (RH8) with three ethernet interfaces, eth0, 1, 2.
>> When I upgrade this box to use the 2.6 kernel, the order of these
>> interfaces changes (physically, eth0 becomes eth2, and vice versa).
>>
>> This only happens on particular hardware - other boxes do not have this
>> issue.
>>
>> Any odea what's going on?

>
> No, but if it's important for you to be able to definitely refer to a
> certain interface by a certain name, you can use nameif or ifrename to
> assign arbitrary names to interfaces with given attribuates, e.g. MACs.
> I've used both and find ifrename to be a little more flexible, and also
> IIRC hotplug will call it (and not nameif) when the interface comes up to
> rename it automatically.
>
> --
> To reply by email, change "deadspam.com" to "alumni.utexas.net"
>


Wierd, didn't see your post 'till now.

Thanks though. I'll have a look and let you know!

Ta,
Doug


 
Reply With Quote
 
Allen McIntosh
Guest
Posts: n/a

 
      05-31-2005, 03:28 AM

> Yeah, that's what I thought, but why is this order switched on 2.6 on
> certain machines (i.e. what's so special about *this* hardware?) And is
> there any way to specify this order myself?

More detail needed - do all three interfaces use the same driver? (I'm
guessing yes, since otherwise the module mapping suffices to fix the order.)
 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      05-31-2005, 03:36 AM
On Mon, 30 May 2005 23:28:08 -0400, Allen McIntosh wrote:
>
>> Yeah, that's what I thought, but why is this order switched on 2.6 on
>> certain machines (i.e. what's so special about *this* hardware?) And is
>> there any way to specify this order myself?

> More detail needed - do all three interfaces use the same driver? (I'm
> guessing yes, since otherwise the module mapping suffices to fix the order.)


Another suggestion is to check the boot loader config files to see
if the Advanced Programmable Interrupt Controller (APIC) setting is different.
 
Reply With Quote
 
doug
Guest
Posts: n/a

 
      05-31-2005, 08:43 AM

"Allen McIntosh" <(E-Mail Removed)> wrote in message
news:cRQme.3847$(E-Mail Removed)...
>
>> Yeah, that's what I thought, but why is this order switched on 2.6 on
>> certain machines (i.e. what's so special about *this* hardware?) And is
>> there any way to specify this order myself?

> More detail needed - do all three interfaces use the same driver? (I'm
> guessing yes, since otherwise the module mapping suffices to fix the
> order.)


Sorry:
In 2.4, eth0 and eth1 are gigabit ethernet drivers (e1000), and eth2 is an
eepro100.
After I install the 2.6 kernel and reboot, the machine won't get on the
network until:
- I swap the aliases for eth0 and eth2 in /etc/modprobe.conf
- I swap (and massage, a little) the ifcfg-eth0 and -the2 network-script
files

Ta,
Doug


 
Reply With Quote
 
Allen McIntosh
Guest
Posts: n/a

 
      05-31-2005, 01:43 PM
> In 2.4, eth0 and eth1 are gigabit ethernet drivers (e1000), and eth2 is an
> eepro100.
> After I install the 2.6 kernel and reboot, the machine won't get on the
> network until:
> - I swap the aliases for eth0 and eth2 in /etc/modprobe.conf
> - I swap (and massage, a little) the ifcfg-eth0 and -the2 network-script
> files


Is the statement "the 2.6 kernel discovers the two e1000 cards in the
opposite order" consistent with your facts? Look really carefully at
boot messages (iirc they contain the MAC address). I haven't used 2.6
enough to have a clue why this should be so. I have machines with
similar hardware, so I expect I'll have to figure it out eventually.
 
Reply With Quote
 
doug
Guest
Posts: n/a

 
      05-31-2005, 05:47 PM

"Allen McIntosh" <(E-Mail Removed)> wrote in message
news:JRZme.1736$(E-Mail Removed)...
>> In 2.4, eth0 and eth1 are gigabit ethernet drivers (e1000), and eth2 is
>> an eepro100.
>> After I install the 2.6 kernel and reboot, the machine won't get on the
>> network until:
>> - I swap the aliases for eth0 and eth2 in /etc/modprobe.conf
>> - I swap (and massage, a little) the ifcfg-eth0 and -the2 network-script
>> files

>
> Is the statement "the 2.6 kernel discovers the two e1000 cards in the
> opposite order" consistent with your facts? Look really carefully at boot
> messages (iirc they contain the MAC address). I haven't used 2.6 enough
> to have a clue why this should be so. I have machines with similar
> hardware, so I expect I'll have to figure it out eventually.


Yeah. Let's call the adapters G1, G2 and M3 (for the two gigabyte ports,
and the one 10/100 port).

On 2.4, on a particular set of hardware, we get this mapping:
- G1 is bound to eth0
- G2 is bound to eth1
- M3 is bound to eth2

On 2.6, *on this partuclar hardware only*, we get:
- M3 is bound to eth0
- G2 is bound to eth1
- G1 is bound to eth2

And the only reason I can find for this happening so far is to piss me off!

Doug


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access based enumeration Karen Wayland Windows Networking 1 02-12-2008 05:03 AM
Access Based Enumeration on Domain Controllers ? Stuart Windows Networking 1 02-28-2007 02:43 AM
Access Based Enumeration FletchInRaleigh Windows Networking 3 09-04-2006 10:48 PM
Access-based Enumeration doesn't work Drew Windows Networking 1 03-20-2006 07:30 PM
Anonymous Enumeration of accounts and shares Goo@tuxiecomputing.com Windows Networking 3 02-22-2005 06:54 PM



1 2 3 4 5 6 7 8 9 10 11