* eth interface enumeration order
@ 2006-08-23 15:52 Victor Secarin
2006-08-23 16:13 ` Auke Kok
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Victor Secarin @ 2006-08-23 15:52 UTC (permalink / raw)
To: akpm, jgarzik, netdev
VERSION
With kernel 2.4.33.1:
HARDWARE
I have a server with two eepro100 and one e1000 interfaces
BEHAVIOR
When the kernel boots the drivers report (/var/log/messages) the
interfaces they find and what they are named (eth0, eth1, eth2)
1. With the drivers configured monolithically in the kernel:
e1000 reports eth0 and then eepro100 reports eth1 and eth2
2. With the drivers configured as modules:
eepro100 reports eth0 and eth1 and then e1000 reports eth2
PROBLEM
1. On a red hat distribution, different interfaces may have different
configuration scripts, which assign IP addresses and more, and the
scripts are identified by the ethx name.
2. It is necessary to control which interface becomes eth0 as various
programs use the MAC address of eth0 to identify the computer. In my
case that is "lmhostid" and all the FLEXlm software,
as I run a license server on that machine.
Thank you for taking the time to read this.
yours truly,
Victor Secarin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: eth interface enumeration order
2006-08-23 15:52 eth interface enumeration order Victor Secarin
@ 2006-08-23 16:13 ` Auke Kok
2006-08-23 16:46 ` Erik Mouw
2006-08-23 17:36 ` Stephen Hemminger
2 siblings, 0 replies; 4+ messages in thread
From: Auke Kok @ 2006-08-23 16:13 UTC (permalink / raw)
To: Victor Secarin; +Cc: netdev
Victor Secarin wrote:
> VERSION
> With kernel 2.4.33.1:
> HARDWARE
> I have a server with two eepro100 and one e1000 interfaces
> BEHAVIOR
> When the kernel boots the drivers report (/var/log/messages) the
> interfaces they find and what they are named (eth0, eth1, eth2)
> 1. With the drivers configured monolithically in the kernel:
> e1000 reports eth0 and then eepro100 reports eth1 and eth2
> 2. With the drivers configured as modules:
> eepro100 reports eth0 and eth1 and then e1000 reports eth2
> PROBLEM
> 1. On a red hat distribution, different interfaces may have different
> configuration scripts, which assign IP addresses and more, and the
> scripts are identified by the ethx name.
> 2. It is necessary to control which interface becomes eth0 as various
> programs use the MAC address of eth0 to identify the computer. In my
> case that is "lmhostid" and all the FLEXlm software,
> as I run a license server on that machine.
[ Please don't mail tree maintainers with this sort of question. ]
[ Try using the e100 driver instead of eepro100 ;) ]
there are several answers to this solution. First of all, you can build the
e100 driver into the kernel and use e1000 as a module, at which point the
in-kernel driver will always load first.
second of all, you can set `alias eth0 e100` in your /etc/modules.conf and
force that nic to be bound to the first interface.
other handwork includes manually installing the modules in the right order at
boot time.
Cheers,
Auke
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: eth interface enumeration order
2006-08-23 15:52 eth interface enumeration order Victor Secarin
2006-08-23 16:13 ` Auke Kok
@ 2006-08-23 16:46 ` Erik Mouw
2006-08-23 17:36 ` Stephen Hemminger
2 siblings, 0 replies; 4+ messages in thread
From: Erik Mouw @ 2006-08-23 16:46 UTC (permalink / raw)
To: Victor Secarin; +Cc: akpm, jgarzik, netdev
On Wed, Aug 23, 2006 at 09:52:56AM -0600, Victor Secarin wrote:
> VERSION
> With kernel 2.4.33.1:
> HARDWARE
> I have a server with two eepro100 and one e1000 interfaces
> BEHAVIOR
> When the kernel boots the drivers report (/var/log/messages) the
> interfaces they find and what they are named (eth0, eth1, eth2)
> 1. With the drivers configured monolithically in the kernel:
> e1000 reports eth0 and then eepro100 reports eth1 and eth2
Bus order.
> 2. With the drivers configured as modules:
> eepro100 reports eth0 and eth1 and then e1000 reports eth2
Module load order.
> PROBLEM
> 1. On a red hat distribution, different interfaces may have different
> configuration scripts, which assign IP addresses and more, and the
> scripts are identified by the ethx name.
> 2. It is necessary to control which interface becomes eth0 as various
> programs use the MAC address of eth0 to identify the computer. In my
> case that is "lmhostid" and all the FLEXlm software,
> as I run a license server on that machine.
Manually load the modules in the correct order, that should solve your
problems. Or use nameif to rename the network devices (on 2.6 that
should be done using udev).
Erik
--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: eth interface enumeration order
2006-08-23 15:52 eth interface enumeration order Victor Secarin
2006-08-23 16:13 ` Auke Kok
2006-08-23 16:46 ` Erik Mouw
@ 2006-08-23 17:36 ` Stephen Hemminger
2 siblings, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2006-08-23 17:36 UTC (permalink / raw)
To: Victor Secarin; +Cc: akpm, jgarzik, netdev
On Wed, 23 Aug 2006 09:52:56 -0600
Victor Secarin <vsecarin@paradigmgeo.com> wrote:
> VERSION
> With kernel 2.4.33.1:
> HARDWARE
> I have a server with two eepro100 and one e1000 interfaces
> BEHAVIOR
> When the kernel boots the drivers report (/var/log/messages) the
> interfaces they find and what they are named (eth0, eth1, eth2)
> 1. With the drivers configured monolithically in the kernel:
> e1000 reports eth0 and then eepro100 reports eth1 and eth2
> 2. With the drivers configured as modules:
> eepro100 reports eth0 and eth1 and then e1000 reports eth2
> PROBLEM
> 1. On a red hat distribution, different interfaces may have different
> configuration scripts, which assign IP addresses and more, and the
> scripts are identified by the ethx name.
> 2. It is necessary to control which interface becomes eth0 as various
> programs use the MAC address of eth0 to identify the computer. In my
> case that is "lmhostid" and all the FLEXlm software,
> as I run a license server on that machine.
>
> Thank you for taking the time to read this.
> yours truly,
> Victor Secarin
Depending on interface names and ordering is wrong, you will get burned.
Modern distro's with 2.6 use udev and scripts to control naming.
For older systems, see ifrename(8)
--
Stephen Hemminger <shemminger@osdl.org>
All non-trivial abstractions, to some degree, are leaky.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-08-23 17:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-23 15:52 eth interface enumeration order Victor Secarin
2006-08-23 16:13 ` Auke Kok
2006-08-23 16:46 ` Erik Mouw
2006-08-23 17:36 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).