View previous topic :: View next topic |
Author |
Message |
alinmesser n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 Jun 2004 Posts: 25
|
Posted: Tue Nov 21, 2006 5:46 pm Post subject: Network Modules mess with 2.6.18 |
|
|
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:
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 |
|
![](templates/gentoo/images/spacer.gif) |
wynn Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/46695354144c509f41a088.png)
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Tue Nov 21, 2006 5:56 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
alinmesser n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 Jun 2004 Posts: 25
|
Posted: Tue Nov 21, 2006 6:50 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
wynn Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/46695354144c509f41a088.png)
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Tue Nov 21, 2006 6:58 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
HK n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 22 Nov 2006 Posts: 3
|
Posted: Wed Nov 22, 2006 12:43 pm Post subject: |
|
|
Just to mention that SYSFS{address} is case-sensitive, and it uses lowercase letters for the A,B,..F |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|