Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network Modules mess with 2.6.18
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
alinmesser
n00b
n00b


Joined: 26 Jun 2004
Posts: 25

PostPosted: Tue Nov 21, 2006 5:46 pm    Post subject: Network Modules mess with 2.6.18 Reply with quote

Hi,

I manage a remote system and recently emerge'd and genkernel'd the 2.6.18.
The problem that I noticed is that my 2 network cards are detected in the wrong order (e100 used to be eth0 and e1000 - eth1).
I have in modules.d/aliases:
Code:

alias eth0              e100
alias eth1              e1000

I verified that /etc/modules.conf and /etc/modprobe.conf have those two lines after running modules-update.
I also have in /etc/modules.autoload.d/kernel-2.6:
Code:

e100
e1000

It seems to me that the new kernel modules autoloader loads all the modules it can find for some reason.
(I also have a raid0 array but the kernel module for raid1 is also compiled and I noticed in /proc/mdstat that it was loaded. There is only a line for raid0 in /etc/modules.autoload.d/kernel-2.6)

Thanks
_________________
MesseR
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Tue Nov 21, 2006 5:56 pm    Post subject: Reply with quote

The only way to get the assignments you want are by writing udev rules.

There's a very good step-by-step howto by peenie here
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
alinmesser
n00b
n00b


Joined: 26 Jun 2004
Posts: 25

PostPosted: Tue Nov 21, 2006 6:50 pm    Post subject: Reply with quote

wynn wrote:
The only way to get the assignments you want are by writing udev rules.

There's a very good step-by-step howto by peenie here


Thanks a lot, I followed the thread and a couple of udev rules fixed it for me. For others that may have the same problem:
Code:

KERNEL="eth*", SYSFS{address}=="00:11:22:33:44:55", NAME="eth0"
KERNEL="eth*", SYSFS{address}=="00:11:22:33:44:56", NAME="eth1"

where 00:11:22:33:44:55 and 00:11:22:33:44:56 are the MAC addresses of the network cards.

Note that those threads recommend renaming the cards to something else, like "wlan" and "lan" because if you add another network card it will mess up the above rules. In my case, I know I will not do that and I'm too lazy to modify /etc/conf.d/net and do rc-update etc.
_________________
MesseR
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Tue Nov 21, 2006 6:58 pm    Post subject: Reply with quote

Thank you for your extra information.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
HK
n00b
n00b


Joined: 22 Nov 2006
Posts: 3

PostPosted: Wed Nov 22, 2006 12:43 pm    Post subject: Reply with quote

Just to mention that SYSFS{address} is case-sensitive, and it uses lowercase letters for the A,B,..F
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum