You are not logged in.

#1 2009-01-16 22:19:28

Engelbrekt
Member
Registered: 2007-11-17
Posts: 38

[Solved] Network interfaces swapped after upgrade to 2.6.28

Hi!

I have two network interfaces, eth0 and eth1.
After upgrading to 2.6.28 eth0 has become eth1 and eth1 has become eth0  sad
Previously I think it was possible to control which network card that should be assigned eth0 by loading that module first in rc.conf.
That however does not seem to work anymore.
Is there any other way to configure this?

Last edited by Engelbrekt (2009-01-17 15:52:51)

Offline

#2 2009-01-16 22:40:38

attila
Member
Registered: 2006-11-14
Posts: 293

Re: [Solved] Network interfaces swapped after upgrade to 2.6.28

I use a udev rule to give my network card another device name:

# cat /etc/udev/rules.d/01-net.rules
KERNEL=="eth*", ATTR{address}=="00:16:17:b8:c9:22", NAME="lan", OPTIONS="last_rule"

Than i replace "eth0" in the rc.conf with "lan" and all works fine after a reboot. In my case it was my firewire device which wants sometimes to be "eth0".:)

Offline

#3 2009-01-17 15:51:20

Engelbrekt
Member
Registered: 2007-11-17
Posts: 38

Re: [Solved] Network interfaces swapped after upgrade to 2.6.28

It worked!
I have now regained control over my network interfaces smile.
A word of advice to other people in the same situation: the MAC address must be entered in lower case.

Thanks for the help attila.

Offline

Board footer

Powered by FluxBB