LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-09-2005, 07:37 PM   #1
cutejai
LQ Newbie
 
Registered: Aug 2003
Posts: 23

Rep: Reputation: 15
problem loading up driver for 2 exact nic


hi all,
i've been experiencing this strange issue for a while now, yet haven't got any solution. please help.
problem is: i have 2 same nics in my debian router, during system boot up, debian seems to treat my 2 nics as one and load up only one driver. so i have to manually if-up my other nic all the time to get it working.

anyway to solve this??? i know there is a solution, but just not sure how.
=(
thanx in advance for any help.
 
Old 09-10-2005, 12:44 PM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Quote:
debian seems to treat my 2 nics as one and load up only one driver
Well... You don't need to load additionnal driver for the exact same NIC? Once the driver is loaded... any card that need this driver will be available?

Still, your question is a bit obscure... do you see the "second" card if you type, let's say "ifconfig eth1" (assuming eth0 is the one loaded) ? If so, it has nothing to do about driver or debian, it's just a misconfiguration, take a look in /etc/network/interfaces and make sure "eth1" is set to auto.
 
Old 09-10-2005, 08:33 PM   #3
cutejai
LQ Newbie
 
Registered: Aug 2003
Posts: 23

Original Poster
Rep: Reputation: 15
thanx for the reply MR Half Elf, to clarify my problem abit, here is the actual problem.
after running pppoeconf and reboot my machine.

i have problem with initiating ppp0e connection on start up.
1, when i run it manually on start up. "pon dsl-provider", it give out errors saying
-------------------------------------------------------
>plog
pulgin rp_pppoe.so loaded
rp_ppoe plugin version 3.3 compiled against pppd 2.4.2
pppd 2.4.2 started by root, uid 6
ppp session is 3316
Failed to create pppoe socket: address family not supported by protocol
Exit.
Unable to complete PPPoE discovery
Timeout waiting for PADO packets
....
-------------------------------------------------------
To make it work, i have to run "pppoeconf" everytime i reboot my machine to connect to my isp.
So how do you solve this problem?? coz i think the problem might arise from the configuration of my eth0(the one connect to my adsl model). should i just delete the whole entry of eth0 from interfaces file? or should i set it to use dhcp for ip assignment??
from what i observe, everytime i set it to use dhcp
auto eth0
iface eth0 inet dhcp

this eth0 will give me a problem during boot up process, the eth0 will have problem finding dhcp server, thus disable itself.

so please help.
 
Old 09-10-2005, 09:11 PM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
eeeh this is even more obscure...
Correct me if I am wrong :
1-Your linux box have 2 exactly same model network cards. I assume they are called "eth0" and "eth1".
2-Your ADSL modem is connected on eth1 now but it was connected to "eth0" before
3-On boot, rp-pppoe can't load until you use pppoe.conf to reconfigure it
4-On boot, eth0 makes an error saying something like "can't contact dhcp server" then fail


Well... first of all, do you have a DHCP server on your network? eth0 will sure complain if you don't have any. In that case you could just set it to a static address adding something like this in your /etc/network/interfaces :
Code:
iface eth0 inet static
adress 192.168.1.1
netmask 255.255.255.0
Then... Is it possible your problem about PPPoE is caused by your eth1 being down when the rp-pppoe script is called? Have you tried to up "eth1" before calling the script? Something like :
Code:
ifconfig eth1 192.168.0.1 up
Have you checked if there is any change to "ifconfig" once you run pppoe.conf
In any case, have you browsed rp-pppoe configuration files? They change depending version, on debian I think most configuration options are in /etc/ppp/peers. Make sure it doesn't try to use "eth0" anywhere (a "grep -R eth0 *" in /etc/ppp could tell you that).
 
Old 09-16-2005, 08:19 PM   #5
cutejai
LQ Newbie
 
Registered: Aug 2003
Posts: 23

Original Poster
Rep: Reputation: 15
thanx for the reply half_elf, and sorry for all the confusion and late reply, as uni works is really killing me.

here is the clarify some more.

1. yes, have two same exact card, eth0 and eth1
2. adsl model is connected to eth0
3. on boot, rp-ppp0e can't load, it gives out this error.
-------------------------------------------------------
>plog
pulgin rp_pppoe.so loaded
rp_ppoe plugin version 3.3 compiled against pppd 2.4.2
pppd 2.4.2 started by root, uid 6
ppp session is 3316
Failed to create pppoe socket: address family not supported by protocol
Exit.
Unable to complete PPPoE discovery
Timeout waiting for PADO packets
....
-------------------------------------------------------

4. have to use pppoe.conf to reconfigure it everytime i reboot the machine.


so do you suggest that, i should add this line of code "ifconfig eth0 192.168.0.1 up" before calling rp-pppoe???
wouldn't this cause any problem?? because i'm using dymanic ip address from my adsl provider.
so if you set eth0 to 192.168.0.1, then it won't be able to obtain an IP from my isp anymore.
my adsl model acts as a transparent bridge in this case.

hope this is clarify my problem abit. again sorry for confusing you.
 
  


Reply



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
NIC Driver problem? Rapport Solaris / OpenSolaris 3 11-04-2005 09:21 PM
Help loading NIC driver blitzen Linux - Hardware 5 08-15-2004 05:33 PM
Problem in loading ehci-hcd driver amit10p Linux - Software 0 07-16-2004 12:50 AM
Gigabit NIC Driver problem BlackRabbit Linux - Networking 2 10-03-2003 10:01 AM
NIC Card Driver Problem .... yasir_kh Linux - Networking 1 05-17-2001 08:28 PM

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

All times are GMT -5. The time now is 10:42 AM.

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