LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-06-2002, 06:30 AM   #1
iquadri1
Member
 
Registered: May 2001
Posts: 48

Rep: Reputation: 15
problem with eth0


After recompiling the kernel i tried to bring up my interface eth0 but it didn't work. I pinged its ip address and it worked just fine. I tried to insert its module but it returned the message " can't locate module for which the kernel was compiled". I have R.H 7.2 and kernel 2.4.7-10. Any ideas anyone about what might be the problem?
 
Old 01-06-2002, 07:02 AM   #2
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Hi
If you can ping its IP, it must be working. Did you compile with the card as a module, or did you select the yes box, which builds it into the kernel?
what does ifconfig say? Post it here.
Jim
 
Old 01-06-2002, 07:11 AM   #3
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
When you re-compiled the kernel, did you remember to 'make modules' and make modules_install'? Right now its looking where the modules are stored /lib/modules/2.4.x/ and finding the ones for the previous incarnation of your kernel. It should have removed all of the old ones if you just recompiled your old kernel or it should have an entirely new directory if you compiled and are running a newer one.

Hope that helps,

Cheers,

Finegan
 
Old 01-06-2002, 11:45 PM   #4
iquadri1
Member
 
Registered: May 2001
Posts: 48

Original Poster
Rep: Reputation: 15
done both

to the question from drjimstuckinwin i did select the yes box but i still decided to insert modules from the command promt (don't think that would have helped ). Anyway, i did it to satisfy myself.
ifconfig displays only the lo interface. I can also see the card from the network configuration tool but it didn't have an irq set. I tried to assign irq to it but it did not work and don't worry the irq i tried to set was not in conflict.
To the question from finegan i made a link of /lib/modules/2.4.x to /lib/modules/2.4.xnew and kept the old copy as /lib/modules/2.4.xold and only after this i ran both the make modules and make modules_install command. I know the situation is complex. Good luck to both of you in figuring out the problem. wish me luck as well.

Last edited by iquadri1; 01-06-2002 at 11:46 PM.
 
Old 01-07-2002, 03:21 AM   #5
iquadri1
Member
 
Registered: May 2001
Posts: 48

Original Poster
Rep: Reputation: 15
figured out part of the problem

I had vmware running on my machine which had created a virtual interface with the ip address that i was pinging. When I shutdown vmware, ping to that ip address did not work as expected. But when I checked linuxconf it showed me the card along with its ip address and irq setting thus it was mind boggling. I tried all ifconfig and route commands but I was unable to bring up my eth0 interface. Hope this revelation would help in getting to the bottom of the matter.
 
Old 01-07-2002, 12:56 PM   #6
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Okay, sorry about accusing you of the newbie error there, it just sounded like one. This is now weird. Okay, down to brass tacks: what's the card?, the format (PCI, ISA)?, the output from ifconfig (from the command line), and the output of lsmod (also CL) after a clean boot? Also, how does your machine acquire its external IP? DHCP, PPPoe? Static?

Cheers,

Finegan

Last edited by finegan; 01-07-2002 at 01:07 PM.
 
Old 01-07-2002, 01:22 PM   #7
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
If you checked yes mot m, its in the kernel from boot, not modular, thus you don't need to load a module. Check /var/log/messages for lines about eth0.
 
Old 01-08-2002, 06:32 AM   #8
iquadri1
Member
 
Registered: May 2001
Posts: 48

Original Poster
Rep: Reputation: 15
about the card

the card is sis 900 which is built-in. I have also tried using realtek 8139 pci card which also yielded no result. The amazing thing is that both worked just fine before i recompiled the kernel. I had given them static ip addresses. About ifconfig i have already mentioned that it showed only lo interface.
:smash:

Last edited by iquadri1; 01-08-2002 at 06:33 AM.
 
Old 01-08-2002, 06:58 AM   #9
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Go through the kernel config again, its really easy to get something wrong-I should know, it usually takes me two or three attempts to get it right
 
  


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
Problem withInternet, DHCP, connect with eth0 down work, connect with eth0 up not zowey Linux - Networking 1 03-12-2004 11:05 AM
eth0:1 problem Dirt Linux - Networking 4 06-12-2003 05:19 PM
eth0 problem the_dash_71 Linux - Networking 1 06-12-2003 01:20 PM
Eth0 problem BoldKiller Linux - Newbie 6 04-17-2002 04:29 PM
Help please -Eth0 problem strangesame Linux - Newbie 5 01-08-2002 02:05 AM

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

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