You are not logged in.

#1 2006-02-12 00:15:53

phydeaux
Member
Registered: 2005-06-13
Posts: 68

New kernel + new udev. network cards detected backwards...

I just updated my kernel and udev etc and I am now finding that the wireless and wired nics are reversed.  My wired nic (bc44) is now eth1 and wirless (ipw2200) is now eth0.  Now before I go and reconfigure everything to use the new nic names (no pun intended) is there a quick way to change them back, ie a quick udev rule etc..

andy

Offline

#2 2006-02-12 00:18:52

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: New kernel + new udev. network cards detected backwards...

afaik you can use /etc/modprobe.conf to set the names,

alias eth0 bc44
alias eth1 ipw2100

give that a shot. the name reversal happens when the modules are simply loaded in a different order to what they have been previously. ie, ipw2200 is being loaded first.

iphitus

Offline

#3 2006-02-12 06:26:24

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: New kernel + new udev. network cards detected backwards...

-> [URL=http://bbs.archlinux.org/viewtopic.php?t=18097&start=0&postdays=0&postorder=asc&highlight=]newest udev and initscripts problem[solved again..lol][/URL]

Offline

#4 2006-02-12 11:30:27

zbled
Member
Registered: 2004-01-25
Posts: 56

Re: New kernel + new udev. network cards detected backwards...

I had the same problem with the archlinux-kernel. So I've switched back to my custom-made-kernel and now it's working as  I want it to work

Offline

#5 2006-02-12 13:26:44

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,322

Re: New kernel + new udev. network cards detected backwards...

load the modules in right order and you don't need a custom kernel.
MODULES=(!moduleA !moduleB moduleA moduleB)
and all should be as you need it

Offline

#6 2006-02-12 15:46:56

zbled
Member
Registered: 2004-01-25
Posts: 56

Re: New kernel + new udev. network cards detected backwards...

not really... here's the line from rc.conf

MODULES=(8139too ipw2200 ide-cd asus_acpi arc4 crc32c ieee80211 ieee80211_crypt ieee80211_crypt_wep speedstep-centrino cpufreq_powersave cpufreq_userspace freq_table cpufreq_ondemand)

eth0 should be 8139too, eth1 ipw2200 - and it didn't work....

not even adding

alias eth0 8139too
alias eth1 ipw2200

to /etc/modprobe.conf did work.

This configuration worked fine with the previous kernel (I guess kernel26-2.6.15.3-2.pkg.tar.gz)

Offline

#7 2006-02-12 15:59:40

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: New kernel + new udev. network cards detected backwards...

Take a look at udev rules. It's the most elegant solution. I belive there is a part in the wiki about them.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#8 2006-02-12 16:26:56

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,322

Re: New kernel + new udev. network cards detected backwards...

sorry to say but you didn't use my advice i said !moduleA !moduleB and then moduleA moduleB then it works!

Offline

#9 2006-02-12 19:49:24

zbled
Member
Registered: 2004-01-25
Posts: 56

Re: New kernel + new udev. network cards detected backwards...

why do I have to disable the two modules first?

Offline

#10 2006-02-12 19:51:17

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: New kernel + new udev. network cards detected backwards...

So they got loaded in order...

Offline

#11 2006-02-13 03:20:06

phydeaux
Member
Registered: 2005-06-13
Posts: 68

Re: New kernel + new udev. network cards detected backwards...

I think the udev way is probalby the most elligant solution.. I've been meaning to read up on that anyway to make rules for various usb sticks and cameras etc.. I'll give that a shot and let you all know what happens.

andy

Offline

#12 2006-02-13 06:00:11

zbled
Member
Registered: 2004-01-25
Posts: 56

Re: New kernel + new udev. network cards detected backwards...

anyway, disabling and enabling the modules is not working either:

MODULES=(!88139too !ipw2200 8139too ipw2200 ide-cd asus_acpi arc4 crc32c
ieee80211 ieee80211_crypt ieee80211_crypt_wep cpufreq_powersave
cpufreq_userspace freq_table cpufreq_ondemand snd_intel8x0)

it's now creating an eth2? ;-)

martin [/home/martin] # iwconfig
lo        no wireless extensions.

eth0    no wireless extensions.

eth1    no wireless extensions.

eth2    unassociated  ESSID:off/any 
          Mode:Managed  Channel=0  Access Point: 00:00:00:00:00:00   
          Bit Rate=0 kb/s   Tx-Power=20 dBm   
          Retry limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Offline

#13 2006-02-13 17:19:22

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: New kernel + new udev. network cards detected backwards...

Try this, it's simpler and "more correct" for udev:
http://bbs.archlinux.org/viewtopic.php?t=18768

Offline

Board footer

Powered by FluxBB