LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 11-04-2006, 10:08 AM   #1
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
eth0 and eth1 problem


Hi,

About 99% of the time, when I boot my laptop, my wireless card gets assigned to eth1. Every once in a while, though, it gets assigned to eth0, which makes my automatic wpa_supplicant and dhcp requests fail. I can redo them manually, of course, but it is a little irritating. Can anyone shed any light on what might cause this? BTW, I use bcm43xx, not ndiswrapper.

Thanks,
Brian
 
Old 11-04-2006, 11:47 AM   #2
seraph-seph
Member
 
Registered: Jul 2005
Location: /dev/ATX3
Distribution: Slackware 11(kernel 2.6.17.13), SuSE 10, Caldera, CentOS 4.3
Posts: 38

Rep: Reputation: 15
Hi

I found two reasons.

1. IRQ of the eth0 card is in priority higher than your wireless so when your laptop starts choose as eth0.
2. When your laptop starts, find your eth0 card active so it starts the service as eth0.

Hope you find this usefull

mario

Quote:
Originally Posted by BCarey
Hi,

About 99% of the time, when I boot my laptop, my wireless card gets assigned to eth1. Every once in a while, though, it gets assigned to eth0, which makes my automatic wpa_supplicant and dhcp requests fail. I can redo them manually, of course, but it is a little irritating. Can anyone shed any light on what might cause this? BTW, I use bcm43xx, not ndiswrapper.

Thanks,
Brian
 
Old 11-07-2006, 10:21 AM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
Mario,

I'm not sure I understand.

Quote:
1. IRQ of the eth0 card is in priority higher than your wireless so when your laptop starts choose as eth0.
How do I check/change this? Why would the IRQ assignment change from boot to boot?

Quote:
2. When your laptop starts, find your eth0 card active so it starts the service as eth0.
When you say "find your eth0 card active" do you mean the ethernet card or the wireless card? The ethernet card usually gets assigned to eth0 but I never use it, so it should never be active.

I appreciate your help.

Brian
 
Old 11-07-2006, 12:48 PM   #4
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

have you tried to do an alias like this in your /etc/modules.conf:
Code:
alias eth1 bcm43xx
Oliv'
 
Old 11-07-2006, 05:35 PM   #5
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Oliv'
Hi,

have you tried to do an alias like this in your /etc/modules.conf:
Code:
alias eth1 bcm43xx
Oliv'
I tried this, but it didn't work. Thanks anyway.

Brian
 
Old 11-08-2006, 07:29 AM   #6
seraph-seph
Member
 
Registered: Jul 2005
Location: /dev/ATX3
Distribution: Slackware 11(kernel 2.6.17.13), SuSE 10, Caldera, CentOS 4.3
Posts: 38

Rep: Reputation: 15
BCarey

1. I'm not sure if you can change IRQ's, I mean it's possible compiling the kernel with the option of the ACPI since this option arrange irq's ramdomly but without sharing.

2. I mean when your laptop starts. it starts the service eth0 for the ethernet card since it's enabled at the booting time.
 
Old 05-26-2007, 12:26 PM   #7
UhhMaybe
Member
 
Registered: Jul 2004
Location: Salt Lake City, Utah
Distribution: Absolute 12.0 Studio 64 1.3.0
Posts: 470

Rep: Reputation: 30
Cool

Do YOU have access to the BIOS? Disable the PCI Ethernet Card in the BIOS. <easy way>. Physically remove the PCI Ethernet Card from the Motherboard. <still easy, but be careful>. These two solutions are suggested because YOU stated "...never use..." the PCI Ethernet Card. If YOU decide later on to utilize the card, try "ethtool". Before using "ethtool", see the man pages at "man ethtool". Good luck.
 
Old 05-26-2007, 08:12 PM   #8
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
Thanks for the advice. I just went ahead and wrote a script to check which checks which one has the wireless card, and all works well.

Brian
 
Old 05-26-2007, 09:23 PM   #9
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Udev rules.

You could create a udev rule for consistant naming of those devices. that is what i did on my compaq presario.

http://www.reactivated.net/writing_udev_rules.html

In case you need extra help. Has an example of eth device rules.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
howto acess intrnet thru eth1(wireless card)in winXP via briging in linux(eth0-eth1) labhesh_popli Linux - Wireless Networking 1 09-21-2006 01:11 AM
eth0 and eth1 posture problem Sushy Linux - Networking 1 10-27-2005 05:35 PM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM
Kernel 2.4.22 finds eth0 and eth1 but 2.6.0 does not find eth1 coollink Linux - Networking 3 01-13-2004 07:32 PM
eth0 (hard line) and eth1 (wireless) problem zorgnerf Linux - Wireless Networking 2 07-27-2003 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 10:22 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