LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-04-2007, 05:30 PM   #1
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
udev dual ethernet problem ?


Happy Xmas + New Year to you all - I have been away for a while and sadly been stuck with an Win XP only box. It's frightening how quick I've forgotten my new found Linux skills ! Anyway - to get to the point.... I'm now back on my Slackware machine (Slackware 11, 2.6 kernel) which has both an inbuilt (Intel 82815 motherboard) ethernet adapter and a Belkim wireless ethernet adapter card. Problem is the wireless card seems to be randomly assigned to eth0 or eth1, and when it's set up as eth0 I can't get internet access (I'm not concerned about this as my internet connection of choice is the wired one and I couldn't be bothered messing with the WAP settings in Slack just now! So it seems that when my inbuilt ethernet adapter is given eth0 and the wireless card eth1, DHCP kicks in successfully and all is well, vice versa and I'm stuck !! However this is pretty random across reboots and sometimes my wireless card gains eth0 and my wired connection eth1 - which I don't want ! Do I have to give a udev rule to prioritize these two devices ? I.E can I dictate which ethernet adapter is set to eth0 ? Perhaps I'm assuming wrong about this problem and maybe udev has nothing to do with it. Cheers and all the best.....
 
Old 01-04-2007, 05:38 PM   #2
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Rep: Reputation: 31
I can think of two things:

1) find the module that's providing the support for the wireless card, and disable it.

2) figure out how linux sets up the eth0 and eth1 aliases. I believe it's in /etc/modules.conf, the details of which are very system dependent. Can anyone else explain how those aliases are set up? Can't you have your nic named 'foobar1' if you wanted?
 
Old 01-04-2007, 05:45 PM   #3
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Original Poster
Rep: Reputation: 232Reputation: 232Reputation: 232
Bloody hell that was a quick reply ! Thanks - I was under the impression that modules.conf was only addressed by modprobe - am I wrong ? Anyway disabling the module responsible for the wireless card is a nice piece of lateral thinking - thanks for that. It would be interesting to see what dictates the handing out of eth0/eth1 device aliases..
 
Old 01-04-2007, 06:16 PM   #4
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
Check "/etc/udev/rules.d/network-devices.rules". You will have to edit this file. Instructions are provided. You can name them any way you prefer.
Regards,
Bill
 
Old 01-04-2007, 06:49 PM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Original Poster
Rep: Reputation: 232Reputation: 232Reputation: 232
Thanks a lot for that - I've just edited my "network-devices.rules" file to say :-
Code:
KERNEL=="eth?", SYSFS{address}=="00:07:e9:a6:81:39", NAME="eth0"
KERNEL=="eth?", SYSFS{address}=="00:11:50:08:67:79", NAME="eth1"
Haven't tested it yet as its a random problem but it just looks right - thanks a lot. BTW - I am interested in the files in this directory - particulary libsane.rules - any pointers as to where I can study these settings and udev behaviour ? Thanks again...
 
Old 01-05-2007, 08:25 AM   #6
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
Quote:
any pointers as to where I can study these settings and udev behaviour ?
Sure. Try recent-state-of-udev & writing_udev_rules.
Regards,
Bill
 
Old 01-06-2007, 08:58 PM   #7
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Original Poster
Rep: Reputation: 232Reputation: 232Reputation: 232
Thank you, thank you - I've only just scanned the pages you linked to but they seem to supply the kind of in depth info I was looking for ! Obviously I have spent time with our "friend" Google but precise relevant pointers as you have just supplied are superb - much appreciate it... Happy New Year...
 
Old 01-08-2007, 06:10 PM   #8
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Original Poster
Rep: Reputation: 232Reputation: 232Reputation: 232
Just to close this thread - after editing my "network-devices.rules" as per instructions, all is well - thankyou very much....
 
  


Reply

Tags
correct, excellent



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware-current, udev 0.96, and custom udev rules not working rignes Slackware 6 08-10-2006 03:43 AM
dual ethernet port ping problem rani_162 Linux - Networking 2 12-11-2005 10:05 PM
dual ethernet port problem the_raj Linux - Networking 6 08-14-2005 11:28 AM
Detailed problem with *i think* dual boot and ethernet card. OneNight Linux - Networking 8 11-11-2004 05:02 PM
Dual Ethernet pzorn Linux - Networking 1 10-31-2003 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration