Gentoo Archives: gentoo-user

From: Claudinei Matos <claudineimatos@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] modules.conf - alias for eth devices - can't set the correct interface number
Date: Thu, 26 Oct 2006 15:05:24
Message-Id: fd8aab850610260801p9ee7f62gf6ddea5edebbac8b@mail.gmail.com
1 Hi guys,
2
3 I'm changing my third network card (a 3c905cx) with a 3c905B one. Well, the
4 drivers are the same and the slot used is also the same.
5 My machine has other two NICs, one onboard (via-rhine) and a old realtek
6 8029 10/10 (ne2k-pci).
7 On my /etc/modules.d/aliases I have the 3 lines below:
8
9 alias eth0 via-rhine
10 alias eth1 ne2k-pci
11 alias eth2 3c59x
12
13 and it works very well setting each device to the right eth interface until
14 I'd start to change the NICs, sometimes it does not work but shuting down
15 and powering up the machine again used to solve.
16 now, since I'd changed the NICs, every time I boot up my machine the third
17 device (3com) is associated with eth3 and eth2 does not have any device
18 associated.
19 my dmesg says that the interface eth2 was associated with the ne2k-pci but
20 ifconfig tells that eth1 is ne2k-pci and eth3 (which doesn't appear at dmesg
21 log) is the 3com one.
22
23 ti01 myers # ifconfig eth3 up
24 ti01 myers # ifconfig|grep eth
25 eth0 Link encap:Ethernet HWaddr 00:50:8D:84:A8:4F
26 eth1 Link encap:Ethernet HWaddr 00:C0:DF:EA:D6:49
27 eth3 Link encap:Ethernet HWaddr 00:50:04:6E:9C:AB
28
29 ti01 myers # dmesg|grep eth
30 eth0: VIA Rhine II at 0xec061000, 00:50:8d:84:a8:4f, IRQ 193.
31 eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 45e1.
32 eth2: RealTek RTL-8029 found at 0xa400, IRQ 209, 00:C0:DF:EA:D6:49.
33 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
34
35 ti01 myers # dmesg|grep 3Com
36 0000:00:0a.0: 3Com PCI 3c905B Cyclone 100baseTx at ffffc20000228000.
37
38 Well, I do not have any idea about how to fix it or what may be wrong since
39 it is supposed to just setup /etc/modules.d/aliases and run modules-update
40 to generate /etc/modules.conf.
41 One extra information is that booting in single mode (init=/bin/bash) the
42 interface order is ok. Could it be a udev problem?
43
44 Thanks for the help,
45
46
47 --
48 Claudinei Matos
49 <claudineimatos@×××××.com>
50 55-21-81980605

Replies

Subject Author
Re: [gentoo-user] modules.conf - alias for eth devices - can't set the correct interface number Daniel da Veiga <danieldaveiga@×××××.com>